|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.accesslayer.ChainingIterator
| Constructor Summary | |
ChainingIterator()
Constructor for ChainingIterator. |
|
ChainingIterator(java.util.List iterators)
Constructor for ChainingIterator. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChainingIterator()
public ChainingIterator(java.util.List iterators)
| Method Detail |
public void addIterator(OJBIterator iterator)
public int size()
throws PersistenceBrokerException
size in interface OJBIteratorPersistenceBrokerException
public int fullSize()
throws PersistenceBrokerException
fullSize in interface OJBIteratorPersistenceBrokerException
public boolean absolute(int row)
throws PersistenceBrokerException
absolute in interface OJBIteratorrow - the row to move to in this iterator, by absolute number
PersistenceBrokerException
public boolean relative(int row)
throws PersistenceBrokerException
relative in interface OJBIteratorrow - the row to move to in this iterator, by relative number
PersistenceBrokerExceptionpublic 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()
OJBIterator
disableLifeCycleEvents in interface OJBIteratorOJBIterator.disableLifeCycleEvents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||