Package | Description |
---|---|
org.castor.persist | |
org.castor.persist.proxy | |
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 |
---|---|
ClassMolder |
ProposedEntity.getActualClassMolder()
Returns the ClassMolder associated with the actual object.
|
ClassMolder |
ObjectTracker.getMolderForObject(Object o)
Retrieve the ClassMolder associated with a specific object.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractTransactionContext.create(ClassMolder molder,
Object object,
OID depended)
Creates a new object in persistent storage.
|
void |
TransactionContext.create(ClassMolder molder,
Object object,
OID depended)
Creates a new object in persistent storage.
|
void |
AbstractTransactionContext.expireCache(ClassMolder molder,
Identity identity)
Expire object from the cache.
|
void |
TransactionContext.expireCache(ClassMolder molder,
Identity identity)
Expire object from the cache.
|
Object |
AbstractTransactionContext.fetch(ClassMolder molder,
Identity identity,
AccessMode suggestedAccessMode) |
Object |
TransactionContext.fetch(ClassMolder molder,
Identity identity,
AccessMode suggestedAccessMode) |
NamedNativeQuery |
AbstractTransactionContext.getNamedNativeQuery(ClassMolder molder,
String name)
Returns a NamedNativeQuery instance query based upon a named query as defined in the
mapping file.
|
NamedNativeQuery |
TransactionContext.getNamedNativeQuery(ClassMolder molder,
String name)
Returns a NamedNativeQuery instance query based upon a named query as defined in the
mapping file.
|
String |
AbstractTransactionContext.getNamedQuery(ClassMolder molder,
String name)
Creates an OQL query based upon a named query as defined in the
mapping file.
|
String |
TransactionContext.getNamedQuery(ClassMolder molder,
String name)
Creates an OQL query based upon a named query as defined in the
mapping file.
|
boolean |
AbstractTransactionContext.isCached(ClassMolder molder,
Class cls,
Identity identity) |
boolean |
TransactionContext.isCached(ClassMolder molder,
Class cls,
Identity identity) |
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.
|
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.
|
boolean |
AbstractTransactionContext.markUpdate(ClassMolder molder,
Object object,
OID depended)
Update a new object in persistent storage and returns the object's OID.
|
boolean |
TransactionContext.markUpdate(ClassMolder molder,
Object object,
OID depended)
Update a new object in persistent storage and returns the object's OID.
|
void |
ProposedEntity.setActualClassMolder(ClassMolder actualClassMolder)
Sets the ClassMolder associated with the actual object.
|
void |
AbstractTransactionContext.trackObject(ClassMolder molder,
OID oid,
Object object) |
void |
ObjectTracker.trackObject(ClassMolder molder,
OID oid,
Object object) |
void |
AbstractTransactionContext.update(ClassMolder molder,
Object object,
OID depended)
Update a new object in persistent storage and returns the object's OID.
|
void |
TransactionContext.update(ClassMolder molder,
Object object,
OID depended)
Update a new object in persistent storage and returns the object's OID.
|
Constructor and Description |
---|
ProposedEntity(ClassMolder actualClassMolder) |
Modifier and Type | Method and Description |
---|---|
ClassMolder |
LazyCGLIB.interceptedClassMolder()
Returns the ClassMolder of the object intercepted.
|
Modifier and Type | Method and Description |
---|---|
static Object |
SingleProxy.getProxy(TransactionContext tx,
ClassMolder classMolder,
Identity identity,
Object object,
AccessMode accessMode)
Factory method to create SingleProxy instance.
|
Constructor and Description |
---|
LazyHashSet(TransactionContext tx,
ClassMolder molder,
List<Identity> ids)
Creates an instance of LazyHashSet.
|
Modifier and Type | Field and Description |
---|---|
protected ClassMolder |
BaseRelationResolver._classMolder
Associated
ClassMolder . |
Modifier and Type | Method and Description |
---|---|
static ResolverStrategy |
ResolverFactory.createRelationResolver(FieldMolder fieldMolder,
ClassMolder classMolder,
int fieldIndex)
Factory method to create ResolverStrategy instance.
|
UpdateAndRemovedFlags |
PersistanceCapableRelationResolver.removeRelation(TransactionContext tx,
Object object,
ClassMolder relatedMolder,
Object relatedObject) |
UpdateAndRemovedFlags |
ManyRelationResolver.removeRelation(TransactionContext tx,
Object object,
ClassMolder relatedMolder,
Object relatedObject) |
UpdateAndRemovedFlags |
SerializableResolver.removeRelation(TransactionContext tx,
Object object,
ClassMolder relatedMolder,
Object relatedObject) |
UpdateAndRemovedFlags |
PrimitiveResolver.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.
|
Constructor and Description |
---|
BaseRelationResolver(ClassMolder classMolder,
FieldMolder fieldMolder)
Creates an instance of BasicRelationResolver.
|
ManyRelationResolver(ClassMolder classMolder,
FieldMolder fieldMolder,
int fieldIndex)
Creates an instance of ManyRelationResolver.
|
ManyToManyRelationResolver(ClassMolder classMolder,
FieldMolder fieldMolder,
int fieldIndex)
Creates an instance of ManyToManyRelationResolver.
|
OneToManyRelationResolver(ClassMolder classMolder,
FieldMolder fieldMolder,
int fieldIndex)
Creates an instance of OneToMany.
|
PersistanceCapableRelationResolver(ClassMolder classMolder,
FieldMolder fieldMolder,
int fieldIndex)
Creates an instance of this resolver class.
|
PrimitiveResolver(ClassMolder classMolder,
FieldMolder fieldMolder,
int fieldIndex)
Creates an instance of PrimitiveResolver.
|
SerializableResolver(ClassMolder classMolder,
FieldMolder fieldMolder,
int fieldIndex)
Creates an instance of SerializableResolver.
|
Modifier and Type | Method and Description |
---|---|
ClassMolder |
PersistenceInfoGroup.findClassMolderByNativeQuery(String query)
Returns the ClassMolder associated with a given named native query (by the means of the
mapping file).
|
ClassMolder |
PersistenceInfoGroup.findClassMolderByQuery(String query)
Returns the ClassMolder associated with a given named query (by the means of the
mapping file).
|
ClassMolder |
PersistenceInfoGroup.getClassMolder(Class type) |
ClassMolder |
LockEngine.getClassMolder(Class cls)
Get classMolder which represents the given java data object class.
|
ClassMolder |
LockEngine.getClassMolder(String classname) |
ClassMolder |
LockEngine.getClassMolderByNativeQuery(String name)
Returns the ClassMolder instance that has a named native query associated with the
name given.
|
ClassMolder |
LockEngine.getClassMolderByQuery(String name)
Returns the ClassMolder instance that has a named query associated with the name given.
|
ClassMolder |
LockEngine.getClassMolderWithDependent(Class cls) |
ClassMolder |
LockEngine.getClassMolderWithDependent(String classname) |
ClassMolder |
ClassMolder.getDepends()
Get the depends class' ClassMolder.
|
ClassMolder |
FieldMolder.getEnclosingClassMolder() |
ClassMolder |
ClassMolder.getExtends()
Get the extends class' ClassMolder.
|
ClassMolder |
FieldMolder.getFieldClassMolder() |
ClassMolder |
OID.getMolder()
Get the ClassMolder of this object.
|
Modifier and Type | Method and Description |
---|---|
static Collection<Object> |
ClassMolderHelper.getAddedEntitiesList(TransactionContext tx,
List<Identity> orgIds,
Object collection,
ClassMolder molder)
It is assumed the returned collection will not be modified.
|
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.
|
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 |
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.
|
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.
|
Constructor and Description |
---|
FieldMolder(DatingService datingService,
ClassMolder enclosingClassMolder,
FieldDescriptor fieldDescriptor) |
FieldMolder(DatingService ds,
ClassMolder eMold,
FieldDescriptor fieldDescriptor,
SQLRelationLoader loader)
Creates a single field descriptor.
|
OID(ClassMolder molder,
Identity identity)
Constructor.
|
OID(ClassMolder molder,
OID depends,
Identity identity)
Constructor.
|
Copyright © 2014. All rights reserved.