public interface OJBIterator
extends java.util.Iterator
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.
Modifier and Type | Method and Description |
---|---|
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() |
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 numberPersistenceBrokerException
boolean relative(int row) throws PersistenceBrokerException
row
- the row to move to in this iterator, by relative numberPersistenceBrokerException
void releaseDbResources()
void 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