|
|||||||||
| 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
public abstract class 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, CHECKSUM, 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 |
findContainerForRedoRecovery(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
StandardExceptionpublic ContainerBasicOperation()
| Method Detail |
|---|
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundExceptionpublic ByteArray getPreparedLog()
getPreparedLog in interface Loggablepublic void releaseResource(Transaction tran)
Loggable
releaseResource in interface Loggablepublic 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 findContainerForRedoRecovery(RawTransaction tran)
throws StandardException
StandardException - Standard Derby error policy
public boolean needsRedo(Transaction xact)
throws StandardException
Loggable The sequence of events in recovery redo of a Loggable operation is:
needsRedo in interface Loggablexact - The transaction trying to redo this operation
StandardException - Standard Derby error policyLoggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction)public java.lang.String toString()
toString in class java.lang.Object
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||