|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| 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)
|
void |
RelationCollection.rolledback(TransactionContext tx)
|
static java.lang.Object |
SingleProxy.getProxy(TransactionContext tx,
ClassMolder classMolder,
Identity identity,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode accessMode)
Factory method to create SingleProxy instance. |
| Constructors in org.castor.persist.proxy with parameters of type TransactionContext | |
RelationCollection(TransactionContext tx,
OID enclosing,
ClassMolder molder,
org.exolab.castor.mapping.AccessMode amode,
java.util.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 | |
java.lang.Object |
ManyRelationResolver.create(TransactionContext tx,
java.lang.Object object)
|
abstract boolean |
ManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
java.lang.Object object)
|
abstract UpdateFlags |
ManyRelationResolver.preStore(TransactionContext tx,
OID oid,
java.lang.Object object,
int timeout,
java.lang.Object field)
|
java.lang.Object |
ManyRelationResolver.store(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
abstract void |
ManyRelationResolver.update(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
java.lang.Object field)
|
java.lang.Object |
ManyRelationResolver.updateCache(TransactionContext tx,
OID oid,
java.lang.Object object)
|
abstract void |
ManyRelationResolver.markDelete(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
void |
ManyRelationResolver.revertObject(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field)
|
void |
ManyRelationResolver.expireCache(TransactionContext tx,
java.lang.Object field)
|
void |
ManyRelationResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
abstract java.lang.Object |
ManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
UpdateAndRemovedFlags |
ManyRelationResolver.removeRelation(TransactionContext tx,
java.lang.Object object,
ClassMolder relatedMolder,
java.lang.Object relatedObject)
|
boolean |
ManyToManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
java.lang.Object object)
|
void |
ManyToManyRelationResolver.markDelete(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
UpdateFlags |
ManyToManyRelationResolver.preStore(TransactionContext tx,
OID oid,
java.lang.Object object,
int timeout,
java.lang.Object field)
|
void |
ManyToManyRelationResolver.update(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
java.lang.Object field)
|
java.lang.Object |
ManyToManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
boolean |
ManyToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
boolean |
OneToManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
java.lang.Object object)
|
void |
OneToManyRelationResolver.markDelete(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
UpdateFlags |
OneToManyRelationResolver.preStore(TransactionContext tx,
OID oid,
java.lang.Object object,
int timeout,
java.lang.Object field)
|
void |
OneToManyRelationResolver.update(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
java.lang.Object field)
|
java.lang.Object |
OneToManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
boolean |
OneToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
java.lang.Object |
PersistanceCapableRelationResolver.create(TransactionContext tx,
java.lang.Object object)
|
boolean |
PersistanceCapableRelationResolver.markCreate(TransactionContext tx,
OID oid,
java.lang.Object object)
|
UpdateFlags |
PersistanceCapableRelationResolver.preStore(TransactionContext tx,
OID oid,
java.lang.Object object,
int timeout,
java.lang.Object field)
|
java.lang.Object |
PersistanceCapableRelationResolver.store(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
void |
PersistanceCapableRelationResolver.update(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
java.lang.Object field)
|
java.lang.Object |
PersistanceCapableRelationResolver.updateCache(TransactionContext tx,
OID oid,
java.lang.Object object)
|
void |
PersistanceCapableRelationResolver.markDelete(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
void |
PersistanceCapableRelationResolver.revertObject(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field)
|
void |
PersistanceCapableRelationResolver.expireCache(TransactionContext tx,
java.lang.Object field)
|
void |
PersistanceCapableRelationResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
java.lang.Object |
PersistanceCapableRelationResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
UpdateAndRemovedFlags |
PersistanceCapableRelationResolver.removeRelation(TransactionContext tx,
java.lang.Object object,
ClassMolder relatedMolder,
java.lang.Object relatedObject)
|
boolean |
PersistanceCapableRelationResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
java.lang.Object |
PrimitiveResolver.create(TransactionContext tx,
java.lang.Object object)
|
boolean |
PrimitiveResolver.markCreate(TransactionContext tx,
OID oid,
java.lang.Object object)
|
UpdateFlags |
PrimitiveResolver.preStore(TransactionContext tx,
OID oid,
java.lang.Object object,
int timeout,
java.lang.Object field)
|
java.lang.Object |
PrimitiveResolver.store(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
void |
PrimitiveResolver.update(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
java.lang.Object field)
|
java.lang.Object |
PrimitiveResolver.updateCache(TransactionContext tx,
OID oid,
java.lang.Object object)
|
void |
PrimitiveResolver.markDelete(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
void |
PrimitiveResolver.revertObject(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field)
|
void |
PrimitiveResolver.expireCache(TransactionContext tx,
java.lang.Object field)
|
void |
PrimitiveResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
java.lang.Object |
PrimitiveResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
UpdateAndRemovedFlags |
PrimitiveResolver.removeRelation(TransactionContext tx,
java.lang.Object object,
ClassMolder relatedMolder,
java.lang.Object relatedObject)
|
boolean |
PrimitiveResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
java.lang.Object |
ResolverStrategy.create(TransactionContext tx,
java.lang.Object object)
Create an object of the base class with specified identity into the persistence storage. |
java.lang.Object |
ResolverStrategy.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
Called after successful creation of an object of the base class. |
boolean |
ResolverStrategy.markCreate(TransactionContext tx,
OID oid,
java.lang.Object object)
Walk the object model and mark object that should be created. |
UpdateFlags |
ResolverStrategy.preStore(TransactionContext tx,
OID oid,
java.lang.Object object,
int timeout,
java.lang.Object field)
Check the object for modification. |
java.lang.Object |
ResolverStrategy.store(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
Store a data object into the persistent storage of the base class of this ClassMolder. |
void |
ResolverStrategy.update(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
java.lang.Object field)
Update the object which loaded or created in the other transaction to the persistent storage. |
boolean |
ResolverStrategy.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
Update the object which loaded or created in the other transaction to the persistent storage. |
java.lang.Object |
ResolverStrategy.updateCache(TransactionContext tx,
OID oid,
java.lang.Object object)
Update the dirty checking cache. |
void |
ResolverStrategy.markDelete(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
Prepare to delete an object with the specified identity. |
void |
ResolverStrategy.revertObject(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.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 |
ResolverStrategy.expireCache(TransactionContext tx,
java.lang.Object field)
Inspect the fields stored in the object passed as an argument for contained objects. |
void |
ResolverStrategy.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
Load an object with specified identity from the persistent storage. |
UpdateAndRemovedFlags |
ResolverStrategy.removeRelation(TransactionContext tx,
java.lang.Object object,
ClassMolder relatedMolder,
java.lang.Object relatedObject)
Remove the reference of a related object from an object of the base class. |
java.lang.Object |
SerializableResolver.create(TransactionContext tx,
java.lang.Object object)
|
boolean |
SerializableResolver.markCreate(TransactionContext tx,
OID oid,
java.lang.Object object)
|
UpdateFlags |
SerializableResolver.preStore(TransactionContext tx,
OID oid,
java.lang.Object object,
int timeout,
java.lang.Object field)
|
java.lang.Object |
SerializableResolver.store(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
void |
SerializableResolver.update(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
java.lang.Object field)
|
java.lang.Object |
SerializableResolver.updateCache(TransactionContext tx,
OID oid,
java.lang.Object object)
|
void |
SerializableResolver.markDelete(TransactionContext tx,
java.lang.Object object,
java.lang.Object field)
|
void |
SerializableResolver.revertObject(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field)
|
void |
SerializableResolver.expireCache(TransactionContext tx,
java.lang.Object field)
|
void |
SerializableResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
java.lang.Object |
SerializableResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
UpdateAndRemovedFlags |
SerializableResolver.removeRelation(TransactionContext tx,
java.lang.Object object,
ClassMolder relatedMolder,
java.lang.Object relatedObject)
|
boolean |
SerializableResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.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 | |
protected TransactionContext |
AbstractDatabaseImpl.getTransaction()
Returns the currently active transaction, if any. |
TransactionContext |
AbstractDatabaseImpl.getCurrentTransaction()
Gets the current Castor transaction in use. |
| Uses of TransactionContext in org.exolab.castor.persist |
| Methods in org.exolab.castor.persist that return TransactionContext | |
TransactionContext |
QueryResults.getTransaction()
Returns the transaction context in which this query was opened. |
TransactionContext |
XAResourceSource.getTransactionContext()
Returns the transaction context associated with this source. |
TransactionContext |
XAResourceSource.createTransactionContext(javax.transaction.xa.Xid xid)
Called by XAResourceImpl to produce a new transaction context
implementation suitable for this data source. |
| Methods in org.exolab.castor.persist with parameters of type TransactionContext | |
boolean |
ClassMolder.removeRelation(TransactionContext tx,
java.lang.Object object,
ClassMolder relatedMolder,
java.lang.Object relatedObject)
Remove the reference of a related object from an object of the base class. |
java.lang.Object |
ClassMolder.load(TransactionContext tx,
OID oid,
DepositBox locker,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
Load an object with specified identity from the persistent storage. |
java.lang.Object |
ClassMolder.load(TransactionContext tx,
OID oid,
DepositBox locker,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
QueryResults results)
|
Identity |
ClassMolder.create(TransactionContext tx,
OID oid,
DepositBox locker,
java.lang.Object object)
Create an object of the base class with specified identity into the persistence storage. |
void |
ClassMolder.markCreate(TransactionContext tx,
OID oid,
DepositBox locker,
java.lang.Object object)
Walk the object model and mark object that should be created. |
boolean |
ClassMolder.preStore(TransactionContext tx,
OID oid,
DepositBox locker,
java.lang.Object object,
int timeout)
Check the object for modification. |
void |
ClassMolder.store(TransactionContext tx,
OID oid,
DepositBox locker,
java.lang.Object object)
Store a data object into the persistent storage of the base class of this ClassMolder. |
boolean |
ClassMolder.update(TransactionContext tx,
OID oid,
DepositBox locker,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
Update the object which loaded or created in the other transaction to the persistent storage. |
void |
ClassMolder.updateCache(TransactionContext tx,
OID oid,
DepositBox locker,
java.lang.Object object)
Update the dirty checking cache. |
void |
ClassMolder.delete(TransactionContext tx,
OID oid)
Delete an object of the base type from the persistence storage. |
void |
ClassMolder.markDelete(TransactionContext tx,
OID oid,
DepositBox locker,
java.lang.Object object)
Prepare to delete an object with the specified identity. |
void |
ClassMolder.revertObject(TransactionContext tx,
OID oid,
DepositBox locker,
java.lang.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. |
Identity |
ClassMolder.getIdentity(TransactionContext tx,
java.lang.Object o)
Get the identity from a object of the base type. |
Identity |
ClassMolder.getActualIdentity(TransactionContext tx,
java.lang.Object o)
Get the identity from a object of the base type. |
void |
ClassMolder.setIdentity(TransactionContext tx,
java.lang.Object object,
Identity identity)
Set the identity into an object. |
void |
ClassMolder.expireCache(TransactionContext tx,
ObjectLock locker)
Inspect the fields stored in the object passed as an argument for contained objects. |
static java.util.ArrayList |
ClassMolderHelper.extractIdentityList(TransactionContext tx,
ClassMolder molder,
java.lang.Object col)
Return all the object identity of a Collection of object of the same type. |
static java.util.Collection |
ClassMolderHelper.getAddedValuesList(TransactionContext tx,
java.util.ArrayList orgIds,
java.lang.Object collection,
ClassMolder ch)
It is assumed the returned collection will not be modified. |
static java.util.Collection |
ClassMolderHelper.getRemovedIdsList(TransactionContext tx,
java.util.ArrayList orgIds,
java.lang.Object collection,
ClassMolder ch)
It is assumed the returned collection will not be modified. |
void |
DepositBox.setObject(TransactionContext tx,
java.lang.Object[] object)
Set an object into the DespositBox, only a transaction has the write lock may call it method or IllegalArgumentException will be thrown. |
java.lang.Object[] |
DepositBox.getObject(TransactionContext tx)
Get the object from the DespositBox, only the transaction have the read or write lock can get it. |
OID |
LockEngine.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
int timeout)
Loads an object of the specified type and identity from persistent storage. |
OID |
LockEngine.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
int timeout,
QueryResults results)
|
void |
LockEngine.markCreate(TransactionContext tx,
OID oid,
java.lang.Object object)
Mark an object and its related or dependent object to be created. |
OID |
LockEngine.create(TransactionContext tx,
OID oid,
java.lang.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 |
LockEngine.markDelete(TransactionContext tx,
OID oid,
java.lang.Object object,
int timeout)
|
boolean |
LockEngine.update(TransactionContext tx,
OID oid,
java.lang.Object object,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
int timeout)
Updates an existing object to this engine. |
OID |
LockEngine.preStore(TransactionContext tx,
OID oid,
java.lang.Object object,
int timeout)
Called at transaction commit to store an object that has been loaded during the transaction. |
void |
LockEngine.store(TransactionContext tx,
OID oid,
java.lang.Object object)
|
void |
LockEngine.writeLock(TransactionContext tx,
OID oid,
int timeout)
Acquire a write lock on the object. |
void |
LockEngine.softLock(TransactionContext tx,
OID oid,
int timeout)
Acquire a write lock on the object in memory. |
void |
LockEngine.revertObject(TransactionContext tx,
OID oid,
java.lang.Object object)
Reverts an object to the cached copy given the object's OID. |
void |
LockEngine.updateCache(TransactionContext tx,
OID oid,
java.lang.Object object)
Update the cached object with changes done to its copy. |
void |
LockEngine.releaseLock(TransactionContext tx,
OID oid)
Called at transaction commit or rollback to release all locks held on the object. |
void |
LockEngine.forgetObject(TransactionContext tx,
OID oid)
Called at transaction commit or rollback to forget an object and release its locks. |
boolean |
LockEngine.expireCache(TransactionContext tx,
OID oid,
int timeout)
Expire object from the cache. |
(package private) boolean |
ObjectLock.hasLock(TransactionContext tx,
boolean write)
Returns true if the transaction holds a read or write lock on the object. |
(package private) boolean |
ObjectLock.isExclusivelyOwned(TransactionContext tx)
|
(package private) void |
ObjectLock.acquireLoadLock(TransactionContext tx,
boolean write,
int timeout)
|
(package private) void |
ObjectLock.acquireCreateLock(TransactionContext tx)
|
(package private) void |
ObjectLock.acquireUpdateLock(TransactionContext tx,
int timeout)
|
void |
ObjectLock.setObject(TransactionContext tx,
java.lang.Object[] object)
|
java.lang.Object[] |
ObjectLock.getObject(TransactionContext tx)
|
(package private) void |
ObjectLock.confirm(TransactionContext tx,
boolean succeed)
|
(package private) void |
ObjectLock.upgrade(TransactionContext tx,
int timeout)
Acquires a lock on the object on behalf of the specified transaction. |
(package private) void |
ObjectLock.release(TransactionContext tx)
Releases a lock on the object previously acquired. |
(package private) void |
ObjectLock.delete(TransactionContext tx)
Informs the lock that the object has been deleted by the transaction holding the write lock. |
(package private) void |
ObjectLock.invalidate(TransactionContext tx)
|
void |
TxSynchronizable.committed(TransactionContext tx)
Called at the end of a transaction after commit. |
void |
TxSynchronizable.rolledback(TransactionContext tx)
Called at the end of a transaction after rollback. |
void |
XAResourceSource.setTransactionContext(TransactionContext tx)
Sets the transaction context associated with this source. |
| Constructors in org.exolab.castor.persist with parameters of type TransactionContext | |
ObjectLock.LinkedTx(TransactionContext tx,
ObjectLock.LinkedTx next)
|
|
QueryResults(TransactionContext tx,
LockEngine engine,
PersistenceQuery query,
org.exolab.castor.mapping.AccessMode accessMode,
Database db)
|
|
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||