|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.persist.TransactionContext.ObjectEntry
A transaction records all objects accessed during the lifetime of the transaction in this record (queries and created). A single entry exist for each object accessible using the object or it's OID as identities. The entry records the database engine used to persist the object, the object's OID, the object itself, and whether the object has been deleted in this transaction, created in this transaction, or modified. Objects identified as read only are not update when the transaction commits.
Field Summary | |
(package private) boolean |
created
True if the object has been created in this transaction. |
(package private) boolean |
creating
True if the object is indicated to be created. |
(package private) boolean |
deleted
True if the object has been marked for deletion. |
(package private) LockEngine |
engine
The engine with which the object was loaded/created. |
(package private) ClassMolder |
molder
ClassMolder which the object was loaded/created. |
(package private) TransactionContext.ObjectEntry |
nextDeleted
Link to the next deleted object in a FIFO list of deleted objects. |
(package private) java.lang.Object |
object
The object. |
(package private) OID |
oid
The OID of the object. |
(package private) boolean |
updateCacheNeeded
True if the object has been modified and the cache should be updated at commit time |
(package private) boolean |
updatePersistNeeded
True if the object has been modified and the persistence storage should be updated |
Constructor Summary | |
(package private) |
TransactionContext.ObjectEntry(LockEngine engine,
ClassMolder molder,
OID oid,
java.lang.Object object)
|
Method Summary | |
java.lang.Object |
getObject()
Allow TxSynchronizable to access the object. |
OID |
getOid()
Allow TxSynchronizable to access OID of the object. |
boolean |
isCreated()
Allow TxSynchronizable to access created flag. |
boolean |
isDeleted()
Allow TxSynchronizable to access deleted flag. |
boolean |
isUpdateCacheNeeded()
Allow TxSynchronizable to access flag showing if the object has been modified and the cache has been updated. |
boolean |
isUpdatePersistNeeded()
Allow TxSynchronizable to access flag showing if the object has been modified and the persistence storage has been updated. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
final LockEngine engine
final ClassMolder molder
final java.lang.Object object
OID oid
boolean deleted
boolean created
boolean creating
boolean updateCacheNeeded
boolean updatePersistNeeded
TransactionContext.ObjectEntry nextDeleted
Constructor Detail |
TransactionContext.ObjectEntry(LockEngine engine, ClassMolder molder, OID oid, java.lang.Object object)
Method Detail |
public boolean isDeleted()
public boolean isCreated()
public boolean isUpdateCacheNeeded()
public boolean isUpdatePersistNeeded()
public OID getOid()
public java.lang.Object getObject()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |