org.objectweb.telosys.common.data
Class MemDataSet

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.common.data.DataSet
          extended byorg.objectweb.telosys.common.data.UpdatableDataSet
              extended byorg.objectweb.telosys.common.data.MemDataSet
All Implemented Interfaces:
java.io.Serializable

public class MemDataSet
extends UpdatableDataSet

Memory DataSet
Special DataSet designed to be loaded from memory, using a Collection of arrays of objects
Use the "load(Object)" method to initialize the DataSet with a collection
( for example a LinkedList of Object[] )

See Also:
Serialized Form

Constructor Summary
MemDataSet()
           
 
Method Summary
 int load()
          Loads the DataSet using its definition
 int load(java.lang.Object obj)
          Loads the DataSet using its definition and the given object
 
Methods inherited from class org.objectweb.telosys.common.data.UpdatableDataSet
addRow, addRow, replaceObject, replaceRow
 
Methods inherited from class org.objectweb.telosys.common.data.DataSet
getBoolean, getByte, getDataRow, getDate, getDouble, getFloat, getInt, getLong, getObject, getRowCount, getShort, getSortColumn, getSqlDate, getString, getString, initBeforeLoad, isEmpty, isSortedBy, isSortedInAscendingOrder, isSortedInDescendingOrder, iterator, sort, sort, sortIgnoreCase, sortIgnoreCase
 
Methods inherited from class org.objectweb.telosys.common.TelosysObject
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemDataSet

public MemDataSet()
Method Detail

load

public int load()
         throws TelosysException
Description copied from class: DataSet
Loads the DataSet using its definition

Specified by:
load in class DataSet
Returns:
Throws:
TelosysException

load

public int load(java.lang.Object obj)
         throws TelosysException
Description copied from class: DataSet
Loads the DataSet using its definition and the given object

Specified by:
load in class DataSet
Parameters:
obj - useful parameter for the load operation ( cannot be null )
e.g. with SQLDataSet : Connection, DatabaseSession, ...
Returns:
Throws:
TelosysException