|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.cursor.AbstractCursor<Entry>
org.apache.directory.ldap.client.api.EntryCursorImpl
public class EntryCursorImpl
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()
| Constructor Summary | |
|---|---|
EntryCursorImpl(SearchCursor searchCursor)
Instantiates a new search cursor, embedding a SearchCursor. |
|
| Method Summary | |
|---|---|
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. |
| 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 org.apache.directory.api.ldap.model.cursor.Cursor |
|---|
isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, setClosureMonitor, toString |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
public EntryCursorImpl(SearchCursor searchCursor)
searchCursor - the embedded SearchResponse cursor| Method Detail |
|---|
public boolean next()
throws LdapException,
CursorException,
IOException
next in interface Cursor<Entry>LdapException - if we have get any LDAP exception while operating
the cursor
CursorException - if there are problems advancing to this Cursor to
the next position, or if this Cursor is closed
IOException - If we have had any IO Exception
public Entry get()
throws CursorException,
IOException
get in interface Cursor<Entry>CursorException - if the object at this Cursor's current position
cannot be retrieved, or if this Cursor is closed
IOException - If we have had any IO Exceptionpublic SearchResultDone getSearchResultDone()
getSearchResultDone in interface EntryCursorpublic boolean available()
available in interface Cursor<Entry>public void close()
close in interface Cursor<Entry>close in class AbstractCursor<Entry>public void close(Exception cause)
close in interface Cursor<Entry>close in class AbstractCursor<Entry>cause - exception thrown when this Cursor is accessed after close
public void after(Entry element)
throws LdapException,
CursorException,
IOException
after in interface Cursor<Entry>element - the element to be positioned after
LdapException
CursorException
IOException
public void afterLast()
throws LdapException,
CursorException,
IOException
afterLast in interface Cursor<Entry>LdapException
CursorException
IOException
public void before(Entry element)
throws LdapException,
CursorException,
IOException
before in interface Cursor<Entry>element - the element to be positioned before
LdapException
CursorException
IOException
public void beforeFirst()
throws LdapException,
CursorException,
IOException
beforeFirst in interface Cursor<Entry>LdapException
CursorException
IOException
public boolean first()
throws LdapException,
CursorException,
IOException
first in interface Cursor<Entry>LdapException
CursorException
IOException
public boolean last()
throws LdapException,
CursorException,
IOException
last in interface Cursor<Entry>LdapException
CursorException
IOException
public boolean previous()
throws LdapException,
CursorException,
IOException
previous in interface Cursor<Entry>LdapException
CursorException
IOExceptionpublic int getMessageId()
getMessageId in interface EntryCursor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||