Uses of Class
org.castor.persist.ProposedEntity

Packages that use ProposedEntity
org.castor.persist   
org.castor.persist.resolver   
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 ProposedEntity in org.castor.persist
 

Methods in org.castor.persist with parameters of type ProposedEntity
 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 TransactionContext.fetch(org.exolab.castor.persist.ClassMolder, org.exolab.castor.persist.spi.Identity, org.exolab.castor.mapping.AccessMode) except that it will load the object only once within a transaction and always return the same instance.

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 TransactionContext.load(Identity,ProposedEntity,AccessMode) a QueryResults can be specified.

 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.
 

Constructors in org.castor.persist with parameters of type ProposedEntity
ProposedEntity(ProposedEntity proposedEntity)
          Creates an instance of this class based upon the values passed in.
 

Uses of ProposedEntity in org.castor.persist.resolver
 

Methods in org.castor.persist.resolver with parameters of type ProposedEntity
 void ManyRelationResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 void PersistanceCapableRelationResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 void PrimitiveResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 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.
 void SerializableResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 

Uses of ProposedEntity in org.exolab.castor.jdo.drivers
 

Methods in org.exolab.castor.jdo.drivers with parameters of type ProposedEntity
 java.lang.Object PostgreSQLCallQuery.fetch(ProposedEntity proposedObject)
           
 

Uses of ProposedEntity in org.exolab.castor.jdo.engine
 

Methods in org.exolab.castor.jdo.engine with parameters of type ProposedEntity
 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)
           
 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.
 java.lang.Object SQLQuery.fetch(ProposedEntity proposedObject)
           
 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 SQLStatementStore.executeStatement(java.sql.Connection conn, Identity identity, ProposedEntity newentity, ProposedEntity oldentity)
           
 

Uses of ProposedEntity in org.exolab.castor.persist
 

Methods in org.exolab.castor.persist with parameters of type ProposedEntity
 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)
           
 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)
           
 

Uses of ProposedEntity in org.exolab.castor.persist.spi
 

Methods in org.exolab.castor.persist.spi with parameters of type ProposedEntity
 java.lang.Object AbstractCallQuery.fetch(ProposedEntity proposedObject)
           
 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.
 java.lang.Object PersistenceQuery.fetch(ProposedEntity proposedObject)
          Loades the object.
 



Copyright 2008 null. All Rights Reserved.