pt.jcodeutil.core.sql
Class DataSet

java.lang.Object
  |
  +--pt.jcodeutil.core.sql.DataSet
All Implemented Interfaces:
java.io.Serializable

public class DataSet
extends java.lang.Object
implements java.io.Serializable

Class that represents the match Column Name - Column value in an SQL Select statement.

Title: DataSet

Description: A DataSet that contains the information about a select to the database. It constructs the DataSet from a ResultSet.

Version:
1.0
Author:
Marco Samuel (samuelbb@sapo.pt)
See Also:
Serialized Form

Inner Class Summary
protected  class DataSet.DataRow
          Class that contains the information about one row of data.
 
Constructor Summary
DataSet()
          Instanciates a DataSet.
 
Method Summary
 void addRow(DataSet.DataRow row)
          Add a row of data.
 java.util.ArrayList getDataSet()
          Return the resultset with the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSet

public DataSet()
Instanciates a DataSet.
Method Detail

addRow

public void addRow(DataSet.DataRow row)
Add a row of data.
Parameters:
row - the row to be added.

getDataSet

public java.util.ArrayList getDataSet()
Return the resultset with the data.
Returns:
the resultset with the data.