public class ChainingIterator extends java.lang.Object implements OJBIterator
| Constructor and Description |
|---|
ChainingIterator()
Constructor for ChainingIterator.
|
ChainingIterator(java.util.List iterators)
Constructor for ChainingIterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int row)
the absolute and relative calls are the trickiest parts.
|
void |
addIterator(OJBIterator iterator)
use this method to construct the ChainingIterator
iterator by iterator.
|
boolean |
containsIteratorForTable(java.lang.String aTable)
Answer true if an Iterator for a Table is already available
|
void |
disableLifeCycleEvents()
Do not fire any PBLifeCycleEvent when reading next item.
|
int |
fullSize() |
boolean |
hasNext()
check the list of iterators to see if we have a next element.
|
java.lang.Object |
next()
first checks to make sure we aren't at the end of the list of
iterators, positions the cursor appropriately, then retrieves
next object in active iterator.
|
boolean |
relative(int row)
Moves the cursor a relative number of rows.
|
void |
releaseDbResources()
delegate to each contained OJBIterator and release
its resources.
|
void |
remove() |
int |
size()
Calculates the size of all the iterators.
|
public ChainingIterator()
public ChainingIterator(java.util.List iterators)
public void addIterator(OJBIterator iterator)
public int size()
throws PersistenceBrokerException
size in interface OJBIteratorPersistenceBrokerExceptionpublic int fullSize()
throws PersistenceBrokerException
fullSize in interface OJBIteratorPersistenceBrokerExceptionpublic boolean absolute(int row)
throws PersistenceBrokerException
absolute in interface OJBIteratorrow - the row to move to in this iterator, by absolute numberPersistenceBrokerExceptionpublic boolean relative(int row)
throws PersistenceBrokerException
relative in interface OJBIteratorrow - the row to move to in this iterator, by relative numberPersistenceBrokerExceptionpublic void releaseDbResources()
releaseDbResources in interface OJBIteratorpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorpublic boolean containsIteratorForTable(java.lang.String aTable)
aTable - public void disableLifeCycleEvents()
OJBIteratordisableLifeCycleEvents in interface OJBIteratorOJBIterator.disableLifeCycleEvents()(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30