org.datanucleus.store.query
Class AbstractQueryResultIterator

java.lang.Object
  extended by org.datanucleus.store.query.AbstractQueryResultIterator
All Implemented Interfaces:
java.util.Iterator, java.util.ListIterator
Direct Known Subclasses:
CandidateIdsQueryResult.ResultIterator

public abstract class AbstractQueryResultIterator
extends java.lang.Object
implements java.util.ListIterator

Abstract implementation of an iterator for query results. Can be used as the base class for an iterator for the implementation of AbstractQueryResult.


Field Summary
protected static Localiser LOCALISER
          Localiser for messages.
 
Constructor Summary
AbstractQueryResultIterator()
          Constructor.
 
Method Summary
 void add(java.lang.Object arg0)
           
abstract  boolean hasNext()
           
abstract  boolean hasPrevious()
           
abstract  java.lang.Object next()
           
abstract  int nextIndex()
           
abstract  java.lang.Object previous()
           
abstract  int previousIndex()
           
 void remove()
           
 void set(java.lang.Object arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER

protected static final Localiser LOCALISER
Localiser for messages.

Constructor Detail

AbstractQueryResultIterator

public AbstractQueryResultIterator()
Constructor.

Method Detail

add

public void add(java.lang.Object arg0)
Specified by:
add in interface java.util.ListIterator

hasNext

public abstract boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in interface java.util.ListIterator

hasPrevious

public abstract boolean hasPrevious()
Specified by:
hasPrevious in interface java.util.ListIterator

next

public abstract java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Specified by:
next in interface java.util.ListIterator

nextIndex

public abstract int nextIndex()
Specified by:
nextIndex in interface java.util.ListIterator

previous

public abstract java.lang.Object previous()
Specified by:
previous in interface java.util.ListIterator

previousIndex

public abstract int previousIndex()
Specified by:
previousIndex in interface java.util.ListIterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator
Specified by:
remove in interface java.util.ListIterator

set

public void set(java.lang.Object arg0)
Specified by:
set in interface java.util.ListIterator


Copyright © 2010. All Rights Reserved.