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 OJBIterator
PersistenceBrokerException
OJBIterator.size()
public int fullSize() throws PersistenceBrokerException
fullSize
in interface OJBIterator
PersistenceBrokerException
OJBIterator.fullSize()
public boolean absolute(int row) throws PersistenceBrokerException
OJBIterator
absolute
in interface OJBIterator
row
- the row to move to in this iterator, by absolute numberPersistenceBrokerException
OJBIterator.absolute(int)
public boolean relative(int row) throws PersistenceBrokerException
OJBIterator
relative
in interface OJBIterator
row
- the row to move to in this iterator, by relative numberPersistenceBrokerException
OJBIterator.relative(int)
public void releaseDbResources()
OJBIterator
releaseDbResources
in interface OJBIterator
OJBIterator.releaseDbResources()
public void remove()
remove
in interface java.util.Iterator
public boolean hasNext()
hasNext
in interface java.util.Iterator
Iterator.hasNext()
public java.lang.Object next()
next
in interface java.util.Iterator
Iterator.next()
public void disableLifeCycleEvents()
OJBIterator
disableLifeCycleEvents
in interface OJBIterator
OJBIterator.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