java.io.Externalizable
, java.io.Serializable
, Formatable
, TypedFormat
, Loggable
, RePreparable
, Undoable
public final class AllocPageOperation extends PhysicalPageOperation
Modifier and Type | Field | Description |
---|---|---|
protected int |
doStatus |
|
protected long |
newPageNumber |
|
protected int |
undoStatus |
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK
containerHdl, foundHere, page
Constructor | Description |
---|---|
AllocPageOperation() |
|
AllocPageOperation(AllocPage allocPage,
long pageNumber,
int doStatus,
int undoStatus) |
Modifier and Type | Method | Description |
---|---|---|
void |
doMe(Transaction tran,
LogInstant instant,
LimitObjectInput in) |
Allocate/deallocate/free this page number
|
int |
getTypeFormatId() |
Return my format identifier.
|
void |
readExternal(java.io.ObjectInput in) |
|
void |
restoreMe(Transaction xact,
BasePage undoPage,
LogInstant CLRinstant,
LimitObjectInput in) |
Undo the change indicated by this log operation and optional data.
|
java.lang.String |
toString() |
debug
|
void |
undoMe(Transaction xact,
BasePage undoPage,
LogInstant CLRInstant,
LimitObjectInput in) |
Allocate/deallocate/free this page number.
|
void |
writeExternal(java.io.ObjectOutput out) |
getPreparedLog, group, needsRedo, releaseResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findpage, getPage, getPageForRedoRecovery, getPageId, getPageVersion, getPreparedLog, group, needsRedo, reclaimPrepareLocks, releaseResource, resetPageNumber
generateUndo
protected long newPageNumber
protected int doStatus
protected int undoStatus
AllocPageOperation(AllocPage allocPage, long pageNumber, int doStatus, int undoStatus) throws StandardException
StandardException
public AllocPageOperation()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class PageBasicOperation
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class PageBasicOperation
java.io.IOException
- error reading from log streamjava.lang.ClassNotFoundException
- cannot read object from inputpublic int getTypeFormatId()
public final void doMe(Transaction tran, LogInstant instant, LimitObjectInput in) throws StandardException
tran
- the Transactioninstant
- the log instant of this operationin
- optional dataStandardException
- container Handle is not activepublic void undoMe(Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) throws StandardException
undoMe
in class PhysicalPageOperation
xact
- the Transaction doing the rollbackundoPage
- the page to rollback changes onCLRInstant
- the log instant of this (PageUndo) operationin
- optional data for the rollback operationStandardException
- Thrown by methods I callPhysicalPageOperation.undoMe(org.apache.derby.iapi.store.raw.Transaction, org.apache.derby.impl.store.raw.data.BasePage, org.apache.derby.iapi.store.raw.log.LogInstant, org.apache.derby.iapi.services.io.LimitObjectInput)
public void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRinstant, LimitObjectInput in)
PageBasicOperation
restoreMe
in class PageBasicOperation
xact
- the Transaction doing the rollbackundoPage
- the page to rollback changes onCLRinstant
- the log instant of this (PageUndo) operationin
- optional data for the rollback operationpublic java.lang.String toString()
toString
in class PageBasicOperation
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.