| org.apache.derby.impl.store.raw.data.PageActions
All known Subclasses: org.apache.derby.impl.store.raw.data.LoggableActions, org.apache.derby.impl.store.raw.data.DirectActions,
PageActions | public interface PageActions (Code) | | |
Method Summary | |
public void | actionCopyRows(RawTransaction t, BasePage destPage, BasePage srcPage, int destSlot, int numRows, int srcSlot, int[] recordIds) Copy num_rows from srcPage into deestpage. | public 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. | public void | actionInitPage(RawTransaction t, BasePage page, int initFlag, int pageFormatId, long pageOffset) Initialize the page due to allocation. | public int | actionInsert(RawTransaction t, BasePage page, int slot, int recordId, 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. | public void | actionInvalidatePage(RawTransaction t, BasePage page) Invalidate the page due to deallocation.
Short one line description of routine.
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.
Parameters: t - The transaction Parameters: page - that page to be invalidated exception: StandardException - Standard Cloudscape policy. | public void | actionPurge(RawTransaction t, BasePage page, int slot, int num_rows, int[] recordIds, boolean logData) Purge the record at the given slot. | public void | actionShrinkReservedSpace(RawTransaction t, BasePage page, int slot, int recordId, int newValue, int oldValue) Shrink the reserved space to the new value. | public int | actionUpdate(RawTransaction t, BasePage page, int slot, int recordId, Object[] row, FormatableBitSet validColumns, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, RecordHandle headRowHandle) Update record at the given slot with this row. | public void | actionUpdateField(RawTransaction t, BasePage page, int slot, int recordId, int fieldId, Object newValue, LogicalUndo undo) Update a field of the record at the given slot with this value.
MT - latched, page is latched when this methods is called.
Parameters: t - The transaction Parameters: slot - the slot number of the record Parameters: recordId - the recordID of the record Parameters: fieldId - the fieldId of the value Parameters: newValue - the new value for the field Parameters: undo - if logical undo may be necessary, a function pointer to the access code where the logical undo logic resides. |
actionCopyRows | public void actionCopyRows(RawTransaction t, BasePage destPage, BasePage srcPage, int destSlot, int numRows, int srcSlot, int[] recordIds) throws StandardException(Code) | | Copy num_rows from srcPage into deestpage.
Longer descrption of routine.
Parameters: t - The transaction Parameters: destPage - the destination page Parameters: srcPage - the source page Parameters: destSlot - starting slot # of destination page to copy to Parameters: numRows - the number of rows to be copied Parameters: srcSlot - starting slot number of source page to copy from Parameters: recordIds - an array of record ids to use in the destination page exception: StandardException - Standard Cloudscape policy. |
actionDelete | public void actionDelete(RawTransaction t, BasePage page, int slot, int recordId, boolean delete, LogicalUndo undo) throws StandardException(Code) | | Set the Delete status of the record at the given slot.
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.
Parameters: t - The transaction Parameters: page - the target page Parameters: slot - the slot number of the record Parameters: recordId - the recordID of the record Parameters: delete - set the delete status to this value Parameters: undo - logical undo logic if necessary exception: StandardException - Standard Cloudscape error policy See Also: org.apache.derby.iapi.store.raw.Page.deleteAtSlot |
actionInitPage | public void actionInitPage(RawTransaction t, BasePage page, int initFlag, int pageFormatId, long pageOffset) throws StandardException(Code) | | Initialize the page due to allocation.
Initialize the page due to allocation - this page could be brand new or
it could be being re-allocated.
Parameters: t - The transaction Parameters: page - that page to be initialized Parameters: initFlag - flags set to values in BasePage.INIT_PAGE_* which indicates how the new page is to beinitialized. Parameters: pageFormatId - The format Id of the page being initialized. exception: StandardException - Standard Cloudscape policy. |
actionInsert | public int actionInsert(RawTransaction t, BasePage page, int slot, int recordId, Object[] row, FormatableBitSet validColumns, LogicalUndo undo, byte insertFlag, int startColumn, boolean isLongColumn, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, int overflowThreshold) throws StandardException(Code) | | Insert record at the given slot with this recordId.
MT - latched, page is latched when this methods is called.
Parameters: t - The transaction Parameters: slot - the slot number of the record Parameters: recordId - the recordID of the record Parameters: row - The storable row Parameters: undo - 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. Parameters: insertFlag - see Page value for insertFlag exception: StandardException - Standard Cloudscape error policy See Also: org.apache.derby.iapi.store.raw.Page.insertAtSlot |
actionInvalidatePage | public void actionInvalidatePage(RawTransaction t, BasePage page) throws StandardException(Code) | | Invalidate the page due to deallocation.
Short one line description of routine.
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.
Parameters: t - The transaction Parameters: page - that page to be invalidated exception: StandardException - Standard Cloudscape policy. |
actionPurge | public void actionPurge(RawTransaction t, BasePage page, int slot, int num_rows, int[] recordIds, boolean logData) throws StandardException(Code) | | Purge the record at the given slot.
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.
Parameters: t - The transaction Parameters: slot - the starting slot number of the record Parameters: num_rows - how many rows to purge Parameters: recordIds - the recordIDs of the record (an array of num_rows) exception: StandardException - Standard Cloudscape error policy See Also: org.apache.derby.iapi.store.raw.Page.purgeAtSlot |
actionShrinkReservedSpace | public void actionShrinkReservedSpace(RawTransaction t, BasePage page, int slot, int recordId, int newValue, int oldValue) throws StandardException(Code) | | Shrink the reserved space to the new value.
Shrink the reserved space to the new value. This action is not undoable.
Parameters: t - The transaction Parameters: page - that page to be initialized Parameters: slot - the slot number of the record Parameters: recordId - the recordID of the record Parameters: newValue - the new reserved space value exception: StandardException - Unexpected exception from the implementation |
actionUpdate | public int actionUpdate(RawTransaction t, BasePage page, int slot, int recordId, Object[] row, FormatableBitSet validColumns, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, RecordHandle headRowHandle) throws StandardException(Code) | | Update record at the given slot with this row.
MT - latched, page is latched when this methods is called.
Parameters: t - The transaction Parameters: page - the updated page Parameters: slot - the slot number of the record Parameters: recordId - the recordID of the record Parameters: row - The new storable row Parameters: validColumns - the columns that needs to be updated Parameters: realStartColumn - the first column that is updated Parameters: logBuffer - where to prepare the log record Parameters: realSpaceOnPage - ?? Parameters: headRowHandle - the record handle of the head row the next column to update in the row or,-1 if the update has been completed. exception: StandardException - Standard Cloudscape error policy See Also: org.apache.derby.iapi.store.raw.Page.updateAtSlot |
actionUpdateField | public void actionUpdateField(RawTransaction t, BasePage page, int slot, int recordId, int fieldId, Object newValue, LogicalUndo undo) throws StandardException(Code) | | Update a field of the record at the given slot with this value.
MT - latched, page is latched when this methods is called.
Parameters: t - The transaction Parameters: slot - the slot number of the record Parameters: recordId - the recordID of the record Parameters: fieldId - the fieldId of the value Parameters: newValue - the new value for the field Parameters: undo - 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. exception: StandardException - Standard Cloudscape error policy See Also: org.apache.derby.iapi.store.raw.Page.updateFieldAtSlot |
|
|