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
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG_CURSOR
A dedicated log for cursors
|
private int |
messageId
The underlying messageId
|
private org.apache.directory.api.ldap.model.message.Response |
response
a reference to hold the retrieved SearchResponse object from SearchFuture
|
private org.apache.directory.api.ldap.model.cursor.SearchCursor |
searchCursor
The encapsulated search cursor
|
| Constructor and Description |
|---|
EntryCursorImpl(org.apache.directory.api.ldap.model.cursor.SearchCursor searchCursor)
Instantiates a new search cursor, embedding a SearchCursor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(org.apache.directory.api.ldap.model.entry.Entry element)
This operation is not supported in SearchCursor.
|
void |
afterLast()
This operation is not supported in SearchCursor.
|
boolean |
available() |
void |
before(org.apache.directory.api.ldap.model.entry.Entry element)
This operation is not supported in SearchCursor.
|
void |
beforeFirst()
This operation is not supported in SearchCursor.
|
void |
close() |
void |
close(Exception cause) |
boolean |
first()
This operation is not supported in SearchCursor.
|
org.apache.directory.api.ldap.model.entry.Entry |
get() |
int |
getMessageId() |
org.apache.directory.api.ldap.model.message.SearchResultDone |
getSearchResultDone() |
boolean |
last()
This operation is not supported in SearchCursor.
|
boolean |
next() |
boolean |
previous()
This operation is not supported in SearchCursor.
|
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor, toStringforEach, iterator, spliteratorprivate static final org.slf4j.Logger LOG_CURSOR
private org.apache.directory.api.ldap.model.message.Response response
private org.apache.directory.api.ldap.model.cursor.SearchCursor searchCursor
private int messageId
public EntryCursorImpl(org.apache.directory.api.ldap.model.cursor.SearchCursor searchCursor)
searchCursor - the embedded SearchResponse cursorpublic 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<org.apache.directory.api.ldap.model.entry.Entry>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic org.apache.directory.api.ldap.model.entry.Entry get()
throws org.apache.directory.api.ldap.model.cursor.CursorException
get in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>org.apache.directory.api.ldap.model.cursor.CursorExceptionpublic org.apache.directory.api.ldap.model.message.SearchResultDone getSearchResultDone()
getSearchResultDone in interface org.apache.directory.api.ldap.model.cursor.EntryCursorpublic boolean available()
available in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>IOExceptionpublic void close(Exception cause) throws IOException
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>IOExceptionpublic 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
after in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>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
afterLast in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic 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
before in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void beforeFirst()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
beforeFirst in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>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
first in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>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
last in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>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
previous in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic int getMessageId()
getMessageId in interface org.apache.directory.api.ldap.model.cursor.EntryCursorCopyright © 2009–2019 The Apache Software Foundation. All rights reserved.