org.sourceforge.jemm.database.persistent.berkeley
Class EnityCursorIterator<IK,PK>

java.lang.Object
  extended by org.sourceforge.jemm.database.persistent.berkeley.EnityCursorIterator<IK,PK>
All Implemented Interfaces:
java.util.Iterator<PK>

public abstract class EnityCursorIterator<IK,PK>
extends java.lang.Object
implements java.util.Iterator<PK>


Field Summary
protected  com.sleepycat.persist.EntityCursor<IK> cursor
           
protected  boolean done
           
protected  java.util.Iterator<IK> internalIterator
           
 
Constructor Summary
EnityCursorIterator(com.sleepycat.persist.EntityCursor<IK> cursor)
           
 
Method Summary
protected abstract  PK convert(IK internalValue)
           
 boolean hasNext()
           
 PK next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cursor

protected final com.sleepycat.persist.EntityCursor<IK> cursor

internalIterator

protected final java.util.Iterator<IK> internalIterator

done

protected boolean done
Constructor Detail

EnityCursorIterator

public EnityCursorIterator(com.sleepycat.persist.EntityCursor<IK> cursor)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<PK>

next

public PK next()
Specified by:
next in interface java.util.Iterator<PK>

convert

protected abstract PK convert(IK internalValue)

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<PK>


Copyright © 2009. All Rights Reserved.