public class PagingIterator extends java.lang.Object implements OJBIterator
| Constructor and Description |
|---|
PagingIterator(OJBIterator anIterator,
int startAt,
int endAt)
Constructor
|
| 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 |
hasNext() |
java.lang.Object |
next() |
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.
|
void |
remove()
remove is not supported
|
int |
size() |
public PagingIterator(OJBIterator anIterator, int startAt, int endAt)
anIterator - wrapped IteratorstartAt - (first row is 1)endAt - (Query.NO_END_AT_INDEX stands for all available rows)public int size()
throws PersistenceBrokerException
size in interface OJBIteratorPersistenceBrokerExceptionOJBIterator.size()public int fullSize()
throws PersistenceBrokerException
fullSize in interface OJBIteratorPersistenceBrokerExceptionOJBIterator.fullSize()public boolean absolute(int row)
throws PersistenceBrokerException
OJBIteratorabsolute in interface OJBIteratorrow - the row to move to in this iterator, by absolute numberPersistenceBrokerExceptionOJBIterator.absolute(int)public boolean relative(int row)
throws PersistenceBrokerException
OJBIteratorrelative in interface OJBIteratorrow - the row to move to in this iterator, by relative numberPersistenceBrokerExceptionOJBIterator.relative(int)public void releaseDbResources()
OJBIteratorreleaseDbResources in interface OJBIteratorOJBIterator.releaseDbResources()public void remove()
remove in interface java.util.Iteratorpublic boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.IteratorIterator.next()public void disableLifeCycleEvents()
OJBIteratordisableLifeCycleEvents in interface OJBIteratorOJBIterator.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