com.hardcode.gdbms.engine.data.edition
Class RowTransactionSupport
java.lang.Object
com.hardcode.gdbms.engine.data.edition.RowTransactionSupport
- Direct Known Subclasses:
- PKTransactionSupport
public class RowTransactionSupport
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
internalBuffer
protected InternalBuffer internalBuffer
ds
protected EditableDataSource ds
mes
protected MetadataEditionSupport mes
RowTransactionSupport
public RowTransactionSupport(EditableDataSource ds,
MetadataEditionSupport mes)
throws DriverException
- Throws:
DriverException
deleteRow
public void deleteRow(long rowId)
throws DriverException
- Throws:
DriverException
insertRow
public long insertRow(Value[] values)
throws DriverException
- Throws:
DriverException
insertRowAt
public long insertRowAt(long rowIndex,
Value[] values)
throws DriverException
- Throws:
DriverException
beginTrans
public void beginTrans(long rc)
throws DriverException
- Throws:
DriverException
close
public void close()
throws DriverException
- Throws:
DriverException
- See Also:
com.hardcode.gdbms.engine.data.edition.DataWare#rollBackTrans()
setFieldValue
public long setFieldValue(long row,
int fieldId,
Value value,
Value[] originalRow)
throws DriverException
- Sets the value in the internal buffer and returns the row where it's
inserted
- Parameters:
row
- virtual row indexfieldId
- field idvalue
- value to be insertedoriginalRow
- row with the values of the row before the modification if
it's the first time the row is modified. If it isn't can be null.
- Returns:
-
- Throws:
DriverException
getFieldValue
public Value getFieldValue(long rowIndex,
int fieldId)
throws DriverException
- Throws:
DriverException
getRowCount
public long getRowCount()
getOriginalRowIndex
protected long getOriginalRowIndex(long rowId)
removeField
public void removeField(int index)
addField
public void addField()
saveStatus
public void saveStatus()
restoreStatus
public void restoreStatus()
Copyright © 2005-2006 . All Rights Reserved.