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.


Constructor Index

 o DBIterator()

Method Index

 o next(Object[])
Gets the next record.
 o reset()
Resets the iterator.

Constructors

 o DBIterator
 public DBIterator()

Methods

 o 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.

 o 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