|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OJBIterator
A Iterator
extension internaly used by OJB to handle query results.
NOTE: OJB is very strict in handling OJBIterator instances. OJBIterator is
bound very closely to the used PersistenceBroker
instance.
Thus if you do a
- PersistenceBroker.close()
- PersistenceBroker.commitTransaction()
- PersistenceBroker.abortTransaction()
call, the current OJBIterator instance resources will be cleaned up automatic
and invalidate current instance.
Method Summary | |
---|---|
boolean |
absolute(int row)
Moves the cursor to the given row number in the iterator. |
void |
disableLifeCycleEvents()
Do not fire any PBLifeCycleEvent when reading next item. |
int |
fullSize()
|
boolean |
relative(int row)
Moves the cursor a relative number of rows, either positive or negative. |
void |
releaseDbResources()
Release all internally used Database resources of the iterator. |
int |
size()
|
Methods inherited from interface java.util.Iterator |
---|
hasNext, next, remove |
Method Detail |
---|
int size() throws PersistenceBrokerException
PersistenceBrokerException
int fullSize() throws PersistenceBrokerException
PersistenceBrokerException
boolean absolute(int row) throws PersistenceBrokerException
row
- the row to move to in this iterator, by absolute number
PersistenceBrokerException
boolean relative(int row) throws PersistenceBrokerException
row
- the row to move to in this iterator, by relative number
PersistenceBrokerException
void releaseDbResources()
void disableLifeCycleEvents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |