Class BeginXact
java.lang.Object
org.apache.derby.impl.store.raw.xact.BeginXact
- All Implemented Interfaces:
Externalizable
,Serializable
,Formatable
,TypedFormat
,Loggable
This operation indicates the beginning 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.BeginXact methodthe default for prepared log is always null for all the operations that don't have optionalData.int
Return my format identifier.int
group()
BeginXact is both a FIRST and a RAWSTORE log recordboolean
needsRedo
(Transaction xact) Always redo a BeginXact.void
void
releaseResource
(Transaction xact) BeginXact has no resource to releasetoString()
DEBUG: Print self.void
-
Field Details
-
transactionStatus
protected int transactionStatus -
xactId
-
-
Constructor Details
-
BeginXact
-
BeginXact
public BeginXact()
-
-
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. BeginXact has no optional data to write out- Specified by:
getPreparedLog
in interfaceLoggable
- See Also:
-
needsRedo
Always redo a BeginXact. -
releaseResource
BeginXact has no resource to release- Specified by:
releaseResource
in interfaceLoggable
-
group
public int group()BeginXact is both a FIRST and a RAWSTORE log record -
toString
DEBUG: Print self. -
getGlobalId
BeginXact method
-