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 int
private LogInstant
private GlobalTransactionId
private boolean
private LogInstant
private LanguageConnectionContext
private Xact
private boolean
private boolean
(package private) static final int
private int
private boolean
(package private) static final int
private TransactionId
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionTableEntry
(Xact xact, TransactionId tid, int status, int attribute) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
Cloneable(package private) LogInstant
final GlobalTransactionId
getGid()
(package private) LogInstant
private void
getlcc()
Methods of TransactionInfo(package private) int
int
Return my format identifier.final Xact
getXact()
(package private) TransactionId
getXid()
get instance variables(package private) boolean
(package private) boolean
(package private) boolean
isUpdate()
boolean
(package private) void
void
(package private) void
(package private) void
toString()
(package private) void
(package private) void
updateTransactionStatus
(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:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
ClassNotFoundException
IOException
-
setXact
-
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).
-
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:
getTransactionIdString
in interfaceTransactionInfo
-
getGlobalTransactionIdString
- Specified by:
getGlobalTransactionIdString
in interfaceTransactionInfo
-
getUsernameString
- Specified by:
getUsernameString
in interfaceTransactionInfo
-
getTransactionTypeString
- Specified by:
getTransactionTypeString
in interfaceTransactionInfo
-
getTransactionStatusString
- Specified by:
getTransactionStatusString
in interfaceTransactionInfo
-
getStatementTextString
- Specified by:
getStatementTextString
in interfaceTransactionInfo
-
getFirstLogInstantString
- Specified by:
getFirstLogInstantString
in interfaceTransactionInfo
-
getlcc
private void getlcc() -
clone
Cloneable
-