Class EndXact
java.lang.Object
org.apache.derby.impl.store.raw.xact.EndXact
- All Implemented Interfaces:
Externalizable
,Serializable
,Formatable
,TypedFormat
,Loggable
This operation indicates the End of a transaction.
- See Also:
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
doMe
(Transaction xact, LogInstant instant, LimitObjectInput in) Apply the change indicated by this operation and optional data.the default for prepared log is always null for all the operations that don't have optionalData.int
Return my format identifier.int
group()
EndXact is a RAWSTORE log record.boolean
needsRedo
(Transaction xact) Always redo an EndXact.void
void
releaseResource
(Transaction xact) EndXact has no resource to releasetoString()
DEBUG: Print self.void
-
Field Details
-
transactionStatus
private int transactionStatus -
xactId
-
-
Constructor Details
-
EndXact
-
EndXact
public EndXact()
-
-
Method Details
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
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
Apply the change indicated by this operation and optional data. -
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:
-
needsRedo
Always redo an EndXact. -
releaseResource
EndXact has no resource to release- Specified by:
releaseResource
in interfaceLoggable
-
group
public int group()EndXact is a RAWSTORE log record. -
toString
DEBUG: Print self.
-