public class SingletonIndexCursor<V> extends AbstractIndexCursor<V>
UNSUPPORTED_MSG| Constructor and Description |
|---|
SingletonIndexCursor(IndexEntry<V,String> singleton) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterLast() |
boolean |
available() |
void |
beforeFirst() |
void |
close() |
void |
close(Exception cause) |
boolean |
first() |
IndexEntry<V,String> |
get() |
protected String |
getUnsupportedMessage()
Gets the message to return for operations that are not supported
|
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
after, before, setAvailablepublic SingletonIndexCursor(IndexEntry<V,String> singleton)
protected String getUnsupportedMessage()
getUnsupportedMessage in class AbstractIndexCursor<V>public boolean available()
AbstractIndexCursoravailable in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>available in class AbstractIndexCursor<V>public void beforeFirst()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
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
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
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
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean isFirst()
isFirst in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>isFirst in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>public boolean isLast()
isLast in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>isLast in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>public boolean isAfterLast()
isAfterLast in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>isAfterLast in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>public boolean isBeforeFirst()
isBeforeFirst in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>isBeforeFirst in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>public boolean previous()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic boolean next()
throws org.apache.directory.api.ldap.model.exception.LdapException,
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.cursor.CursorExceptionpublic IndexEntry<V,String> get() throws org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorExceptionpublic void close()
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>public void close(Exception cause)
close in interface org.apache.directory.api.ldap.model.cursor.Cursor<IndexEntry<V,String>>close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<IndexEntry<V,String>>Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.