org.exolab.castor.persist

Class TransactionContext.ObjectEntry

Enclosing Class:
TransactionContext

(package private) static final class TransactionContext.ObjectEntry
extends java.lang.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

(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) 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

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

Method Summary

String
toString()

Field Details

created

(package private)  boolean created
True if the object has been created in this transaction.

creating

(package private)  boolean creating
True if the object is indicated to be created.

deleted

(package private)  boolean deleted
True if the object has been marked for deletion.

engine

(package private) final LockEngine engine
The engine with which the object was loaded/created.

molder

(package private) 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

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

object

(package private) final Object object
The object.

oid

(package private)  OID oid
The OID of the object.

updateCacheNeeded

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

updatePersistNeeded

(package private)  boolean updatePersistNeeded
True if the object has been modified and the persistence storage should be updated

Constructor Details

ObjectEntry

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

Method Details

toString

public String toString()

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