public class EntryCursorImpl extends AbstractCursor<Entry> implements EntryCursor
Constructor and Description |
---|
EntryCursorImpl(SearchCursor searchCursor)
Instantiates a new search cursor, embedding a SearchCursor.
|
Modifier and Type | Method and Description |
---|---|
void |
after(Entry element)
This operation is not supported in SearchCursor.
|
void |
afterLast()
This operation is not supported in SearchCursor.
|
boolean |
available()
Determines whether or not a call to get() will succeed.
|
void |
before(Entry element)
This operation is not supported in SearchCursor.
|
void |
beforeFirst()
This operation is not supported in SearchCursor.
|
void |
close()
Closes this Cursor and frees any resources it my have allocated.
|
void |
close(Exception cause)
Closes this Cursor and frees any resources it my have allocated.
|
boolean |
first()
This operation is not supported in SearchCursor.
|
Entry |
get()
Gets the object at the current position.
|
int |
getMessageId() |
SearchResultDone |
getSearchResultDone()
gives the SearchResultDone message received at the end of search results
|
boolean |
last()
This operation is not supported in SearchCursor.
|
boolean |
next()
Advances this Cursor to the next position.
|
boolean |
previous()
This operation is not supported in SearchCursor.
|
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor, toString
public EntryCursorImpl(SearchCursor searchCursor)
searchCursor
- the embedded SearchResponse cursorpublic boolean next() throws LdapException, CursorException
next
in interface Cursor<Entry>
LdapException
- if we have get any LDAP exception while operating
the cursorCursorException
- if there are problems advancing to this Cursor to
the next position, or if this Cursor is closedpublic Entry get() throws CursorException
get
in interface Cursor<Entry>
CursorException
- if the object at this Cursor's current position
cannot be retrieved, or if this Cursor is closedpublic SearchResultDone getSearchResultDone()
getSearchResultDone
in interface EntryCursor
public boolean available()
public void close()
public void close(Exception cause)
public void after(Entry element) throws LdapException, CursorException
after
in interface Cursor<Entry>
element
- the element to be positioned afterLdapException
CursorException
public void afterLast() throws LdapException, CursorException
afterLast
in interface Cursor<Entry>
LdapException
CursorException
public void before(Entry element) throws LdapException, CursorException
before
in interface Cursor<Entry>
element
- the element to be positioned beforeLdapException
CursorException
public void beforeFirst() throws LdapException, CursorException
beforeFirst
in interface Cursor<Entry>
LdapException
CursorException
public boolean first() throws LdapException, CursorException
first
in interface Cursor<Entry>
LdapException
CursorException
public boolean last() throws LdapException, CursorException
last
in interface Cursor<Entry>
LdapException
CursorException
public boolean previous() throws LdapException, CursorException
previous
in interface Cursor<Entry>
LdapException
CursorException
public int getMessageId()
getMessageId
in interface EntryCursor
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.