javatools.db
Class DbRowSet

java.lang.Object
  |
  +--javatools.db.DbRowSet

public class DbRowSet
extends java.lang.Object

It contains only a set of rows.


Constructor Summary
DbRowSet()
          Creates new DbRowSet
 
Method Summary
 void add(DbRow newRow)
          Adds a row to the list.
 void clear()
          Completely clears this row set.
 DbRow get(int pos)
          Returns a row at the specified position.
 void remove(int pos)
          Removes a row from the list.
 int size()
          Returns the number of contained rows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbRowSet

public DbRowSet()
Creates new DbRowSet

Method Detail

get

public DbRow get(int pos)
          throws DbException
Returns a row at the specified position.

Parameters:
pos - The requested row index.
Returns:
The requester row.
Throws:
DbException - If something goes wrong.

size

public int size()
Returns the number of contained rows.

Returns:
The rows count.

add

public void add(DbRow newRow)
Adds a row to the list.

Parameters:
newRow - The row to be added.

remove

public void remove(int pos)
            throws DbException
Removes a row from the list.

Parameters:
pos - The index of the row to be removed.
Throws:
DbException - If something goes wrong.

clear

public void clear()
Completely clears this row set.