org.datanucleus.store.rdbms.scostore
Class ListStoreIterator

java.lang.Object
  extended by org.datanucleus.store.rdbms.scostore.ListStoreIterator
All Implemented Interfaces:
Iterator, ListIterator
Direct Known Subclasses:
RDBMSListStoreIterator

public abstract class ListStoreIterator
extends Object
implements ListIterator

Abstract iterator for presenting the results for a list store.


Constructor Summary
ListStoreIterator(org.datanucleus.store.ObjectProvider sm, Object resultSet, org.datanucleus.store.query.ResultObjectFactory rof, AbstractListStore als)
          Constructor
 
Method Summary
 void add(Object o)
           
protected abstract  org.datanucleus.metadata.AbstractMemberMetaData getOwnerMemberMetaData(org.datanucleus.store.mapped.DatastoreContainerObject containerTable)
          Method to return the owner member metadata for the supplied table
 boolean hasNext()
           
 boolean hasPrevious()
           
 Object next()
           
protected abstract  boolean next(Object resultSet)
          Method to move to the next row in the results.
 int nextIndex()
           
 Object previous()
           
 int previousIndex()
           
 void remove()
           
 void set(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListStoreIterator

public ListStoreIterator(org.datanucleus.store.ObjectProvider sm,
                         Object resultSet,
                         org.datanucleus.store.query.ResultObjectFactory rof,
                         AbstractListStore als)
                  throws org.datanucleus.store.mapped.exceptions.MappedDatastoreException
Constructor

Parameters:
sm - the StateManager
resultSet - the ResultSet
rof - the Query.ResultObjectFactory
Throws:
SQLException
org.datanucleus.store.mapped.exceptions.MappedDatastoreException
Method Detail

add

public void add(Object o)
Specified by:
add in interface ListIterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator
Specified by:
hasNext in interface ListIterator

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator

next

public Object next()
Specified by:
next in interface Iterator
Specified by:
next in interface ListIterator

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator

previous

public Object previous()
Specified by:
previous in interface ListIterator

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator

remove

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

set

public void set(Object o)
Specified by:
set in interface ListIterator

next

protected abstract boolean next(Object resultSet)
                         throws org.datanucleus.store.mapped.exceptions.MappedDatastoreException
Method to move to the next row in the results.

Parameters:
resultSet - The result set
Returns:
Whether there is a next row
Throws:
org.datanucleus.store.mapped.exceptions.MappedDatastoreException

getOwnerMemberMetaData

protected abstract org.datanucleus.metadata.AbstractMemberMetaData getOwnerMemberMetaData(org.datanucleus.store.mapped.DatastoreContainerObject containerTable)
Method to return the owner member metadata for the supplied table

Parameters:
containerTable - The table for the list
Returns:
the metadata for the owner member


Copyright © 2012. All Rights Reserved.