| java.lang.Object hu.netmind.persistence.node.ModificationTracker
ModificationTracker | public class ModificationTracker (Code) | | This class tracks changes to objects. It caches the most recent changes, but
also determines whether an object changed by reading the database.
author: Brautigam Robert version: CVS Revision: $Revision$ |
Inner Class :public class ModificationEntry implements Comparable | |
Method Summary | |
public synchronized void | changeCandidates(List metas, Long endSerial, Long txSerial) This method registers "potential" change serials for a given id. | public synchronized void | endTransaction(Long txSerial) Ends a transaction, which means it finalizes the entries associated
with the given transaction. | public synchronized SessionInfo | isCurrent(LockMetaData meta) This is the query method of the tracker. |
MAX_ENTRY_AGE | public static long MAX_ENTRY_AGE(Code) | | |
changeCandidates | public synchronized void changeCandidates(List metas, Long endSerial, Long txSerial)(Code) | | This method registers "potential" change serials for a given id. The
change becomes final only when the transaction's commit ends.
|
endTransaction | public synchronized void endTransaction(Long txSerial)(Code) | | Ends a transaction, which means it finalizes the entries associated
with the given transaction.
|
isCurrent | public synchronized SessionInfo isCurrent(LockMetaData meta)(Code) | | This is the query method of the tracker. It returns whether an object that was
queried from the database at a given time is the current version of the object
or not. Implementation note: Currently empty session infos are returned,
this may later change, if session infos will be also kept track of.
A SessionInfo object if the object is not current. The session infomay contain the last modification transaction's info, but this is not guaranteed. |
|
|