Class EntryCursorImpl
java.lang.Object
org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
org.apache.directory.ldap.client.api.EntryCursorImpl
- All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<org.apache.directory.api.ldap.model.entry.Entry>, org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>, org.apache.directory.api.ldap.model.cursor.EntryCursor
public class EntryCursorImpl
extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
implements org.apache.directory.api.ldap.model.cursor.EntryCursor
An implementation of Cursor based on the underlying SearchFuture instance.
Note: This is a forward only cursor hence the only valid operations are next(), get() and close()
- Author:
- Apache Directory Project
-
Constructor Summary
ConstructorsConstructorDescriptionEntryCursorImpl(org.apache.directory.api.ldap.model.cursor.SearchCursor searchCursor) Instantiates a new search cursor, embedding a SearchCursor. -
Method Summary
Modifier and TypeMethodDescriptionvoidafter(org.apache.directory.api.ldap.model.entry.Entry element) This operation is not supported in SearchCursor.voidThis operation is not supported in SearchCursor.booleanvoidbefore(org.apache.directory.api.ldap.model.entry.Entry element) This operation is not supported in SearchCursor.voidThis operation is not supported in SearchCursor.voidclose()voidbooleanfirst()This operation is not supported in SearchCursor.org.apache.directory.api.ldap.model.entry.Entryget()intorg.apache.directory.api.ldap.model.message.SearchResultDonebooleanlast()This operation is not supported in SearchCursor.booleannext()booleanprevious()This operation is not supported in SearchCursor.Methods inherited from class org.apache.directory.api.ldap.model.cursor.AbstractCursor
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.directory.api.ldap.model.cursor.Cursor
isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor, toStringMethods inherited from interface Iterable
forEach, iterator, spliterator
-
Constructor Details
-
EntryCursorImpl
public EntryCursorImpl(org.apache.directory.api.ldap.model.cursor.SearchCursor searchCursor) Instantiates a new search cursor, embedding a SearchCursor.- Parameters:
searchCursor- the embedded SearchResponse cursor
-
-
Method Details
-
next
public boolean next() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException- Specified by:
nextin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
get
public org.apache.directory.api.ldap.model.entry.Entry get() throws org.apache.directory.api.ldap.model.cursor.CursorException- Specified by:
getin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
org.apache.directory.api.ldap.model.cursor.CursorException
-
getSearchResultDone
public org.apache.directory.api.ldap.model.message.SearchResultDone getSearchResultDone()- Specified by:
getSearchResultDonein interfaceorg.apache.directory.api.ldap.model.cursor.EntryCursor
-
available
public boolean available()- Specified by:
availablein interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
IOException
-
close
- Specified by:
closein interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Overrides:
closein classorg.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
IOException
-
after
public void after(org.apache.directory.api.ldap.model.entry.Entry element) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException This operation is not supported in SearchCursor.- Specified by:
afterin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
afterLast
public void afterLast() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
afterLastin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
before
public void before(org.apache.directory.api.ldap.model.entry.Entry element) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException This operation is not supported in SearchCursor.- Specified by:
beforein interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
beforeFirst
public void beforeFirst() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
beforeFirstin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
first
public boolean first() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
firstin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
last
public boolean last() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
lastin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
previous
public boolean previous() throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorExceptionThis operation is not supported in SearchCursor.- Specified by:
previousin interfaceorg.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
getMessageId
public int getMessageId()- Specified by:
getMessageIdin interfaceorg.apache.directory.api.ldap.model.cursor.EntryCursor
-