All Packages Class Hierarchy This Package Previous Next Index
Class com.infoplace.simpledb.DBIterator
java.lang.Object
|
+----com.infoplace.simpledb.DBIterator
- public abstract class DBIterator
- extends Object
This is an iterator to iterate through a set of records in the
database table, defined by class DBTable.
-
DBIterator()
-
-
next(Object[])
- Gets the next record.
-
reset()
- Resets the iterator.
DBIterator
public DBIterator()
reset
public abstract void reset()
- Resets the iterator. The current cursor is move to the begining
of the record-set. This should be done before looping through the
records using next method.
next
public abstract boolean next(Object record[]) throws DBException
- Gets the next record. Return true if there is a next record.
Otherwise, return false.
- Parameters:
- record - This is filled by the call
- Returns:
- If there is a next record then true. Otherwise false.
- Throws: DBException
- When the underlying table is stale or an io error occurred,
look at the getMessage() value for exact error.
All Packages Class Hierarchy This Package Previous Next Index