|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.raw.data.LoggableActions
Constructor Summary | |
LoggableActions()
|
Method Summary | |
void |
actionCopyRows(RawTransaction t,
BasePage destPage,
BasePage srcPage,
int srcSlot,
int numRows,
int destSlot,
int[] recordIds)
Copy num_rows from srcPage into deestpage Longer descrption of routine. |
void |
actionDelete(RawTransaction t,
BasePage page,
int slot,
int recordId,
boolean delete,
LogicalUndo undo)
Set the Delete status of the record at the given slot. |
void |
actionInitPage(RawTransaction t,
BasePage page,
int initFlag,
int pageFormatId,
long pageOffset)
Initialize the page due to allocation. |
int |
actionInsert(RawTransaction t,
BasePage page,
int slot,
int recordId,
java.lang.Object[] row,
FormatableBitSet validColumns,
LogicalUndo undo,
byte insertFlag,
int startColumn,
boolean isLongColumn,
int realStartColumn,
DynamicByteArrayOutputStream logBuffer,
int realSpaceOnPage,
int overflowThreshold)
Insert record at the given slot with this recordId. |
void |
actionInvalidatePage(RawTransaction t,
BasePage page)
Invalidate the page due to deallocation. |
void |
actionPurge(RawTransaction t,
BasePage page,
int slot,
int num_rows,
int[] recordIds,
boolean logData)
Purge the record at the given slot. |
void |
actionShrinkReservedSpace(RawTransaction t,
BasePage page,
int slot,
int recordId,
int newValue,
int oldValue)
Shrink the reserved space to the new value. |
int |
actionUpdate(RawTransaction t,
BasePage page,
int slot,
int recordId,
java.lang.Object[] row,
FormatableBitSet validColumns,
int realStartColumn,
DynamicByteArrayOutputStream logBuffer,
int realSpaceOnPage,
RecordHandle headRowHandle)
Update record at the given slot with this row. |
void |
actionUpdateField(RawTransaction t,
BasePage page,
int slot,
int recordId,
int fieldId,
java.lang.Object newValue,
LogicalUndo undo)
Update a field of the record at the given slot with this value. |
private void |
doAction(RawTransaction t,
BasePage page,
Loggable lop)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoggableActions()
Method Detail |
public void actionDelete(RawTransaction t, BasePage page, int slot, int recordId, boolean delete, LogicalUndo undo) throws StandardException
PageActions
Subclass that implements this method has to call BasePage.setDeleteStatus to update the delete status on the in-memory slot table.
MT - latched, page is latched when this methods is called.
actionDelete
in interface PageActions
t
- The transactionpage
- the target pageslot
- the slot number of the recordrecordId
- the recordID of the recorddelete
- set the delete status to this valueundo
- logical undo logic if necessary
StandardException
- Standard Cloudscape error policyPage.deleteAtSlot(int, boolean, org.apache.derby.iapi.store.access.conglomerate.LogicalUndo)
public int actionUpdate(RawTransaction t, BasePage page, int slot, int recordId, java.lang.Object[] row, FormatableBitSet validColumns, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, RecordHandle headRowHandle) throws StandardException
PageActions
MT - latched, page is latched when this methods is called.
actionUpdate
in interface PageActions
page
- the updated pageslot
- the slot number of the recordrecordId
- the recordID of the recordrow
- The new storable rowvalidColumns
- the columns that needs to be updatedrealStartColumn
- the first column that is updatedlogBuffer
- where to prepare the log recordrealSpaceOnPage
- ??headRowHandle
- the record handle of the head row
StandardException
- Standard Cloudscape error policyPage.updateAtSlot(int, java.lang.Object[], org.apache.derby.iapi.services.io.FormatableBitSet)
public void actionPurge(RawTransaction t, BasePage page, int slot, int num_rows, int[] recordIds, boolean logData) throws StandardException
PageActions
Subclass that implements this method has to remove the slot from the base page in-memory slot table (removeAndShiftDown).
MT - latched, page is latched when this methods is called.
actionPurge
in interface PageActions
t
- The transactionslot
- the starting slot number of the recordnum_rows
- how many rows to purgerecordIds
- the recordIDs of the record (an array of num_rows)
StandardException
- Standard Cloudscape error policyPage.purgeAtSlot(int, int, boolean)
public void actionUpdateField(RawTransaction t, BasePage page, int slot, int recordId, int fieldId, java.lang.Object newValue, LogicalUndo undo) throws StandardException
PageActions
MT - latched, page is latched when this methods is called.
actionUpdateField
in interface PageActions
slot
- the slot number of the recordrecordId
- the recordID of the recordfieldId
- the fieldId of the valueundo
- if logical undo may be necessary, a function
pointer to the access code where the logical undo
logic resides. Null if logical undo is not
necessary.
StandardException
- Standard Cloudscape error policyPage.updateFieldAtSlot(int, int, java.lang.Object, org.apache.derby.iapi.store.access.conglomerate.LogicalUndo)
public int actionInsert(RawTransaction t, BasePage page, int slot, int recordId, java.lang.Object[] row, FormatableBitSet validColumns, LogicalUndo undo, byte insertFlag, int startColumn, boolean isLongColumn, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, int overflowThreshold) throws StandardException
PageActions
MT - latched, page is latched when this methods is called.
actionInsert
in interface PageActions
slot
- the slot number of the recordrecordId
- the recordID of the recordrow
- The storable rowundo
- if logical undo may be necessary, a function
pointer to the access code where the logical
undo logic resides. Null if logical undo is
not necessary.insertFlag
- see Page value for insertFlag
StandardException
- Standard Cloudscape error policyPage.insertAtSlot(int, java.lang.Object[], org.apache.derby.iapi.services.io.FormatableBitSet, org.apache.derby.iapi.store.access.conglomerate.LogicalUndo, byte, int)
public void actionCopyRows(RawTransaction t, BasePage destPage, BasePage srcPage, int srcSlot, int numRows, int destSlot, int[] recordIds) throws StandardException
PageActions
Longer descrption of routine.
actionCopyRows
in interface PageActions
destPage
- the destination pagesrcPage
- the source pagesrcSlot
- starting slot # of destination page to copy tonumRows
- the number of rows to be copieddestSlot
- starting slot number of source page to copy fromrecordIds
- an array of record ids to use in the
destination page
StandardException
- Standard Cloudscape policy.public void actionInvalidatePage(RawTransaction t, BasePage page) throws StandardException
PageActions
Invalidate the page due to deallocation - this is the action on the page that is being deallocated as opposed to the action on the allocation page.
actionInvalidatePage
in interface PageActions
page
- that page to be invalidated
StandardException
- Standard Cloudscape policy.public void actionInitPage(RawTransaction t, BasePage page, int initFlag, int pageFormatId, long pageOffset) throws StandardException
PageActions
Initialize the page due to allocation - this page could be brand new or it could be being re-allocated.
actionInitPage
in interface PageActions
page
- that page to be initializedinitFlag
- flags set to values in BasePage.INIT_PAGE_*
which indicates how the new page is to be
initialized.pageFormatId
- The format Id of the page being initialized.
StandardException
- Standard Cloudscape policy.public void actionShrinkReservedSpace(RawTransaction t, BasePage page, int slot, int recordId, int newValue, int oldValue) throws StandardException
PageActions
Shrink the reserved space to the new value. This action is not undoable.
actionShrinkReservedSpace
in interface PageActions
page
- that page to be initializedslot
- the slot number of the recordrecordId
- the recordID of the recordnewValue
- the new reserved space value
StandardException
- Unexpected exception from the implementationprivate void doAction(RawTransaction t, BasePage page, Loggable lop) throws StandardException
StandardException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |