Class EndXact
- java.lang.Object
-
- org.apache.derby.impl.store.raw.xact.EndXact
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Formatable
,TypedFormat
,Loggable
public class EndXact extends java.lang.Object implements Loggable
This operation indicates the End of a transaction.- See Also:
Loggable
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
transactionStatus
private GlobalTransactionId
xactId
-
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
Constructors Constructor Description EndXact()
EndXact(GlobalTransactionId xid, int s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doMe(Transaction xact, LogInstant instant, LimitObjectInput in)
Apply the change indicated by this operation and optional data.ByteArray
getPreparedLog()
the default for prepared log is always null for all the operations that don't have optionalData.int
getTypeFormatId()
Return my format identifier.int
group()
EndXact is a RAWSTORE log record.boolean
needsRedo(Transaction xact)
Always redo an EndXact.void
readExternal(java.io.ObjectInput in)
void
releaseResource(Transaction xact)
EndXact has no resource to releasejava.lang.String
toString()
DEBUG: Print self.void
writeExternal(java.io.ObjectOutput out)
-
-
-
Field Detail
-
transactionStatus
private int transactionStatus
-
xactId
private GlobalTransactionId xactId
-
-
Constructor Detail
-
EndXact
public EndXact(GlobalTransactionId xid, int s)
-
EndXact
public EndXact()
-
-
Method Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
getTypeFormatId
public int getTypeFormatId()
Return my format identifier.- Specified by:
getTypeFormatId
in interfaceTypedFormat
- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
-
doMe
public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in)
Apply the change indicated by this operation and optional data.
-
getPreparedLog
public ByteArray getPreparedLog()
the default for prepared log is always null for all the operations that don't have optionalData. If an operation has optional data, the operation need to prepare the optional data for this method. EndXact has no optional data to write out- Specified by:
getPreparedLog
in interfaceLoggable
- See Also:
ObjectOutput
-
needsRedo
public boolean needsRedo(Transaction xact)
Always redo an EndXact.- Specified by:
needsRedo
in interfaceLoggable
- Parameters:
xact
- The transaction trying to redo this operation- Returns:
- true if operation needs redoing, false if not.
- See Also:
Loggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction)
-
releaseResource
public void releaseResource(Transaction xact)
EndXact has no resource to release- Specified by:
releaseResource
in interfaceLoggable
-
group
public int group()
EndXact is a RAWSTORE log record.
-
toString
public java.lang.String toString()
DEBUG: Print self.- Overrides:
toString
in classjava.lang.Object
-
-