org.apache.directory.server.core.partition.impl.btree
Class ServerEntryCursorAdaptor<ID>
java.lang.Object
org.apache.directory.server.core.partition.impl.btree.ServerEntryCursorAdaptor<ID>
- All Implemented Interfaces:
- java.lang.Iterable<org.apache.directory.shared.ldap.entry.ServerEntry>, org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
public class ServerEntryCursorAdaptor<ID>
- extends java.lang.Object
- implements org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Adapts index cursors to return just ServerEntry objects.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerEntryCursorAdaptor
public ServerEntryCursorAdaptor(BTreePartition<ID> db,
IndexCursor<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexCursor)
after
public void after(org.apache.directory.shared.ldap.entry.ServerEntry element)
throws java.lang.Exception
- Specified by:
after
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
afterLast
public void afterLast()
throws java.lang.Exception
- Specified by:
afterLast
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
available
public boolean available()
- Specified by:
available
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
before
public void before(org.apache.directory.shared.ldap.entry.ServerEntry element)
throws java.lang.Exception
- Specified by:
before
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
beforeFirst
public void beforeFirst()
throws java.lang.Exception
- Specified by:
beforeFirst
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
setClosureMonitor
public final void setClosureMonitor(org.apache.directory.shared.ldap.cursor.ClosureMonitor monitor)
- Specified by:
setClosureMonitor
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
close
public void close()
throws java.lang.Exception
- Specified by:
close
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
close
public void close(java.lang.Exception e)
throws java.lang.Exception
- Specified by:
close
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
first
public boolean first()
throws java.lang.Exception
- Specified by:
first
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
get
public org.apache.directory.shared.ldap.entry.ServerEntry get()
throws java.lang.Exception
- Specified by:
get
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
isClosed
public boolean isClosed()
throws java.lang.Exception
- Specified by:
isClosed
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
isElementReused
public boolean isElementReused()
- Specified by:
isElementReused
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
last
public boolean last()
throws java.lang.Exception
- Specified by:
last
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
next
public boolean next()
throws java.lang.Exception
- Specified by:
next
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
previous
public boolean previous()
throws java.lang.Exception
- Specified by:
previous
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
- Throws:
java.lang.Exception
iterator
public java.util.Iterator<org.apache.directory.shared.ldap.entry.ServerEntry> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<org.apache.directory.shared.ldap.entry.ServerEntry>
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.