com.hardcode.gdbms.engine.data.edition
Class RowTransactionSupport

java.lang.Object
  extended by com.hardcode.gdbms.engine.data.edition.RowTransactionSupport
Direct Known Subclasses:
PKTransactionSupport

public class RowTransactionSupport
extends java.lang.Object


Field Summary
protected  EditableDataSource ds
           
protected  InternalBuffer internalBuffer
           
protected  MetadataEditionSupport mes
           
 
Constructor Summary
RowTransactionSupport(EditableDataSource ds, MetadataEditionSupport mes)
           
 
Method Summary
 void addField()
           
 void beginTrans(long rc)
           
 void close()
           
 void deleteRow(long rowId)
           
 Value getFieldValue(long rowIndex, int fieldId)
           
protected  long getOriginalRowIndex(long rowId)
           
 long getRowCount()
           
 long insertRow(Value[] values)
           
 long insertRowAt(long rowIndex, Value[] values)
           
 void removeField(int index)
           
 void restoreStatus()
           
 void saveStatus()
           
 long setFieldValue(long row, int fieldId, Value value, Value[] originalRow)
          Sets the value in the internal buffer and returns the row where it's inserted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internalBuffer

protected InternalBuffer internalBuffer

ds

protected EditableDataSource ds

mes

protected MetadataEditionSupport mes
Constructor Detail

RowTransactionSupport

public RowTransactionSupport(EditableDataSource ds,
                             MetadataEditionSupport mes)
                      throws DriverException
Throws:
DriverException
Method Detail

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 index
fieldId - field id
value - value to be inserted
originalRow - 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.