|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.broker.accesslayer.ChainingIterator
public class ChainingIterator
Field Summary | |
---|---|
private boolean |
disableLifeCycleEvents
if true do not fire PBLifeCycleEvent. |
private OJBIterator |
m_activeIterator
|
private int |
m_activeIteratorIndex
The following are used to maintain an index of where the cursor is in the array of rsiterators. |
private int |
m_currentCursorPosition
|
private int |
m_fullSize
|
private List |
m_rsIterators
|
Constructor Summary | |
---|---|
ChainingIterator()
Constructor for ChainingIterator. |
|
ChainingIterator(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(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. |
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()
|
private boolean |
setNextIterator()
Convenience routine to move to the next iterator if needed. |
int |
size()
Calculates the size of all the iterators. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private List m_rsIterators
private OJBIterator m_activeIterator
private int m_activeIteratorIndex
private int m_fullSize
private int m_currentCursorPosition
private boolean disableLifeCycleEvents
Constructor Detail |
---|
public ChainingIterator()
public ChainingIterator(List iterators)
Method Detail |
---|
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 number
PersistenceBrokerException
public boolean relative(int row) throws PersistenceBrokerException
relative
in interface OJBIterator
row
- the row to move to in this iterator, by relative number
PersistenceBrokerException
public void releaseDbResources()
releaseDbResources
in interface OJBIterator
public boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
public void remove()
remove
in interface Iterator
private boolean setNextIterator()
public boolean containsIteratorForTable(String aTable)
aTable
-
public void disableLifeCycleEvents()
OJBIterator
disableLifeCycleEvents
in interface OJBIterator
OJBIterator.disableLifeCycleEvents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |