public class DescendantCursor extends AbstractIndexCursor<String>
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
INNER |
protected static boolean |
TOP_LEVEL |
| Constructor and Description |
|---|
DescendantCursor(Store db,
String baseId,
String parentId,
org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<ParentIdAndRdn,String>> cursor)
Creates a Cursor over entries satisfying one level scope criteria.
|
DescendantCursor(Store db,
String baseId,
String parentId,
org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<ParentIdAndRdn,String>> cursor,
boolean topLevel)
Creates a Cursor over entries satisfying one level scope criteria.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterLast() |
void |
beforeFirst() |
void |
close() |
void |
close(Exception cause) |
boolean |
first() |
IndexEntry<String,String> |
get() |
protected String |
getUnsupportedMessage()
Gets the message to return for operations that are not supported
|
boolean |
last() |
boolean |
next() |
boolean |
previous() |
String |
toString() |
String |
toString(String tabs) |
after, available, before, setAvailableprotected static final boolean TOP_LEVEL
protected static final boolean INNER
public DescendantCursor(Store db, String baseId, String parentId, org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<ParentIdAndRdn,String>> cursor) throws Exception
db - the entry storeevaluator - an IndexEntry (candidate) evaluatorException - on db access failurespublic DescendantCursor(Store db, String baseId, String parentId, org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<ParentIdAndRdn,String>> cursor, boolean topLevel) throws Exception
db - the entry storeevaluator - an IndexEntry (candidate) evaluatorException - on db access failuresprotected String getUnsupportedMessage()
getUnsupportedMessage in class AbstractIndexCursor<String>public void beforeFirst()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void afterLast()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean first()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean last()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean previous()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean next()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic IndexEntry<String,String> get() throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void close()
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<String,String>>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<String,String>>public void close(Exception cause)
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<String,String>>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<String,String>>public String toString(String tabs)
toString in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<String,String>>toString in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<String,String>>Object.toString()public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.