com.hardcode.gdbms.engine.data.command
Class UndoableAlphanumericDataSource

java.lang.Object
  extended by com.hardcode.gdbms.engine.data.command.AbstractUndoableDataSource
      extended by com.hardcode.gdbms.engine.data.command.UndoableAlphanumericDataSource
All Implemented Interfaces:
AlphanumericDataSource, DataSource, ReadAccess

public class UndoableAlphanumericDataSource
extends AbstractUndoableDataSource
implements AlphanumericDataSource


Field Summary
 
Fields inherited from class com.hardcode.gdbms.engine.data.command.AbstractUndoableDataSource
cs, dataSource
 
Fields inherited from interface com.hardcode.gdbms.engine.data.DataSource
COHERENT_ROW_ORDER, DIRECT_MODE, DISPATCH, IGNORE, STORE
 
Constructor Summary
UndoableAlphanumericDataSource(DataSource ds)
           
 
Method Summary
 void deleteRow(long rowId)
          Deletes the ith row of the DataSource
 void insertEmptyRow()
          Inserts a row at the end of the dataware
 void insertEmptyRowAt(long index)
          Inserts a row at the end of the dataware
 void insertFilledRow(Value[] values)
          Inserts a row at the end of the dataware with the specified values
 void insertFilledRowAt(long index, Value[] values)
          Inserts a row at the end of the dataware with the specified values
 
Methods inherited from class com.hardcode.gdbms.engine.data.command.AbstractUndoableDataSource
addEditionListener, addField, addField, addMetadataEditionListener, addSelectionListener, beginTrans, canRedo, canUndo, check, commitTrans, getAlias, getAsString, getDataSourceFactory, getDataSourceMetadata, getDispatchingMode, getDriver, getDriverMetadata, getEmptyRow, getFieldIndexByName, getFieldNames, getFieldValue, getMemento, getName, getRow, getRowCount, getSelectedRows, getWhereFilter, isModified, redo, remove, removeEditionListener, removeField, removeMetadataEditionListener, removeSelectionListener, rollBackTrans, saveData, setDataSourceFactory, setDispatchingMode, setFieldName, setFieldValue, setSelectedRows, start, stop, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hardcode.gdbms.engine.data.DataSource
addEditionListener, addField, addField, addMetadataEditionListener, addSelectionListener, beginTrans, canRedo, canUndo, check, commitTrans, getAlias, getAsString, getDataSourceFactory, getDataSourceMetadata, getDispatchingMode, getDriver, getDriverMetadata, getFieldIndexByName, getFieldNames, getMemento, getName, getRow, getSelectedRows, getWhereFilter, isModified, redo, remove, removeEditionListener, removeField, removeMetadataEditionListener, removeSelectionListener, rollBackTrans, saveData, setDataSourceFactory, setDispatchingMode, setFieldName, setFieldValue, setSelectedRows, start, stop, undo
 
Methods inherited from interface com.hardcode.gdbms.engine.data.driver.ReadAccess
getFieldValue, getRowCount
 

Constructor Detail

UndoableAlphanumericDataSource

public UndoableAlphanumericDataSource(DataSource ds)
Method Detail

deleteRow

public void deleteRow(long rowId)
               throws DriverException
Description copied from interface: AlphanumericDataSource
Deletes the ith row of the DataSource

Specified by:
deleteRow in interface AlphanumericDataSource
Parameters:
rowId - index of the row to be deleted
Throws:
DriverException - if the row could not be deleted

insertEmptyRow

public void insertEmptyRow()
                    throws DriverException
Description copied from interface: DataSource
Inserts a row at the end of the dataware

Specified by:
insertEmptyRow in interface DataSource
Throws:
DriverException - if the row could not be inserted

insertEmptyRowAt

public void insertEmptyRowAt(long index)
                      throws DriverException
Description copied from interface: AlphanumericDataSource
Inserts a row at the end of the dataware

Specified by:
insertEmptyRowAt in interface AlphanumericDataSource
Parameters:
index - index where the row will be inserted. No data is lost.
Throws:
DriverException - if the row could not be inserted

insertFilledRow

public void insertFilledRow(Value[] values)
                     throws DriverException
Description copied from interface: DataSource
Inserts a row at the end of the dataware with the specified values

Specified by:
insertFilledRow in interface DataSource
Parameters:
values - Values of the inserted row fields in the field order
Throws:
DriverException - if the row could not be inserted

insertFilledRowAt

public void insertFilledRowAt(long index,
                              Value[] values)
                       throws DriverException
Description copied from interface: AlphanumericDataSource
Inserts a row at the end of the dataware with the specified values

Specified by:
insertFilledRowAt in interface AlphanumericDataSource
Parameters:
index - index where the row will be inserted. No data is lost.
values - Values of the inserted row fields in the field order
Throws:
DriverException - if the row could not be inserted


Copyright © 2005-2006 . All Rights Reserved.