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

    Constructors
    Constructor
    Description
    EntryCursorImpl(org.apache.directory.api.ldap.model.cursor.SearchCursor searchCursor)
    Instantiates a new search cursor, embedding a SearchCursor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    after(org.apache.directory.api.ldap.model.entry.Entry element)
    This operation is not supported in SearchCursor.
    void
    This operation is not supported in SearchCursor.
    boolean
    void
    before(org.apache.directory.api.ldap.model.entry.Entry element)
    This operation is not supported in SearchCursor.
    void
    This operation is not supported in SearchCursor.
    void
    void
    boolean
    This operation is not supported in SearchCursor.
    org.apache.directory.api.ldap.model.entry.Entry
    get()
    int
    org.apache.directory.api.ldap.model.message.SearchResultDone
    boolean
    This operation is not supported in SearchCursor.
    boolean
    boolean
    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, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.directory.api.ldap.model.cursor.Cursor

    isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor, toString

    Methods 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:
      next in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
      org.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:
      get in interface org.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:
      getSearchResultDone in interface org.apache.directory.api.ldap.model.cursor.EntryCursor
    • available

      public boolean available()
      Specified by:
      available in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
      Throws:
      IOException
    • close

      public void close(Exception cause) throws IOException
      Specified by:
      close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      Overrides:
      close in class org.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:
      after in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
      org.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
      This operation is not supported in SearchCursor.
      Specified by:
      afterLast in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
      org.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:
      before in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
      org.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
      This operation is not supported in SearchCursor.
      Specified by:
      beforeFirst in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
      org.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
      This operation is not supported in SearchCursor.
      Specified by:
      first in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
      org.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
      This operation is not supported in SearchCursor.
      Specified by:
      last in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
      org.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
      This operation is not supported in SearchCursor.
      Specified by:
      previous in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
      org.apache.directory.api.ldap.model.cursor.CursorException
    • getMessageId

      public int getMessageId()
      Specified by:
      getMessageId in interface org.apache.directory.api.ldap.model.cursor.EntryCursor