Class IterableEntryCursor
- java.lang.Object
-
- org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
-
- technology.openpool.ldap.adapter.api.cursor.apacheds.IterableEntryCursor
-
- 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>
public class IterableEntryCursor extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
-
-
Constructor Summary
Constructors Constructor Description IterableEntryCursor(org.slf4j.Logger logger, Cursor<org.apache.directory.api.ldap.model.entry.Entry> entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter(org.apache.directory.api.ldap.model.entry.Entry entry)voidafterLast()booleanavailable()voidbefore(org.apache.directory.api.ldap.model.entry.Entry entry)voidbeforeFirst()voidclose()voidclose(Exception cause)booleanfirst()org.apache.directory.api.ldap.model.entry.Entryget()booleanlast()booleannext()booleanprevious()-
Methods inherited from class org.apache.directory.api.ldap.model.cursor.AbstractCursor
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
IterableEntryCursor
public IterableEntryCursor(org.slf4j.Logger logger, Cursor<org.apache.directory.api.ldap.model.entry.Entry> entries)
-
-
Method Detail
-
before
public void before(org.apache.directory.api.ldap.model.entry.Entry entry) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
after
public void after(org.apache.directory.api.ldap.model.entry.Entry entry) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException- 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.CursorException- 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.CursorException- 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.CursorException- 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.CursorException- 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.CursorException- Throws:
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorException
-
available
public boolean available()
-
close
public void close(Exception cause) throws IOException
- 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
-
close
public void close() throws IOException- 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
-
next
public boolean next()
-
get
public org.apache.directory.api.ldap.model.entry.Entry get()
-
-