Uses of Interface
org.castor.persist.TransactionContext

Packages that use TransactionContext
org.castor.persist   
org.castor.persist.proxy   
org.castor.persist.resolver   
org.exolab.castor.jdo The Java Data Objects API Version: $Revision: 6216 $ $Date: 2005-04-21 14:21:10 -0600 (Thu, 21 Apr 2005) $ Author: Assaf Arkin The class JDOManager provides the Castor JDO engine used for obtaining a database connection. 
org.exolab.castor.jdo.engine Implementation of the Castor JDO engine. 
org.exolab.castor.persist The Castor persistence engine handles object persistence, object caching, transaction concurrency and locking. 
 

Uses of TransactionContext in org.castor.persist
 

Classes in org.castor.persist that implement TransactionContext
 class AbstractTransactionContext
          A transaction context is required in order to perform operations against the database.
 class GlobalTransactionContext
          A transaction context is required in order to perform operations against the database.
 class LocalTransactionContext
          A transaction context is required in order to perform operations against the database.
 

Uses of TransactionContext in org.castor.persist.proxy
 

Methods in org.castor.persist.proxy with parameters of type TransactionContext
 void RelationCollection.committed(TransactionContext tx)
           
static Object SingleProxy.getProxy(TransactionContext tx, ClassMolder classMolder, Identity identity, Object object, AccessMode accessMode)
          Factory method to create SingleProxy instance.
 void RelationCollection.rolledback(TransactionContext tx)
           
 

Constructors in org.castor.persist.proxy with parameters of type TransactionContext
RelationCollection(TransactionContext tx, OID enclosing, ClassMolder molder, AccessMode amode, ArrayList ids)
          Creates an instance of RelationCollection.
 

Uses of TransactionContext in org.castor.persist.resolver
 

Methods in org.castor.persist.resolver with parameters of type TransactionContext
 Object SerializableResolver.create(TransactionContext tx, Object object)
           
 Object ResolverStrategy.create(TransactionContext tx, Object object)
          Create an object of the base class with specified identity into the persistence storage.
 Object PrimitiveResolver.create(TransactionContext tx, Object object)
           
 Object PersistanceCapableRelationResolver.create(TransactionContext tx, Object object)
           
 Object ManyRelationResolver.create(TransactionContext tx, Object object)
           
 void SerializableResolver.expireCache(TransactionContext tx, Object field)
           
 void ResolverStrategy.expireCache(TransactionContext tx, Object field)
          Inspect the fields stored in the object passed as an argument for contained objects.
 void PrimitiveResolver.expireCache(TransactionContext tx, Object field)
           
 void PersistanceCapableRelationResolver.expireCache(TransactionContext tx, Object field)
           
 void ManyRelationResolver.expireCache(TransactionContext tx, Object field)
           
 void SerializableResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, AccessMode suggestedAccessMode)
           
 void ResolverStrategy.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, AccessMode suggestedAccessMode)
          Load an object with specified identity from the persistent storage.
 void PrimitiveResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, AccessMode suggestedAccessMode)
           
 void PersistanceCapableRelationResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, AccessMode suggestedAccessMode)
           
 void ManyRelationResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, AccessMode suggestedAccessMode)
           
 boolean SerializableResolver.markCreate(TransactionContext tx, OID oid, Object object)
           
 boolean ResolverStrategy.markCreate(TransactionContext tx, OID oid, Object object)
          Walk the object model and mark object that should be created.
 boolean PrimitiveResolver.markCreate(TransactionContext tx, OID oid, Object object)
           
 boolean PersistanceCapableRelationResolver.markCreate(TransactionContext tx, OID oid, Object object)
           
 boolean OneToManyRelationResolver.markCreate(TransactionContext tx, OID oid, Object object)
           
 boolean ManyToManyRelationResolver.markCreate(TransactionContext tx, OID oid, Object object)
           
abstract  boolean ManyRelationResolver.markCreate(TransactionContext tx, OID oid, Object object)
           
 void SerializableResolver.markDelete(TransactionContext tx, Object object, Object field)
           
 void ResolverStrategy.markDelete(TransactionContext tx, Object object, Object field)
          Prepare to delete an object with the specified identity.
 void PrimitiveResolver.markDelete(TransactionContext tx, Object object, Object field)
           
 void PersistanceCapableRelationResolver.markDelete(TransactionContext tx, Object object, Object field)
           
 void OneToManyRelationResolver.markDelete(TransactionContext tx, Object object, Object field)
           
 void ManyToManyRelationResolver.markDelete(TransactionContext tx, Object object, Object field)
           
abstract  void ManyRelationResolver.markDelete(TransactionContext tx, Object object, Object field)
           
 Object SerializableResolver.postCreate(TransactionContext tx, OID oid, Object object, Object field, Identity createdId)
           
 Object ResolverStrategy.postCreate(TransactionContext tx, OID oid, Object object, Object field, Identity createdId)
          Called after successful creation of an object of the base class.
 Object PrimitiveResolver.postCreate(TransactionContext tx, OID oid, Object object, Object field, Identity createdId)
           
 Object PersistanceCapableRelationResolver.postCreate(TransactionContext tx, OID oid, Object object, Object field, Identity createdId)
           
 Object OneToManyRelationResolver.postCreate(TransactionContext tx, OID oid, Object object, Object field, Identity createdId)
           
 Object ManyToManyRelationResolver.postCreate(TransactionContext tx, OID oid, Object object, Object field, Identity createdId)
           
abstract  Object ManyRelationResolver.postCreate(TransactionContext tx, OID oid, Object object, Object field, Identity createdId)
           
 UpdateFlags SerializableResolver.preStore(TransactionContext tx, OID oid, Object object, int timeout, Object field)
           
 UpdateFlags ResolverStrategy.preStore(TransactionContext tx, OID oid, Object object, int timeout, Object field)
          Check the object for modification.
 UpdateFlags PrimitiveResolver.preStore(TransactionContext tx, OID oid, Object object, int timeout, Object field)
           
 UpdateFlags PersistanceCapableRelationResolver.preStore(TransactionContext tx, OID oid, Object object, int timeout, Object field)
           
 UpdateFlags OneToManyRelationResolver.preStore(TransactionContext tx, OID oid, Object object, int timeout, Object field)
           
 UpdateFlags ManyToManyRelationResolver.preStore(TransactionContext tx, OID oid, Object object, int timeout, Object field)
           
abstract  UpdateFlags ManyRelationResolver.preStore(TransactionContext tx, OID oid, Object object, int timeout, Object field)
           
 UpdateAndRemovedFlags SerializableResolver.removeRelation(TransactionContext tx, Object object, ClassMolder relatedMolder, Object relatedObject)
           
 UpdateAndRemovedFlags ResolverStrategy.removeRelation(TransactionContext tx, Object object, ClassMolder relatedMolder, Object relatedObject)
          Remove the reference of a related object from an object of the base class.
 UpdateAndRemovedFlags PrimitiveResolver.removeRelation(TransactionContext tx, Object object, ClassMolder relatedMolder, Object relatedObject)
           
 UpdateAndRemovedFlags PersistanceCapableRelationResolver.removeRelation(TransactionContext tx, Object object, ClassMolder relatedMolder, Object relatedObject)
           
 UpdateAndRemovedFlags ManyRelationResolver.removeRelation(TransactionContext tx, Object object, ClassMolder relatedMolder, Object relatedObject)
           
 void SerializableResolver.revertObject(TransactionContext tx, OID oid, Object object, Object field)
           
 void ResolverStrategy.revertObject(TransactionContext tx, OID oid, Object object, Object field)
          Revert the object back to the state of begining of the transaction If the object is loaded, it will be revert as it was loaded.
 void PrimitiveResolver.revertObject(TransactionContext tx, OID oid, Object object, Object field)
           
 void PersistanceCapableRelationResolver.revertObject(TransactionContext tx, OID oid, Object object, Object field)
           
 void ManyRelationResolver.revertObject(TransactionContext tx, OID oid, Object object, Object field)
           
 Object SerializableResolver.store(TransactionContext tx, Object object, Object field)
           
 Object ResolverStrategy.store(TransactionContext tx, Object object, Object field)
          Store a data object into the persistent storage of the base class of this ClassMolder.
 Object PrimitiveResolver.store(TransactionContext tx, Object object, Object field)
           
 Object PersistanceCapableRelationResolver.store(TransactionContext tx, Object object, Object field)
           
 Object ManyRelationResolver.store(TransactionContext tx, Object object, Object field)
           
 void SerializableResolver.update(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode, Object field)
           
 void ResolverStrategy.update(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode, Object field)
          Update the object which loaded or created in the other transaction to the persistent storage.
 void PrimitiveResolver.update(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode, Object field)
           
 void PersistanceCapableRelationResolver.update(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode, Object field)
           
 void OneToManyRelationResolver.update(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode, Object field)
           
 void ManyToManyRelationResolver.update(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode, Object field)
           
abstract  void ManyRelationResolver.update(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode, Object field)
           
 Object SerializableResolver.updateCache(TransactionContext tx, OID oid, Object object)
           
 Object ResolverStrategy.updateCache(TransactionContext tx, OID oid, Object object)
          Update the dirty checking cache.
 Object PrimitiveResolver.updateCache(TransactionContext tx, OID oid, Object object)
           
 Object PersistanceCapableRelationResolver.updateCache(TransactionContext tx, OID oid, Object object)
           
 Object ManyRelationResolver.updateCache(TransactionContext tx, OID oid, Object object)
           
 boolean SerializableResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode)
           
 boolean ResolverStrategy.updateWhenNoTimestampSet(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode)
          Update the object which loaded or created in the other transaction to the persistent storage.
 boolean PrimitiveResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode)
           
 boolean PersistanceCapableRelationResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode)
           
 boolean OneToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode)
           
 boolean ManyToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode)
           
 

Uses of TransactionContext in org.exolab.castor.jdo
 

Constructors in org.exolab.castor.jdo with parameters of type TransactionContext
CacheManager(Database db, TransactionContext transactionContext, LockEngine lockEngine)
          Creates an instance of this class.
 

Uses of TransactionContext in org.exolab.castor.jdo.engine
 

Fields in org.exolab.castor.jdo.engine declared as TransactionContext
protected  TransactionContext AbstractDatabaseImpl._ctx
          The transaction context is this database was accessed with an XAResource.
 

Methods in org.exolab.castor.jdo.engine that return TransactionContext
 TransactionContext AbstractDatabaseImpl.getCurrentTransaction()
          Gets the current Castor transaction in use.
protected  TransactionContext AbstractDatabaseImpl.getTransaction()
          Returns the currently active transaction, if any.
 

Uses of TransactionContext in org.exolab.castor.persist
 

Methods in org.exolab.castor.persist that return TransactionContext
 TransactionContext XAResourceSource.createTransactionContext(Xid xid)
          Called by XAResourceImpl to produce a new transaction context implementation suitable for this data source.
 TransactionContext QueryResults.getTransaction()
          Returns the transaction context in which this query was opened.
 TransactionContext XAResourceSource.getTransactionContext()
          Returns the transaction context associated with this source.
 

Methods in org.exolab.castor.persist that return types with arguments of type TransactionContext
 HashMap<Xid,TransactionContext> LockEngine.getXATransactions()
          Returns an association between Xid and transactions contexts.
 

Methods in org.exolab.castor.persist with parameters of type TransactionContext
 void TxSynchronizable.committed(TransactionContext tx)
          Called at the end of a transaction after commit.
 Identity ClassMolder.create(TransactionContext tx, OID oid, DepositBox locker, Object object)
          Create an object of the base class with specified identity into the persistence storage.
 OID LockEngine.create(TransactionContext tx, OID oid, Object object)
          Creates a new object in the persistence storage.
 void LockEngine.delete(TransactionContext tx, OID oid)
          Called at transaction commit time to delete the object.
 void ClassMolder.delete(TransactionContext tx, OID oid)
          Delete an object of the base type from the persistence storage.
 void ClassMolder.expireCache(TransactionContext tx, ObjectLock locker)
          Inspect the fields stored in the object passed as an argument for contained objects.
 boolean LockEngine.expireCache(TransactionContext tx, OID oid, int timeout)
          Expire object from the cache.
static ArrayList ClassMolderHelper.extractIdentityList(TransactionContext tx, ClassMolder molder, Object col)
          Return all the object identity of a Collection of object of the same type.
 void LockEngine.forgetObject(TransactionContext tx, OID oid)
          Called at transaction commit or rollback to forget an object and release its locks.
 Identity ClassMolder.getActualIdentity(TransactionContext tx, Object o)
          Get the identity from a object of the base type.
static Collection ClassMolderHelper.getAddedValuesList(TransactionContext tx, ArrayList orgIds, Object collection, ClassMolder ch)
          It is assumed the returned collection will not be modified.
 Identity ClassMolder.getIdentity(TransactionContext tx, Object o)
          Get the identity from a object of the base type.
 Object[] ObjectLock.getObject(TransactionContext tx)
           
 Object[] DepositBox.getObject(TransactionContext tx)
          Get the object from the DespositBox, only the transaction have the read or write lock can get it.
static Collection ClassMolderHelper.getRemovedIdsList(TransactionContext tx, ArrayList orgIds, Object collection, ClassMolder ch)
          It is assumed the returned collection will not be modified.
 void ClassMolder.load(TransactionContext tx, DepositBox locker, ProposedEntity proposedObject, AccessMode accessMode, QueryResults results)
          Loads the field values.
 void ClassMolder.loadTimeStamp(TransactionContext tx, DepositBox locker, AccessMode suggestedAccessMode)
           
 void ClassMolder.markCreate(TransactionContext tx, OID oid, DepositBox locker, Object object)
          Walk the object model and mark object that should be created.
 void LockEngine.markCreate(TransactionContext tx, OID oid, Object object)
          Mark an object and its related or dependent object to be created.
 void ClassMolder.markDelete(TransactionContext tx, OID oid, DepositBox locker, Object object)
          Prepare to delete an object with the specified identity.
 void LockEngine.markDelete(TransactionContext tx, OID oid, Object object, int timeout)
           
 void ClassMolder.mold(TransactionContext tx, DepositBox locker, ProposedEntity proposedObject, AccessMode accessMode)
           
 boolean ClassMolder.preStore(TransactionContext tx, OID oid, DepositBox locker, Object object, int timeout)
          Check the object for modification.
 OID LockEngine.preStore(TransactionContext tx, OID oid, Object object, int timeout)
          Called at transaction commit to store an object that has been loaded during the transaction.
 void LockEngine.releaseLock(TransactionContext tx, OID oid)
          Called at transaction commit or rollback to release all locks held on the object.
 boolean ClassMolder.removeRelation(TransactionContext tx, Object object, ClassMolder relatedMolder, Object relatedObject)
          Remove the reference of a related object from an object of the base class.
 void ClassMolder.revertObject(TransactionContext tx, OID oid, DepositBox locker, Object object)
          Revert the object back to the state of begining of the transaction If the object is loaded, it will be revert as it was loaded.
 void LockEngine.revertObject(TransactionContext tx, OID oid, Object object)
          Reverts an object to the cached copy given the object's OID.
 void TxSynchronizable.rolledback(TransactionContext tx)
          Called at the end of a transaction after rollback.
 void ClassMolder.setIdentity(TransactionContext tx, Object object, Identity identity)
          Set the identity into an object.
 void ObjectLock.setObject(TransactionContext tx, Object[] object, long version)
           
 void DepositBox.setObject(TransactionContext tx, Object[] object, long version)
          Set an object into the DespositBox, only a transaction has the write lock may call it method or IllegalArgumentException will be thrown.
 void XAResourceSource.setTransactionContext(TransactionContext tx)
          Sets the transaction context associated with this source.
 void LockEngine.softLock(TransactionContext tx, OID oid, int timeout)
          Acquire a write lock on the object in memory.
 void ClassMolder.store(TransactionContext tx, OID oid, DepositBox locker, Object object)
          Store a data object into the persistent storage of the base class of this ClassMolder.
 void LockEngine.store(TransactionContext tx, OID oid, Object object)
           
 boolean ClassMolder.update(TransactionContext tx, OID oid, DepositBox locker, Object object, AccessMode suggestedAccessMode)
          Update the object which loaded or created in the other transaction to the persistent storage.
 boolean LockEngine.update(TransactionContext tx, OID oid, Object object, AccessMode suggestedAccessMode, int timeout)
          Updates an existing object to this engine.
 void ClassMolder.updateCache(TransactionContext tx, OID oid, DepositBox locker, Object object)
          Update the dirty checking cache.
 void LockEngine.updateCache(TransactionContext tx, OID oid, Object object)
          Update the cached object with changes done to its copy.
 void LockEngine.writeLock(TransactionContext tx, OID oid, int timeout)
          Acquire a write lock on the object.
 

Constructors in org.exolab.castor.persist with parameters of type TransactionContext
QueryResults(TransactionContext tx, LockEngine engine, PersistenceQuery query, AccessMode accessMode, Database db)
           
 



Copyright © 2010. All Rights Reserved.