Class TransactionTableEntry
java.lang.Object
org.apache.derby.impl.store.raw.xact.TransactionTableEntry
- All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Formatable, TypedFormat, TransactionInfo
Transaction table entry is used to store all relevant information of a
transaction into the transaction table for the use of checkpoint, recovery,
Transaction management during Quiesce state, and for dumping transaction table. Only works
with the following classes: TransactionTable, XactFactory, Xact
During run time, whenever any transaction is started, it is put into the transaction table. Whenever any transaction is closed, it is removed from the transaction table.
During run time, whenever any transaction is started, it is put into the transaction table. Whenever any transaction is closed, it is removed from the transaction table.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intprivate LogInstantprivate GlobalTransactionIdprivate booleanprivate LogInstantprivate LanguageConnectionContextprivate Xactprivate booleanprivate boolean(package private) static final intprivate intprivate boolean(package private) static final intprivate TransactionId -
Constructor Summary
ConstructorsConstructorDescriptionTransactionTableEntry(Xact xact, TransactionId tid, int status, int attribute) -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()Cloneable(package private) LogInstantfinal GlobalTransactionIdgetGid()(package private) LogInstantprivate voidgetlcc()Methods of TransactionInfo(package private) intintReturn my format identifier.final XactgetXact()(package private) TransactionIdgetXid()get instance variables(package private) boolean(package private) boolean(package private) booleanisUpdate()boolean(package private) voidvoid(package private) void(package private) voidtoString()(package private) void(package private) voidupdateTransactionStatus(Xact xact, int status, int attribute) void
-
Field Details
-
xid
-
gid
-
firstLog
-
lastLog
-
transactionStatus
private int transactionStatus -
myxact
-
update
private transient boolean update -
recovery
private transient boolean recovery -
needExclusion
private transient boolean needExclusion -
isClone
private boolean isClone -
lcc
-
UPDATE
static final int UPDATE- See Also:
-
RECOVERY
static final int RECOVERY- See Also:
-
EXCLUDE
static final int EXCLUDE- See Also:
-
-
Constructor Details
-
TransactionTableEntry
TransactionTableEntry(Xact xact, TransactionId tid, int status, int attribute) -
TransactionTableEntry
public TransactionTableEntry()
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
ClassNotFoundExceptionIOException
-
setXact
-
getTypeFormatId
public int getTypeFormatId()Return my format identifier.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
-
toString
-
updateTransactionStatus
-
removeUpdateTransaction
void removeUpdateTransaction() -
unsetRecoveryStatus
void unsetRecoveryStatus() -
prepareTransaction
void prepareTransaction() -
getXid
TransactionId getXid()get instance variables -
getGid
-
getFirstLog
LogInstant getFirstLog() -
getLastLog
LogInstant getLastLog() -
getXact
-
getTransactionStatus
int getTransactionStatus() -
isUpdate
boolean isUpdate() -
isRecovery
boolean isRecovery() -
isPrepared
boolean isPrepared() -
needExclusion
public boolean needExclusion() -
getTransactionIdString
Methods of TransactionInfo- Specified by:
getTransactionIdStringin interfaceTransactionInfo
-
getGlobalTransactionIdString
- Specified by:
getGlobalTransactionIdStringin interfaceTransactionInfo
-
getUsernameString
- Specified by:
getUsernameStringin interfaceTransactionInfo
-
getTransactionTypeString
- Specified by:
getTransactionTypeStringin interfaceTransactionInfo
-
getTransactionStatusString
- Specified by:
getTransactionStatusStringin interfaceTransactionInfo
-
getStatementTextString
- Specified by:
getStatementTextStringin interfaceTransactionInfo
-
getFirstLogInstantString
- Specified by:
getFirstLogInstantStringin interfaceTransactionInfo
-
getlcc
private void getlcc() -
clone
-