Package | Description |
---|---|
org.castor.persist | |
org.castor.persist.cache | |
org.castor.persist.resolver | |
org.exolab.castor.persist |
The Castor persistence engine handles object persistence, object
caching, transaction concurrency and locking.
|
Modifier and Type | Method and Description |
---|---|
OID |
ObjectTracker.getOIDForObject(Object o) |
Modifier and Type | Method and Description |
---|---|
void |
TransactionContext.create(ClassMolder molder,
Object object,
OID depended)
Creates a new object in persistent storage.
|
void |
AbstractTransactionContext.create(ClassMolder molder,
Object object,
OID depended)
Creates a new object in persistent storage.
|
Object |
ObjectTracker.getObjectForOID(LockEngine engine,
OID oid,
boolean allowReadOnly)
Retrieve the object for a given OID.
|
boolean |
TransactionContext.isDeletedByOID(OID oid) |
boolean |
AbstractTransactionContext.isDeletedByOID(OID oid) |
boolean |
TransactionContext.isDepended(OID master,
Object dependent) |
boolean |
AbstractTransactionContext.isDepended(OID master,
Object dependent) |
void |
TransactionContext.markCreate(ClassMolder molder,
Object object,
OID rootObjectOID)
Walk a data object tree starting from the specified object, and mark all
objects to be created.
|
void |
AbstractTransactionContext.markCreate(ClassMolder molder,
Object object,
OID rootObjectOID)
Walk a data object tree starting from the specified object, and mark all
objects to be created.
|
boolean |
TransactionContext.markUpdate(ClassMolder molder,
Object object,
OID depended)
Update a new object in persistent storage and returns the object's OID.
|
boolean |
AbstractTransactionContext.markUpdate(ClassMolder molder,
Object object,
OID depended)
Update a new object in persistent storage and returns the object's OID.
|
void |
ObjectTracker.removeOIDForObject(LockEngine engine,
OID oid)
For a given lockengine and OID, remove references to an object in the maps.
|
void |
ObjectTracker.setOIDForObject(Object obj,
LockEngine engine,
OID oid)
For a given lockengine and OID, set the object in the maps.
|
void |
ObjectTracker.trackObject(ClassMolder molder,
OID oid,
Object object) |
void |
AbstractTransactionContext.trackObject(ClassMolder molder,
OID oid,
Object object) |
void |
ObjectTracker.trackOIDChange(Object obj,
LockEngine engine,
OID oldoid,
OID newoid)
Record changes to an OID by re-tracking the OID information.
|
void |
TransactionContext.update(ClassMolder molder,
Object object,
OID depended)
Update a new object in persistent storage and returns the object's OID.
|
void |
AbstractTransactionContext.update(ClassMolder molder,
Object object,
OID depended)
Update a new object in persistent storage and returns the object's OID.
|
Modifier and Type | Method and Description |
---|---|
OID |
CacheEntry.getOID()
Get OID of the entry to be cached.
|
Modifier and Type | Method and Description |
---|---|
void |
CacheEntry.setOID(OID oid)
Set OID of the entry to be cached.
|
Constructor and Description |
---|
CacheEntry(OID oid,
Object[] entry,
long timeStamp) |
Modifier and Type | Method and Description |
---|---|
void |
SerializableResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode) |
void |
ManyRelationResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode) |
void |
PrimitiveResolver.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.
|
boolean |
SerializableResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
boolean |
OneToManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
abstract boolean |
ManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
boolean |
PrimitiveResolver.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.
|
boolean |
ManyToManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
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) |
abstract Object |
ManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId) |
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 |
ResolverStrategy.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId)
Called after successful creation of an object of the base class.
|
Object |
ManyToManyRelationResolver.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 |
OneToManyRelationResolver.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) |
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 |
ResolverStrategy.preStore(TransactionContext tx,
OID oid,
Object object,
int timeout,
Object field)
Check the object for modification.
|
UpdateFlags |
ManyToManyRelationResolver.preStore(TransactionContext tx,
OID oid,
Object object,
int timeout,
Object field) |
void |
SerializableResolver.revertObject(TransactionContext tx,
OID oid,
Object object,
Object field) |
void |
ManyRelationResolver.revertObject(TransactionContext tx,
OID oid,
Object object,
Object field) |
void |
PrimitiveResolver.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 |
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) |
abstract void |
ManyRelationResolver.update(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode,
Object field) |
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 |
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 |
ManyToManyRelationResolver.update(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode,
Object field) |
Object |
SerializableResolver.updateCache(TransactionContext tx,
OID oid,
Object object) |
Object |
ManyRelationResolver.updateCache(TransactionContext tx,
OID oid,
Object object) |
Object |
PrimitiveResolver.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.
|
boolean |
SerializableResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
boolean |
OneToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
boolean |
PrimitiveResolver.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) |
Modifier and Type | Method and Description |
---|---|
OID |
LockEngine.create(TransactionContext tx,
OID oid,
Object object)
Creates a new object in the persistence storage.
|
OID |
OID.getDepends()
Get the depended object's oid.
|
OID |
ObjectLock.getOID()
Return the object's OID.
|
OID |
DepositBox.getOID()
Get the object's OID.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
ClassMolder.delete(TransactionContext tx,
OID oid)
Delete an object of the base type from the persistence storage.
|
void |
LockEngine.delete(TransactionContext tx,
OID oid)
Called at transaction commit time to delete the object.
|
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.
|
boolean |
LockEngine.isCached(Class cls,
OID oid)
Provides information about whether an object of Class cls with identity iod is
currently cached.
|
boolean |
LockEngine.isLocked(Class cls,
OID oid) |
void |
LockEngine.load(AbstractTransactionContext tx,
OID paramoid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode,
int timeout,
QueryResults results,
ClassMolder paramMolder,
Identity identity)
Loads an object of the specified type and identity from
persistent storage.
|
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) |
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.
|
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 |
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 |
---|
ObjectLock(OID oid)
Create a new lock for the specified object.
|
ObjectLock(OID oid,
Object[] object,
long version) |
OID(ClassMolder molder,
OID depends,
Identity identity)
Constructor.
|
Copyright © 2018. All rights reserved.