org.exolab.castor.persist

Class TransactionContext.ObjectEntry

static final class TransactionContext.ObjectEntry extends Object

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
booleancreated
True if the object has been created in this transaction.
booleancreating
True if the object is indicated to be created.
booleandeleted
True if the object has been marked for deletion.
LockEngineengine
The engine with which the object was loaded/created.
ClassMoldermolder
ClassMolder which the object was loaded/created.
TransactionContext.ObjectEntrynextDeleted
Link to the next deleted object in a FIFO list of deleted objects.
Objectobject
The object.
OIDoid
The OID of the object.
booleanupdateCacheNeeded
True if the object has been modified and the cache should be updated at commit time
booleanupdatePersistNeeded
True if the object has been modified and the persistence storage should be updated
Constructor Summary
ObjectEntry(LockEngine engine, ClassMolder molder, OID oid, Object object)
Method Summary
StringtoString()

Field Detail

created

boolean created
True if the object has been created in this transaction.

creating

boolean creating
True if the object is indicated to be created.

deleted

boolean deleted
True if the object has been marked for deletion.

engine

final LockEngine engine
The engine with which the object was loaded/created.

molder

final ClassMolder molder
ClassMolder which the object was loaded/created. It maybe different from engine.getClassMolder(). RelationCollection generally share the same java class, but representing relations of different pair of object.

nextDeleted

TransactionContext.ObjectEntry nextDeleted
Link to the next deleted object in a FIFO list of deleted objects.

object

final Object object
The object.

oid

OID oid
The OID of the object.

updateCacheNeeded

boolean updateCacheNeeded
True if the object has been modified and the cache should be updated at commit time

updatePersistNeeded

boolean updatePersistNeeded
True if the object has been modified and the persistence storage should be updated

Constructor Detail

ObjectEntry

ObjectEntry(LockEngine engine, ClassMolder molder, OID oid, Object object)

Method Detail

toString

public String toString()
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com