public class ChildrenCursor extends AbstractIndexCursor<String>
partitionTxn
Constructor and Description |
---|
ChildrenCursor(PartitionTxn partitionTxn,
Store db,
String parentId,
org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<ParentIdAndRdn,String>> cursor)
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, setAvailable
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ChildrenCursor(PartitionTxn partitionTxn, Store db, String parentId, org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<ParentIdAndRdn,String>> cursor)
partitionTxn
- The transaction to usedb
- the entry storeparentId
- The parent IDcursor
- The wrapped cursorprotected 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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public 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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public 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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public 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.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public boolean previous() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
previous
in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<String,String>>
previous
in class AbstractIndexCursor<String>
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public boolean next() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
next
in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<String,String>>
next
in class AbstractIndexCursor<String>
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public IndexEntry<String,String> get() throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<String,String>>
IOException
public void close(Exception cause) throws IOException
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>>
IOException
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 Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.