org.objectweb.telosys.common.data
Class UpdatableDataSet

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

public abstract class UpdatableDataSet
extends DataSet

See Also:
Serialized Form

Constructor Summary
UpdatableDataSet()
           
 
Method Summary
 int addRow()
          Add a new void DataRow at the end of the DataSet
 int addRow(DataRow dataRow)
          Add a DataRow at the end of the DataSet
 boolean replaceObject(int iRow, int iCol, java.lang.Object newObject)
          Replaces the object at the given position by a new one
 DataRow replaceRow(int iRow, DataRow dataRow)
          Replaces the DataRow at the given position by a new one
 
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, load, load, 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

UpdatableDataSet

public UpdatableDataSet()
Method Detail

replaceRow

public DataRow replaceRow(int iRow,
                          DataRow dataRow)
Replaces the DataRow at the given position by a new one

Overrides:
replaceRow in class DataSet
Parameters:
iRow - index of row to replace ( 1 to N )
dataRow - the DataRow to be stored at the specified position
Returns:
the DataRow previously at the specified position

addRow

public int addRow(DataRow dataRow)
Add a DataRow at the end of the DataSet

Overrides:
addRow in class DataSet
Parameters:
dataRow - the DataRow to be added
Returns:

addRow

public int addRow()
Add a new void DataRow at the end of the DataSet

Overrides:
addRow in class DataSet
Returns:
the number of rows in the DataSet with the new DataRow added

replaceObject

public boolean replaceObject(int iRow,
                             int iCol,
                             java.lang.Object newObject)
Replaces the object at the given position by a new one

Parameters:
iRow -
iCol -
newObject -
Returns:
true is OK, false if the object cannot be replace (ie the DataRow is null)