|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EditableDataSource
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 |
---|
void startUndoRedoAction()
void endUndoRedoAction()
void undoDeletion(int index, Value[] deletedRow) throws DriverException
index
- deletedRow
-
DriverException
void undoSet(long row, int field, Value value) throws DriverException
DriverException
void undoInsert(long row) throws DriverException
DriverException
int getFieldCount() throws DriverException
DriverException
java.lang.String getFieldName(int fieldId) throws DriverException
DriverException
int getFieldType(int i) throws DriverException
DriverException
Value getOriginalFieldValue(long rowIndex, int fieldId) throws DriverException
rowIndex
- fieldId
-
DriverException
int getOriginalFieldCount() throws DriverException
DriverException
Metadata getOriginalMetadata() throws DriverException
DriverException
int getType(java.lang.String driverType)
driverType
-
DriverMetadata getOriginalDriverMetadata() throws DriverException
DriverException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |