public abstract class Transaction extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
index
Index of the Transaction.
|
int |
mask
Mask.
|
int |
negMask
Negative mask.
|
| Constructor and Description |
|---|
Transaction(TransactionPool transactionPoolP,
int indexP)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Finish up, for example write to database.
|
Transaction |
getBlockedOn() |
void |
rollback()
Finish without commit.
|
String |
toString()
The transaction index.
|
void |
writeDown()
Make persistent ie no longer able to be rolled back.
|
public final int index
public final int mask
public final int negMask
public Transaction(TransactionPool transactionPoolP, int indexP)
transactionPoolP - the pool this transaction belongs toindexP - the key for this Transactionpublic void writeDown()
public void commit()
public void rollback()
public Transaction getBlockedOn()
public String toString()
toString in class ObjectObject.toString()Copyright © 2000–2021 PanEris. All rights reserved.