com.hardcode.gdbms.engine.data.edition
Interface EditableDataSource

All Superinterfaces:
DataSource, ReadAccess
All Known Subinterfaces:
PKEditableDataSource
All Known Implementing Classes:
AlphanumericFileDataSourceAdapter, AlphanumericObjectDataSourceAdapter, DBSpatialDataSourceAdapter, DBTableDataSourceAdapter, SpatialFileDataSourceAdapter, SpatialObjectDataSourceAdapter

public interface EditableDataSource
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 endUndoRedoAction()
          Notifies this DataSource that the next edition operations no longer are caused by an undo or redo operation
 int getFieldCount()
           
 java.lang.String getFieldName(int fieldId)
           
 int getFieldType(int i)
           
 DriverMetadata getOriginalDriverMetadata()
          Gets the driver specific metadata from the driver directly without the new, modified or deleted fields
 int getOriginalFieldCount()
          Gets the number of field this DataSource had before edition started
 Value getOriginalFieldValue(long rowIndex, int fieldId)
          Gets the value of the DataSource field before the edition started
 Metadata getOriginalMetadata()
          Gets the Metadata from the driver without taking care of added, removed or modified fields.
 int getType(java.lang.String driverType)
          Returns the suitable GDBMS type for the given driver specific type
 void startUndoRedoAction()
          Notifies this DataSource that the next edition operations are caused by an undo or redo operation
 void undoDeletion(int index, Value[] deletedRow)
          Notifies the adapter that the specified index deletion is being undone
 void undoInsert(long row)
           
 void undoSet(long row, int field, Value value)
           
 
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

startUndoRedoAction

void startUndoRedoAction()
Notifies this DataSource that the next edition operations are caused by an undo or redo operation


endUndoRedoAction

void endUndoRedoAction()
Notifies this DataSource that the next edition operations no longer are caused by an undo or redo operation


undoDeletion

void undoDeletion(int index,
                  Value[] deletedRow)
                  throws DriverException
Notifies the adapter that the specified index deletion is being undone

Parameters:
index -
deletedRow -
Throws:
DriverException

undoSet

void undoSet(long row,
             int field,
             Value value)
             throws DriverException
Throws:
DriverException

undoInsert

void undoInsert(long row)
                throws DriverException
Throws:
DriverException

getFieldCount

int getFieldCount()
                  throws DriverException
Throws:
DriverException

getFieldName

java.lang.String getFieldName(int fieldId)
                              throws DriverException
Throws:
DriverException

getFieldType

int getFieldType(int i)
                 throws DriverException
Throws:
DriverException

getOriginalFieldValue

Value getOriginalFieldValue(long rowIndex,
                            int fieldId)
                            throws DriverException
Gets the value of the DataSource field before the edition started

Parameters:
rowIndex -
fieldId -
Returns:
Throws:
DriverException

getOriginalFieldCount

int getOriginalFieldCount()
                          throws DriverException
Gets the number of field this DataSource had before edition started

Returns:
Throws:
DriverException

getOriginalMetadata

Metadata getOriginalMetadata()
                             throws DriverException
Gets the Metadata from the driver without taking care of added, removed or modified fields.

Returns:
Throws:
DriverException

getType

int getType(java.lang.String driverType)
Returns the suitable GDBMS type for the given driver specific type

Parameters:
driverType -
Returns:

getOriginalDriverMetadata

DriverMetadata getOriginalDriverMetadata()
                                         throws DriverException
Gets the driver specific metadata from the driver directly without the new, modified or deleted fields

Returns:
Throws:
DriverException


Copyright © 2005-2006 . All Rights Reserved.