org.objectweb.telosys.dal.dataset
Class ApplicationSQLDataSet

java.lang.Object
  extended byorg.objectweb.telosys.dal.dataset.ApplicationSQLDataSet
All Implemented Interfaces:
DataSetProvider

public class ApplicationSQLDataSet
extends java.lang.Object
implements DataSetProvider

DataSet for stable data in application scope
The dataset is load when the instance is created
NB : the dataset is shared by all the sessions


Constructor Summary
ApplicationSQLDataSet()
          Build a default ApplicationDataSet
No data loading
ApplicationSQLDataSet(SQLDataSetDefinition def)
          Build an ApplicationDataSet from a SQLDataSetDefinition
( build a SQLDataSet and load it ).
 
Method Summary
 DataSet getDataSet()
           
 int getRowCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationSQLDataSet

public ApplicationSQLDataSet()
Build a default ApplicationDataSet
No data loading


ApplicationSQLDataSet

public ApplicationSQLDataSet(SQLDataSetDefinition def)
                      throws TelosysException
Build an ApplicationDataSet from a SQLDataSetDefinition
( build a SQLDataSet and load it ).

Parameters:
def -
Throws:
TelosysException
Method Detail

getDataSet

public DataSet getDataSet()
Specified by:
getDataSet in interface DataSetProvider
Returns:
the DataSet held by this ApplicationDataSet

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface DataSetProvider
Returns:
the number of rows of the DataSet held by this ApplicationDataSet