com.hardcode.gdbms.engine.data
Interface AlphanumericDataSource

All Superinterfaces:
DataSource, ReadAccess
All Known Implementing Classes:
AlphanumericFileDataSourceAdapter, AlphanumericObjectDataSourceAdapter, AutomaticDataSource, DBTableDataSourceAdapter, UndoableAlphanumericDataSource

public interface AlphanumericDataSource
extends DataSource


Field Summary
 
Fields inherited from interface com.hardcode.gdbms.engine.data.DataSource
COHERENT_ROW_ORDER, DIRECT_MODE, DISPATCH, IGNORE, STORE
 
Method Summary
 void deleteRow(long rowId)
          Deletes the ith row of the DataSource
 void insertEmptyRowAt(long index)
          Inserts a row at the end of the dataware
 void insertFilledRowAt(long index, Value[] values)
          Inserts a row at the end of the dataware with the specified values
 
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, insertEmptyRow, insertFilledRow, 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
 

Method Detail

deleteRow

void deleteRow(long rowId)
               throws DriverException
Deletes the ith row of the DataSource

Parameters:
rowId - index of the row to be deleted
Throws:
DriverException - if the row could not be deleted

insertFilledRowAt

void insertFilledRowAt(long index,
                       Value[] values)
                       throws DriverException
Inserts a row at the end of the dataware with the specified values

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

insertEmptyRowAt

void insertEmptyRowAt(long index)
                      throws DriverException
Inserts a row at the end of the dataware

Parameters:
index - index where the row will be inserted. No data is lost.
Throws:
DriverException - if the row could not be inserted


Copyright © 2005-2006 . All Rights Reserved.