|
||||||||||
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.ContainerBasicOperation
A Container Operation change the state of the container. A ContainerBasicOperation is the base class for all container operations.
Field Summary | |
protected RawContainerHandle |
containerHdl
|
protected ContainerKey |
containerId
|
private long |
containerVersion
|
private boolean |
foundHere
|
Fields inherited from interface org.apache.derby.iapi.store.raw.Loggable |
ABORT, BI_LOG, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK |
Constructor Summary | |
|
ContainerBasicOperation()
|
protected |
ContainerBasicOperation(RawContainerHandle hdl)
|
Method Summary | |
protected RawContainerHandle |
findContainer(Transaction tran)
Open the container with this segmentId and containerId. |
protected RawContainerHandle |
findContainerForLoadTran(RawTransaction tran)
Subclass (e.g., ContainerOperation) that wishes to do something abou missing container in load tran should override this method to return the recreated container |
ByteArray |
getPreparedLog()
the default for prepared log is always null for all the operations that don't have optionalData. |
int |
group()
A space operation is a RAWSTORE log record |
boolean |
needsRedo(Transaction xact)
Determine if the operation should be reapplied in recovery redo. |
void |
readExternal(java.io.ObjectInput in)
|
void |
releaseResource(Transaction tran)
Release any resource that was acquired for doMe for rollback or recovery redo. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.derby.iapi.store.raw.Loggable |
doMe |
Methods inherited from interface org.apache.derby.iapi.services.io.TypedFormat |
getTypeFormatId |
Field Detail |
private long containerVersion
protected ContainerKey containerId
protected transient RawContainerHandle containerHdl
private transient boolean foundHere
Constructor Detail |
protected ContainerBasicOperation(RawContainerHandle hdl) throws StandardException
public ContainerBasicOperation()
Method Detail |
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public ByteArray getPreparedLog()
getPreparedLog
in interface Loggable
public void releaseResource(Transaction tran)
Loggable
releaseResource
in interface Loggable
public int group()
group
in interface Loggable
protected RawContainerHandle findContainer(Transaction tran) throws StandardException
StandardException
- the container cannot be found or cannot be
opened.protected RawContainerHandle findContainerForLoadTran(RawTransaction tran) throws StandardException
StandardException
- Cloudscape Standard error policypublic boolean needsRedo(Transaction xact) throws StandardException
Loggable
The sequence of events in recovery redo of a Loggable operation is:
needsRedo
in interface Loggable
xact
- The transaction trying to redo this operation
StandardException
- Standard Cloudscape error policyLoggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |