SPT RWT Application API

com.sptci.rwt
Class Rows

java.lang.Object
  extended by com.sptci.rwt.Rows
All Implemented Interfaces:
Serializable

public class Rows
extends Object
implements Serializable

A simple value object that represents a ResultSet.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: Rows.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-10-02
See Also:
Serialized Form

Field Summary
private  List<Row> rows
          The collection of Row instances contained in result set.
private  int totalRows
          The total number of rows available in the ResultSet out of which this object was generated.
 
Constructor Summary
Rows()
           
 
Method Summary
protected  void addRow(Row row)
          Add the specified row to rows collection.
 List<Row> getRows()
          Returns rows.
 int getTotalRows()
          Returns totalRows.
protected  void setRows(List<Row> rows)
          Set rows.
protected  void setTotalRows(int totalRows)
          Set totalRows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

totalRows

private int totalRows
The total number of rows available in the ResultSet out of which this object was generated. Note that the rows collection will usually not contain the same number (usually less) of rows as the total number available.

Since:
Version 1.2

rows

private List<Row> rows
The collection of Row instances contained in result set.

Constructor Detail

Rows

public Rows()
Method Detail

getTotalRows

public int getTotalRows()
Returns totalRows.

Returns:
The value/reference of/to totalRows.
Since:
Version 1.2

setTotalRows

protected void setTotalRows(int totalRows)
Set totalRows.

Parameters:
totalRows - The value to set.
Since:
Version 1.2

getRows

public List<Row> getRows()
Returns rows.

Returns:
The value/reference of/to rows.

setRows

protected void setRows(List<Row> rows)
Set rows.

Parameters:
rows - The value to set.

addRow

protected void addRow(Row row)
Add the specified row to rows collection.

Parameters:
row - The row to be added.

SPT RWT Application API