org.apache.directory.server.xdbm
Class AbstractTupleCursor<K,V>

java.lang.Object
  extended by org.apache.directory.server.xdbm.AbstractTupleCursor<K,V>
All Implemented Interfaces:
java.lang.Iterable<Tuple<K,V>>, TupleCursor<K,V>, org.apache.directory.shared.ldap.cursor.Cursor<Tuple<K,V>>
Direct Known Subclasses:
AvlSingletonOrOrderedSetCursor, AvlTableDupsCursor, AvlTreeMapNoDupsWrapperCursor, DupsContainerCursor, KeyTupleArrayCursor, KeyTupleAvlCursor, KeyTupleBTreeCursor

public abstract class AbstractTupleCursor<K,V>
extends java.lang.Object
implements TupleCursor<K,V>

An abstract TupleCursor.

Version:
$$Rev$$
Author:
Apache Directory Project

Constructor Summary
AbstractTupleCursor()
           
 
Method Summary
protected  void checkNotClosed(java.lang.String operation)
           
 void close()
           
 void close(java.lang.Exception cause)
           
 boolean isClosed()
           
 java.util.Iterator<Tuple<K,V>> iterator()
           
 void setClosureMonitor(org.apache.directory.shared.ldap.cursor.ClosureMonitor monitor)
           
 
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.server.xdbm.TupleCursor
afterKey, afterValue, beforeKey, beforeValue
 
Methods inherited from interface org.apache.directory.shared.ldap.cursor.Cursor
after, afterLast, available, before, beforeFirst, first, get, isElementReused, last, next, previous
 

Constructor Detail

AbstractTupleCursor

public AbstractTupleCursor()
Method Detail

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<Tuple<K,V>>

checkNotClosed

protected final void checkNotClosed(java.lang.String operation)
                             throws java.lang.Exception
Throws:
java.lang.Exception

isClosed

public final boolean isClosed()
Specified by:
isClosed in interface org.apache.directory.shared.ldap.cursor.Cursor<Tuple<K,V>>

close

public void close()
           throws java.lang.Exception
Specified by:
close in interface org.apache.directory.shared.ldap.cursor.Cursor<Tuple<K,V>>
Throws:
java.lang.Exception

close

public void close(java.lang.Exception cause)
           throws java.lang.Exception
Specified by:
close in interface org.apache.directory.shared.ldap.cursor.Cursor<Tuple<K,V>>
Throws:
java.lang.Exception

iterator

public java.util.Iterator<Tuple<K,V>> iterator()
Specified by:
iterator in interface java.lang.Iterable<Tuple<K,V>>


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.