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 OJBIterator
PersistenceBrokerException
public int fullSize() throws PersistenceBrokerException
fullSize
in interface OJBIterator
PersistenceBrokerException
public boolean absolute(int row) throws PersistenceBrokerException
absolute
in interface OJBIterator
row
- the row to move to in this iterator, by absolute numberPersistenceBrokerException
public boolean relative(int row) throws PersistenceBrokerException
relative
in interface OJBIterator
row
- the row to move to in this iterator, by relative numberPersistenceBrokerException
public void releaseDbResources()
releaseDbResources
in interface OJBIterator
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public boolean containsIteratorForTable(java.lang.String aTable)
aTable
- public void disableLifeCycleEvents()
OJBIterator
disableLifeCycleEvents
in interface OJBIterator
OJBIterator.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