|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use Identity | |
| 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.drivers | |
| 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. |
| org.exolab.castor.persist.spi | Defines the interfaces for persistence engine service providers. |
| Uses of Identity in org.castor.persist |
| Methods in org.castor.persist with parameters of type Identity | |
java.lang.Object |
AbstractTransactionContext.fetch(ClassMolder molder,
Identity identity,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
java.lang.Object |
AbstractTransactionContext.load(Identity identity,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
Load an object for use within the transaction. Multiple access to the same object within the transaction will return the same object instance (except for read-only access).
This method is similar to If the object is loaded for read-only then no lock is acquired and updates to the object are not reflected at commit time. If the object is loaded for read-write then a read lock is acquired (unless timeout or deadlock detected) and the object is stored at commit time. The object is then considered persistent and may be deleted or upgraded to write lock. If the object is loaded for exclusive access then a write lock is acquired and the object is synchronized with the persistent copy. Attempting to load the object twice in the same transaction, once with exclusive lock and once with read-write lock will result in an exception. |
java.lang.Object |
AbstractTransactionContext.load(Identity identity,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
QueryResults results)
Load an object for use within the transaction. Multiple access to the same object within the transaction will return the same object instance (except for read-only access).
In addition to |
void |
AbstractTransactionContext.expireCache(ClassMolder molder,
Identity identity)
Expire object from the cache. Objects expired from the cache will be read from persistent storage, as opposed to being read from the cache, during subsequent load/query operations. |
boolean |
AbstractTransactionContext.isCached(ClassMolder molder,
java.lang.Class cls,
Identity identity)
|
boolean |
AbstractTransactionContext.isLocked(java.lang.Class cls,
Identity identity,
LockEngine lockEngine)
Returns true if the object given is locked. |
java.lang.Object |
TransactionContext.fetch(ClassMolder molder,
Identity identity,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
|
java.lang.Object |
TransactionContext.load(Identity identity,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode)
Load an object for use within the transaction. |
java.lang.Object |
TransactionContext.load(Identity identity,
ProposedEntity proposedObject,
org.exolab.castor.mapping.AccessMode suggestedAccessMode,
QueryResults results)
Load an object for use within the transaction. |
boolean |
TransactionContext.isCached(ClassMolder molder,
java.lang.Class cls,
Identity identity)
|
void |
TransactionContext.expireCache(ClassMolder molder,
Identity identity)
Expire object from the cache. |
boolean |
TransactionContext.isLocked(java.lang.Class cls,
Identity identity,
LockEngine lockEngine)
Returns true if the object given is locked. |
| Uses of Identity in org.castor.persist.proxy |
| Methods in org.castor.persist.proxy that return Identity | |
Identity |
LazyCGLIB.interceptedIdentity()
Returns the identity of the object (class) intercepted. |
| Methods in org.castor.persist.proxy with parameters of type Identity | |
abstract void |
CollectionProxy.add(Identity key,
java.lang.Object value)
|
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. |
| Uses of Identity in org.castor.persist.resolver |
| Methods in org.castor.persist.resolver with parameters of type Identity | |
abstract java.lang.Object |
ManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
java.lang.Object |
ManyToManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
java.lang.Object |
OneToManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
java.lang.Object |
PersistanceCapableRelationResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
java.lang.Object |
PrimitiveResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
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. |
java.lang.Object |
SerializableResolver.postCreate(TransactionContext tx,
OID oid,
java.lang.Object object,
java.lang.Object field,
Identity createdId)
|
| Uses of Identity in org.exolab.castor.jdo |
| Methods in org.exolab.castor.jdo that return Identity | |
Identity |
Database.getIdentity(java.lang.Object object)
Returns the object's identity. |
| Uses of Identity in org.exolab.castor.jdo.drivers |
| Methods in org.exolab.castor.jdo.drivers that return Identity | |
Identity |
PostgreSQLCallQuery.nextIdentity(Identity identity)
|
| Methods in org.exolab.castor.jdo.drivers with parameters of type Identity | |
Identity |
PostgreSQLCallQuery.nextIdentity(Identity identity)
|
| Uses of Identity in org.exolab.castor.jdo.engine |
| Methods in org.exolab.castor.jdo.engine that return Identity | |
Identity |
AbstractDatabaseImpl.getIdentity(java.lang.Object object)
Returns the object's identity. The identity will be determined by calling the getters of the fields defined as identities in the mapping. If a mapping for the objects class could not be found a ClassNotPersistenceCapableException will be thrown. Null is only returned if the objects identity is null. It is not required to have an active transaction when using this method. Note: Prior to 0.9.9.1 release of castor the identity could only be determined if the object took part in the transaction. If this was not the case, the previous implementation also returned null. |
Identity |
SQLEngine.create(Database database,
java.lang.Object conn,
ProposedEntity entity,
Identity identity)
|
Identity |
SQLQuery.nextIdentity(Identity identity)
|
| Methods in org.exolab.castor.jdo.engine with parameters of type Identity | |
Identity |
SQLEngine.create(Database database,
java.lang.Object conn,
ProposedEntity entity,
Identity identity)
|
java.lang.Object |
SQLEngine.store(java.lang.Object conn,
Identity identity,
ProposedEntity newentity,
ProposedEntity oldentity)
|
void |
SQLEngine.delete(java.lang.Object conn,
Identity identity)
|
java.lang.Object |
SQLEngine.load(java.lang.Object conn,
ProposedEntity entity,
Identity identity,
org.exolab.castor.mapping.AccessMode accessMode)
Loads the object from persistence storage. |
Identity |
SQLQuery.nextIdentity(Identity identity)
|
java.lang.Object |
SQLStatementCreate.executeStatement(Database database,
java.sql.Connection conn,
Identity identity,
ProposedEntity entity)
|
java.lang.Object |
SQLStatementLoad.executeStatement(java.sql.Connection conn,
Identity identity,
ProposedEntity entity,
org.exolab.castor.mapping.AccessMode accessMode)
|
java.lang.Object |
SQLStatementLookup.executeStatement(java.sql.Connection conn,
Identity identity)
|
java.lang.Object |
SQLStatementRemove.executeStatement(java.sql.Connection conn,
Identity identity)
|
java.lang.Object |
SQLStatementStore.executeStatement(java.sql.Connection conn,
Identity identity,
ProposedEntity newentity,
ProposedEntity oldentity)
|
| Uses of Identity in org.exolab.castor.persist |
| Methods in org.exolab.castor.persist that return Identity | |
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. |
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. |
Identity |
ClassMolder.getActualIdentity(java.lang.ClassLoader loader,
java.lang.Object o)
Get the identity from a object of the base type. |
Identity |
OID.getIdentity()
Return the object's identity, if known. |
| Methods in org.exolab.castor.persist with parameters of type Identity | |
boolean |
ClassMolder.isDefaultIdentity(Identity identity)
Test if the specified identity is the default value of the type. |
void |
ClassMolder.setIdentity(TransactionContext tx,
java.lang.Object object,
Identity identity)
Set the identity into an object. |
void |
SQLRelationLoader.createRelation(java.sql.Connection conn,
Identity left,
Identity right)
|
void |
SQLRelationLoader.deleteRelation(java.sql.Connection conn,
Identity left)
|
void |
SQLRelationLoader.deleteRelation(java.sql.Connection conn,
Identity left,
Identity right)
|
| Constructors in org.exolab.castor.persist with parameters of type Identity | |
OID(ClassMolder molder,
Identity identity)
Constructor. |
|
OID(ClassMolder molder,
OID depends,
Identity identity)
Constructor. |
|
| Uses of Identity in org.exolab.castor.persist.spi |
| Fields in org.exolab.castor.persist.spi declared as Identity | |
protected Identity |
AbstractCallQuery._lastIdentity
|
| Methods in org.exolab.castor.persist.spi that return Identity | |
Identity |
AbstractCallQuery.nextIdentity(Identity identity)
|
Identity |
Persistence.create(Database database,
java.lang.Object conn,
ProposedEntity entity,
Identity identity)
Creates a new object in persistence storage. |
Identity |
PersistenceQuery.nextIdentity(Identity identity)
Returns the identity of the next object to be returned. |
| Methods in org.exolab.castor.persist.spi with parameters of type Identity | |
Identity |
AbstractCallQuery.nextIdentity(Identity identity)
|
Identity |
Persistence.create(Database database,
java.lang.Object conn,
ProposedEntity entity,
Identity identity)
Creates a new object in persistence storage. |
java.lang.Object |
Persistence.load(java.lang.Object conn,
ProposedEntity proposedObject,
Identity identity,
org.exolab.castor.mapping.AccessMode accessMode)
Loads the object from persistence storage. |
java.lang.Object |
Persistence.store(java.lang.Object conn,
Identity identity,
ProposedEntity newentity,
ProposedEntity oldentity)
Stores the object in persistent storage, given the object fields and its identity. |
void |
Persistence.delete(java.lang.Object conn,
Identity identity)
Deletes the object from persistent storage, given the object' identity. |
Identity |
PersistenceQuery.nextIdentity(Identity identity)
Returns the identity of the next object to be returned. |
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||