|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.transaction.Transaction
public abstract class Transaction
A Transaction.
Field Summary | |
---|---|
int |
index
Index of the Transaction. |
int |
mask
Mask. |
int |
negMask
Negative mask. |
Constructor Summary | |
---|---|
Transaction(TransactionPool transactionPoolP,
int indexP)
Constructor. |
Method Summary | |
---|---|
protected abstract void |
backingCommit()
|
protected abstract void |
backingRollback()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int index
public final int mask
public final int negMask
Constructor Detail |
---|
public Transaction(TransactionPool transactionPoolP, int indexP)
transactionPoolP
- the pool this transaction belongs toindexP
- the key for this TransactionMethod Detail |
---|
protected abstract void backingCommit()
protected abstract void backingRollback()
public void writeDown()
public void commit()
public void rollback()
public Transaction getBlockedOn()
public String toString()
toString
in class Object
Object.toString()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |