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

All Known Implementing Classes:
MemoryInternalBuffer

public interface InternalBuffer

The internal buffer must store the records in the same position all the time


Method Summary
 void addField()
           
 Value getFieldValue(long rowIndex, int fieldId)
           
 long insertRow(Value[] values)
          Inserts a row with data
 void removeField(int index)
           
 void restoreStatus()
          Restores the snapshot created in the last call to saveStatus
 void saveStatus()
          Creates a snapshot of the internalbuffer to restore it in the next call to restoreStatus
 void setFieldValue(long row, int modifiedField, Value modifiedValue)
           
 void setRow(long row, Value[] modifiedRow)
          Set the modified row at the specified index
 void start()
           
 void stop()
           
 

Method Detail

insertRow

long insertRow(Value[] values)
               throws DriverException
Inserts a row with data

Parameters:
values - values of the data to be inserted
Returns:
index where the row is inserted
Throws:
DriverException - if the operation fails

setRow

void setRow(long row,
            Value[] modifiedRow)
            throws DriverException
Set the modified row at the specified index

Parameters:
row - index of the row to update
modifiedRow - Value array with the update
Throws:
DriverException - if the update fails

setFieldValue

void setFieldValue(long row,
                   int modifiedField,
                   Value modifiedValue)
                   throws DriverException
Parameters:
row -
modifiedField -
modifiedValue -
Throws:
DriverException

start

void start()
           throws DriverException
Throws:
DriverException
See Also:
DataSource.start()

stop

void stop()
          throws DriverException
Throws:
DriverException
See Also:
DataSource.stop()

getFieldValue

Value getFieldValue(long rowIndex,
                    int fieldId)
                    throws DriverException
Throws:
DriverException
See Also:
ReadAccess.getFieldValue(long, int)

removeField

void removeField(int index)

addField

void addField()

saveStatus

void saveStatus()
Creates a snapshot of the internalbuffer to restore it in the next call to restoreStatus


restoreStatus

void restoreStatus()
Restores the snapshot created in the last call to saveStatus



Copyright © 2005-2006 . All Rights Reserved.