|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hardcode.gdbms.engine.data.edition.MemoryInternalBuffer
public class MemoryInternalBuffer
Constructor Summary | |
---|---|
MemoryInternalBuffer()
|
Method Summary | |
---|---|
void |
addField()
|
void |
deleteRow(long rowId)
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryInternalBuffer()
Method Detail |
---|
public void deleteRow(long rowId) throws DriverException
DriverException
public long insertRow(Value[] values) throws DriverException
InternalBuffer
insertRow
in interface InternalBuffer
values
- values of the data to be inserted
DriverException
- if the operation failspublic void setRow(long row, Value[] modifiedRow) throws DriverException
InternalBuffer
setRow
in interface InternalBuffer
row
- index of the row to updatemodifiedRow
- Value array with the update
DriverException
- if the update failspublic void setFieldValue(long row, int modifiedField, Value modifiedValue) throws DriverException
setFieldValue
in interface InternalBuffer
DriverException
public void start() throws DriverException
start
in interface InternalBuffer
DriverException
DataSource.start()
public void stop() throws DriverException
stop
in interface InternalBuffer
DriverException
DataSource.stop()
public Value getFieldValue(long rowIndex, int fieldId) throws DriverException
getFieldValue
in interface InternalBuffer
DriverException
ReadAccess.getFieldValue(long,
int)
public void removeField(int index)
removeField
in interface InternalBuffer
public void addField()
addField
in interface InternalBuffer
public void saveStatus()
InternalBuffer
saveStatus
in interface InternalBuffer
public void restoreStatus()
InternalBuffer
restoreStatus
in interface InternalBuffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |