Package | Description |
---|---|
org.castor.persist | |
org.castor.persist.proxy | |
org.castor.persist.resolver | |
org.exolab.castor.jdo |
The Java Data Objects API
|
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.
|
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
LazyHashSet.committed(TransactionContext tx) |
static Object |
SingleProxy.getProxy(TransactionContext tx,
ClassMolder classMolder,
Identity identity,
Object object,
AccessMode accessMode)
Factory method to create SingleProxy instance.
|
void |
LazyHashSet.rolledback(TransactionContext tx) |
Constructor and Description |
---|
LazyHashSet(TransactionContext tx,
ClassMolder molder,
List<Identity> ids)
Creates an instance of LazyHashSet.
|
Modifier and Type | Method and Description |
---|---|
Object |
PrimitiveResolver.create(TransactionContext tx,
Object object) |
Object |
SerializableResolver.create(TransactionContext tx,
Object object) |
Object |
PersistanceCapableRelationResolver.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 |
ManyRelationResolver.create(TransactionContext tx,
Object object) |
void |
PrimitiveResolver.expireCache(TransactionContext tx,
Object field) |
void |
SerializableResolver.expireCache(TransactionContext tx,
Object field) |
void |
PersistanceCapableRelationResolver.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 |
ManyRelationResolver.expireCache(TransactionContext tx,
Object field) |
boolean |
BaseRelationResolver.isCascadingCreate(TransactionContext tx)
Indicates whether 'cascading create' mode has been requested.
|
boolean |
BaseRelationResolver.isCascadingUpdate(TransactionContext tx)
Indicates whether 'cascading update' mode has been requested.
|
void |
PrimitiveResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode) |
void |
SerializableResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode) |
void |
PersistanceCapableRelationResolver.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 |
ManyRelationResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode) |
boolean |
PrimitiveResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
boolean |
SerializableResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
boolean |
OneToManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
boolean |
PersistanceCapableRelationResolver.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.
|
abstract boolean |
ManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
boolean |
ManyToManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
void |
PrimitiveResolver.markDelete(TransactionContext tx,
Object object,
Object field) |
void |
SerializableResolver.markDelete(TransactionContext tx,
Object object,
Object field) |
void |
OneToManyRelationResolver.markDelete(TransactionContext tx,
Object object,
Object field) |
void |
PersistanceCapableRelationResolver.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.
|
abstract void |
ManyRelationResolver.markDelete(TransactionContext tx,
Object object,
Object field) |
void |
ManyToManyRelationResolver.markDelete(TransactionContext tx,
Object object,
Object field) |
Object |
PrimitiveResolver.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId) |
Object |
SerializableResolver.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 |
PersistanceCapableRelationResolver.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.
|
abstract Object |
ManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId) |
Object |
ManyToManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId) |
UpdateFlags |
PrimitiveResolver.preStore(TransactionContext tx,
OID oid,
Object object,
int timeout,
Object field) |
UpdateFlags |
SerializableResolver.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 |
PersistanceCapableRelationResolver.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.
|
abstract UpdateFlags |
ManyRelationResolver.preStore(TransactionContext tx,
OID oid,
Object object,
int timeout,
Object field) |
UpdateFlags |
ManyToManyRelationResolver.preStore(TransactionContext tx,
OID oid,
Object object,
int timeout,
Object field) |
UpdateAndRemovedFlags |
PrimitiveResolver.removeRelation(TransactionContext tx,
Object object,
ClassMolder relatedMolder,
Object relatedObject) |
UpdateAndRemovedFlags |
SerializableResolver.removeRelation(TransactionContext tx,
Object object,
ClassMolder relatedMolder,
Object relatedObject) |
UpdateAndRemovedFlags |
PersistanceCapableRelationResolver.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 |
ManyRelationResolver.removeRelation(TransactionContext tx,
Object object,
ClassMolder relatedMolder,
Object relatedObject) |
void |
PrimitiveResolver.revertObject(TransactionContext tx,
OID oid,
Object object,
Object field) |
void |
SerializableResolver.revertObject(TransactionContext tx,
OID oid,
Object object,
Object field) |
void |
PersistanceCapableRelationResolver.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 |
ManyRelationResolver.revertObject(TransactionContext tx,
OID oid,
Object object,
Object field) |
Object |
PrimitiveResolver.store(TransactionContext tx,
Object object,
Object field) |
Object |
SerializableResolver.store(TransactionContext tx,
Object object,
Object field) |
Object |
PersistanceCapableRelationResolver.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 |
ManyRelationResolver.store(TransactionContext tx,
Object object,
Object field) |
void |
PrimitiveResolver.update(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode,
Object field) |
void |
SerializableResolver.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 |
PersistanceCapableRelationResolver.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.
|
abstract void |
ManyRelationResolver.update(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode,
Object field) |
void |
ManyToManyRelationResolver.update(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode,
Object field) |
Object |
PrimitiveResolver.updateCache(TransactionContext tx,
OID oid,
Object object) |
Object |
SerializableResolver.updateCache(TransactionContext tx,
OID oid,
Object object) |
Object |
PersistanceCapableRelationResolver.updateCache(TransactionContext tx,
OID oid,
Object object) |
Object |
ResolverStrategy.updateCache(TransactionContext tx,
OID oid,
Object object)
Update the dirty checking cache.
|
Object |
ManyRelationResolver.updateCache(TransactionContext tx,
OID oid,
Object object) |
boolean |
PrimitiveResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
boolean |
SerializableResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
boolean |
OneToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
boolean |
PersistanceCapableRelationResolver.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 |
ManyToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
Constructor and Description |
---|
CacheManager(Database db,
TransactionContext transactionContext,
LockEngine lockEngine)
Creates an instance of this class.
|
Modifier and Type | Field and Description |
---|---|
protected TransactionContext |
AbstractDatabaseImpl._ctx
The transaction context is this database was accessed with an
XAResource . |
Modifier and Type | Method and Description |
---|---|
TransactionContext |
AbstractDatabaseImpl.getCurrentTransaction()
Gets the current Castor transaction in use.
|
protected TransactionContext |
AbstractDatabaseImpl.getTransaction()
Returns the currently active transaction, if any.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
HashMap<Xid,TransactionContext> |
LockEngine.getXATransactions()
Returns an association between Xid and transactions contexts.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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<Object> |
ClassMolderHelper.getAddedEntitiesList(TransactionContext tx,
List<Identity> orgIds,
Object collection,
ClassMolder molder)
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.
|
static List<Identity> |
ClassMolderHelper.getIdsList(TransactionContext tx,
ClassMolder molder,
Object col)
Return all the object identity of a Collection of object of the same
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 List<Identity> |
ClassMolderHelper.getRemovedIdsList(TransactionContext tx,
List<Identity> orgIds,
Object collection,
ClassMolder molder)
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.
|
Constructor and Description |
---|
QueryResults(TransactionContext tx,
LockEngine engine,
PersistenceQuery query,
AccessMode accessMode,
Database db) |
Copyright © 2016. All rights reserved.