|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.transaction.Transactioned org.melati.poem.transaction.TransactionedSerial
public class TransactionedSerial
A serial id of an object which is incremented each time that object is loaded or locked.
Field Summary |
---|
Fields inherited from class org.melati.poem.transaction.Transactioned |
---|
valid |
Constructor Summary | |
---|---|
TransactionedSerial(TransactionPool transactionPool)
Constructor. |
Method Summary | |
---|---|
long |
current(Transaction transaction)
Readlock and return the serial for the given Transaction. |
void |
increment_unlocked()
Increment. |
void |
increment(Transaction transaction)
Write lock and increment. |
protected void |
load(Transaction transaction)
On load increment the Serial for this object. |
protected boolean |
upToDate(Transaction transaction)
Return the inheritted validity flag. |
protected void |
writeDown(Transaction transaction)
This implementation does nothing. |
Methods inherited from class org.melati.poem.transaction.Transactioned |
---|
commit, invalidate, markValid, readLock, reset, rollback, setTransactionPool, transactionPool, unSee, writeLock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionedSerial(TransactionPool transactionPool)
transactionPool
- the TransactionPool this is relevant toMethod Detail |
---|
protected void load(Transaction transaction)
load
in class Transactioned
Transactioned.load(org.melati.poem.transaction.Transaction)
protected boolean upToDate(Transaction transaction)
This is a hook to enable subtypes to define under what circumstances an instance needs to be reloaded when it is marked as invalid, however the two known subtypes just return the inherited valid flag.
upToDate
in class Transactioned
Transactioned.upToDate(org.melati.poem.transaction.Transaction)
protected void writeDown(Transaction transaction)
writeDown
in class Transactioned
Transactioned.writeDown(org.melati.poem.transaction.Transaction)
public long current(Transaction transaction)
transaction
- the Transaction
public void increment(Transaction transaction)
transaction
- the Transactionpublic void increment_unlocked()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |