Uses of Class
org.exolab.castor.jdo.PersistenceException

Packages that use PersistenceException
org.castor.persist   
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.jdo.keygen   
org.exolab.castor.jdo.oql   
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 PersistenceException in org.castor.persist
 

Methods in org.castor.persist that throw PersistenceException
 java.sql.Connection AbstractTransactionContext.getConnection(LockEngine engine)
          Return an open connection for the specified engine. Only one connection should be created for a given engine in the same transaction.
protected abstract  java.sql.Connection AbstractTransactionContext.createConnection(LockEngine engine)
           
 DbMetaInfo AbstractTransactionContext.getConnectionInfo(LockEngine engine)
          Returns meta-data related to the RDBMS used.
 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 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.

 QueryResults AbstractTransactionContext.query(LockEngine engine, PersistenceQuery query, org.exolab.castor.mapping.AccessMode accessMode, boolean scrollable)
          Perform a query using the query mechanism with the specified access mode. The query is performed in this transaction, and the returned query results can only be used while this transaction is open. It is assumed that the query mechanism is compatible with the persistence engine.
 void AbstractTransactionContext.markCreate(ClassMolder molder, java.lang.Object object, OID rootObjectOID)
          Walk a data object tree starting from the specified object, and mark all objects to be created.
 void AbstractTransactionContext.create(ClassMolder molder, java.lang.Object object, OID depended)
          Creates a new object in persistent storage. The object will be persisted only if the transaction commits. If an identity is provided then duplicate identity check happens in this method, if no identity is provided then duplicate identity check occurs when the transaction completes and the object is not visible in this transaction.
 boolean AbstractTransactionContext.markUpdate(ClassMolder molder, java.lang.Object object, OID depended)
          Update a new object in persistent storage and returns the object's OID. The object will be persisted only if the transaction commits. If an identity is provided then duplicate identity check happens in this method, if no identity is provided then duplicate identity check occurs when the transaction completes and the object is not visible in this transaction.

Update will also mark objects to be created if the TIMESTAMP equals to NO_TIMESTAMP.

 void AbstractTransactionContext.update(ClassMolder molder, java.lang.Object object, OID depended)
          Update a new object in persistent storage and returns the object's OID. The object will be persisted only if the transaction commits. If an identity is provided then duplicate identity check happens in this method, if no identity is provided then duplicate identity check occurs when the transaction completes and the object is not visible in this transaction.

Update will also mark objects to be created if the TIMESTAMP equals to NO_TIMESTAMP.

 void AbstractTransactionContext.delete(java.lang.Object object)
          Deletes the object from persistent storage. The deletion will take effect only if the transaction is committed, but the object is no longer viewable for the current transaction and locks for access from other transactions will block until this transaction completes. A write lock is acquired in order to assure the object can be deleted.
 void AbstractTransactionContext.writeLock(java.lang.Object object, int timeout)
          Acquire a write lock on the object. Read locks are implicitly available when the object is queried. A write lock is only granted for objects that are created or deleted or for objects loaded in exclusive mode - this method can obtain such a lock explicitly. If the object already has a write lock in this transaction or a read lock in this transaction but no read lock in any other transaction, a write lock is obtained. If this object has a read lock in any other transaction this method will block until the other transaction will release its lock. If the specified timeout has elapsed or a deadlock has been detected, an exception will be thrown but the current lock will be retained.
 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)
          
protected  java.sql.Connection GlobalTransactionContext.createConnection(LockEngine engine)
          
protected  java.sql.Connection LocalTransactionContext.createConnection(LockEngine engine)
          
 void ObjectTracker.markCreating(java.lang.Object object)
           
 java.sql.Connection TransactionContext.getConnection(LockEngine engine)
          Return an open connection for the specified engine.
 DbMetaInfo TransactionContext.getConnectionInfo(LockEngine engine)
          Returns meta-data related to the RDBMS used.
 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.
 QueryResults TransactionContext.query(LockEngine engine, PersistenceQuery query, org.exolab.castor.mapping.AccessMode accessMode, boolean scrollable)
          Perform a query using the query mechanism with the specified access mode.
 void TransactionContext.markCreate(ClassMolder molder, java.lang.Object object, OID rootObjectOID)
          Walk a data object tree starting from the specified object, and mark all objects to be created.
 void TransactionContext.create(ClassMolder molder, java.lang.Object object, OID depended)
          Creates a new object in persistent storage.
 boolean TransactionContext.markUpdate(ClassMolder molder, java.lang.Object object, OID depended)
          Update a new object in persistent storage and returns the object's OID.
 void TransactionContext.update(ClassMolder molder, java.lang.Object object, OID depended)
          Update a new object in persistent storage and returns the object's OID.
 void TransactionContext.delete(java.lang.Object object)
          Deletes the object from persistent storage.
 void TransactionContext.writeLock(java.lang.Object object, int timeout)
          Acquire a write lock on the object.
 boolean TransactionContext.isCached(ClassMolder molder, java.lang.Class cls, Identity identity)
           
 void TransactionContext.expireCache(ClassMolder molder, Identity identity)
          Expire object from the cache.
 

Uses of PersistenceException in org.castor.persist.resolver
 

Methods in org.castor.persist.resolver that throw PersistenceException
abstract  boolean ManyRelationResolver.markCreate(TransactionContext tx, OID oid, java.lang.Object object)
           
abstract  UpdateFlags ManyRelationResolver.preStore(TransactionContext tx, OID oid, java.lang.Object object, int timeout, java.lang.Object field)
           
abstract  void ManyRelationResolver.update(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode, java.lang.Object field)
           
abstract  void ManyRelationResolver.markDelete(TransactionContext tx, java.lang.Object object, java.lang.Object field)
           
 void ManyRelationResolver.revertObject(TransactionContext tx, OID oid, java.lang.Object object, java.lang.Object field)
           
 void ManyRelationResolver.expireCache(TransactionContext tx, java.lang.Object field)
           
 void ManyRelationResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
abstract  java.lang.Object ManyRelationResolver.postCreate(TransactionContext tx, OID oid, java.lang.Object object, java.lang.Object field, Identity createdId)
           
 boolean ManyToManyRelationResolver.markCreate(TransactionContext tx, OID oid, java.lang.Object object)
           
 void ManyToManyRelationResolver.markDelete(TransactionContext tx, java.lang.Object object, java.lang.Object field)
           
 UpdateFlags ManyToManyRelationResolver.preStore(TransactionContext tx, OID oid, java.lang.Object object, int timeout, java.lang.Object field)
           
 void ManyToManyRelationResolver.update(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode, java.lang.Object field)
           
 java.lang.Object ManyToManyRelationResolver.postCreate(TransactionContext tx, OID oid, java.lang.Object object, java.lang.Object field, Identity createdId)
           
 boolean ManyToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 boolean OneToManyRelationResolver.markCreate(TransactionContext tx, OID oid, java.lang.Object object)
           
 void OneToManyRelationResolver.markDelete(TransactionContext tx, java.lang.Object object, java.lang.Object field)
           
 UpdateFlags OneToManyRelationResolver.preStore(TransactionContext tx, OID oid, java.lang.Object object, int timeout, java.lang.Object field)
           
 void OneToManyRelationResolver.update(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode, java.lang.Object field)
           
 boolean OneToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 boolean PersistanceCapableRelationResolver.markCreate(TransactionContext tx, OID oid, java.lang.Object object)
           
 UpdateFlags PersistanceCapableRelationResolver.preStore(TransactionContext tx, OID oid, java.lang.Object object, int timeout, java.lang.Object field)
           
 void PersistanceCapableRelationResolver.update(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode, java.lang.Object field)
           
 void PersistanceCapableRelationResolver.markDelete(TransactionContext tx, java.lang.Object object, java.lang.Object field)
           
 void PersistanceCapableRelationResolver.revertObject(TransactionContext tx, OID oid, java.lang.Object object, java.lang.Object field)
           
 void PersistanceCapableRelationResolver.expireCache(TransactionContext tx, java.lang.Object field)
           
 void PersistanceCapableRelationResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 boolean PersistanceCapableRelationResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 boolean PrimitiveResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 java.lang.Object ResolverStrategy.create(TransactionContext tx, java.lang.Object object)
          Create an object of the base class with specified identity into the persistence storage.
 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.
 boolean ResolverStrategy.markCreate(TransactionContext tx, OID oid, java.lang.Object object)
          Walk the object model and mark object that should be created.
 UpdateFlags ResolverStrategy.preStore(TransactionContext tx, OID oid, java.lang.Object object, int timeout, java.lang.Object field)
          Check the object for modification.
 java.lang.Object ResolverStrategy.store(TransactionContext tx, java.lang.Object object, java.lang.Object field)
          Store a data object into the persistent storage of the base class of this ClassMolder.
 void ResolverStrategy.update(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode, java.lang.Object field)
          Update the object which loaded or created in the other transaction to the persistent storage.
 boolean ResolverStrategy.updateWhenNoTimestampSet(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
          Update the object which loaded or created in the other transaction to the persistent storage.
 void ResolverStrategy.markDelete(TransactionContext tx, java.lang.Object object, java.lang.Object field)
          Prepare to delete an object with the specified identity.
 void ResolverStrategy.revertObject(TransactionContext tx, OID oid, java.lang.Object object, java.lang.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 ResolverStrategy.expireCache(TransactionContext tx, java.lang.Object field)
          Inspect the fields stored in the object passed as an argument for contained objects.
 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.
 java.lang.Object SerializableResolver.create(TransactionContext tx, java.lang.Object object)
           
 UpdateFlags SerializableResolver.preStore(TransactionContext tx, OID oid, java.lang.Object object, int timeout, java.lang.Object field)
           
 java.lang.Object SerializableResolver.store(TransactionContext tx, java.lang.Object object, java.lang.Object field)
           
 void SerializableResolver.revertObject(TransactionContext tx, OID oid, java.lang.Object object, java.lang.Object field)
           
 void SerializableResolver.load(TransactionContext tx, OID oid, ProposedEntity proposedObject, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 boolean SerializableResolver.updateWhenNoTimestampSet(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
           
 

Uses of PersistenceException in org.exolab.castor.jdo
 

Subclasses of PersistenceException in org.exolab.castor.jdo
 class ClassNotPersistenceCapableException
          Exception thrown to indicate objects of this class are not persistent capable.
 class DatabaseNotFoundException
          This exception is thrown when attempting to open a database that does not exist.
 class DuplicateIdentityException
          Exception indicating that a duplicate identity has been found and an object with the same identity already exists in persistent storage.
 class FatalPersistenceException
          A fatal exception indicates the persistence engine is no longer usable.
 class LockNotGrantedException
          Exception thrown when failed to acquire a lock on an object, a timeout occured waiting to acquire the lock, or a deadlock has been detected.
 class ObjectDeletedException
          This exception is thrown when accessing an object that was deleted.
 class ObjectModifiedException
          Indicates transaction has been aborted as a result of object being modified by a concurrent transaction.
 class ObjectNotFoundException
          An attempt to load an object failed, an object of that type with that primary key was not found in persistent storage.
 class ObjectNotPersistentException
          Exception indicating object is not persistent.
 class QueryException
          Reports an exception with the query, either syntax, query parameters or inability to perform the query against the persistence engine.
 class TransactionAbortedException
          Informs that the user transaction has been explicitly aborted by the database due to some failure and the reason for that failure.
 class TransactionNotInProgressException
          Indicates the operation cannot be performed since a transaction is not in progress.
 

Methods in org.exolab.castor.jdo that throw PersistenceException
 boolean CacheManager.isCached(java.lang.Class cls, java.lang.Object identity)
          Indicates whether am instance of cls is currently cached.
 void CacheManager.expireCache(java.lang.Class type, java.lang.Object identity)
          Expires a type with a specific identity from cache.
 void CacheManager.expireCache(java.lang.Class type, java.lang.Object[] identity)
          Expires a type with specific identities from cache.
 OQLQuery Database.getOQLQuery(java.lang.String oql)
          Creates an OQL query from the supplied statement.
 OQLQuery Database.getNamedQuery(java.lang.String name)
          Creates an OQL query based upon a named query as defined in the mapping file.
 java.lang.Object Database.load(java.lang.Class type, java.lang.Object identity)
          Load an object of the specified type and given identity.
 java.lang.Object Database.load(java.lang.Class type, java.lang.Object identity, org.exolab.castor.mapping.AccessMode mode)
           Load an object of the specified type and given identity.
 java.lang.Object Database.load(java.lang.Class type, java.lang.Object identity, java.lang.Object object)
           Load an object of the specified type and given identity into a given instance of object.
 void Database.create(java.lang.Object object)
          Creates a new object in persistent storage.
 void Database.remove(java.lang.Object object)
          Removes the object from persistent storage.
 void Database.update(java.lang.Object object)
          Update a data object which is queried/loaded/created in another transaction.
 void Database.lock(java.lang.Object object)
          Acquire a soft write lock on the object.
 void Database.begin()
          Begin a new transaction.
 boolean Database.isLocked(java.lang.Class cls, java.lang.Object identity)
          Returns true if the specified object is currently locked.
 void Database.close()
          Closes the database.
 Identity Database.getIdentity(java.lang.Object object)
          Returns the object's identity.
 java.sql.Connection Database.getJdbcConnection()
          Gets the underlying JDBC connection.
 Database DataObjects.getDatabase()
          Opens and returns a connection to the database.
 Database JDO.getDatabase()
          Deprecated. Opens and returns a connection to the database.
 Database JDOManager.getDatabase()
          Opens and returns a connection to the database.
 void OQLQuery.create(java.lang.String query)
          Creates an OQL query from the supplied statement.
 QueryResults Query.execute()
          Execute the query.
 QueryResults Query.execute(boolean scrollable)
          This is used for cursor support.
 QueryResults Query.execute(org.exolab.castor.mapping.AccessMode accessMode)
          Execute the query.
 QueryResults Query.execute(org.exolab.castor.mapping.AccessMode accessMode, boolean scrollable)
          This is used for cursor support.
 boolean QueryResults.hasMore()
          Returns true if there are any more results in the result set.
 java.lang.Object QueryResults.next()
          Returns the next result in the result set.
 boolean QueryResults.absolute(int row)
          moves the result of the query to the absolute position in the resultset.
 int QueryResults.size()
          Finds the size of the resulting resultset from the query.
 

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

Methods in org.exolab.castor.jdo.drivers that throw PersistenceException
protected  void MultiRSCallQuery.execute(java.lang.Object conn, org.exolab.castor.mapping.AccessMode accessMode)
           
 boolean PostgreSQLCallQuery.absolute(int row)
           
 int PostgreSQLCallQuery.size()
           
 void PostgreSQLCallQuery.execute(java.lang.Object conn, org.exolab.castor.mapping.AccessMode accessMode, boolean scrollable)
           
 Identity PostgreSQLCallQuery.nextIdentity(Identity identity)
           
 java.lang.Object PostgreSQLCallQuery.fetch(ProposedEntity proposedObject)
           
protected  void ReturnedRSCallQuery.execute(java.lang.Object conn, org.exolab.castor.mapping.AccessMode accessMode)
           
 

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

Methods in org.exolab.castor.jdo.engine that throw PersistenceException
abstract  void AbstractDatabaseImpl.close()
          Closes the database. If a client transaction is in progress the transaction will be rolled back and an exception thrown. If an app-server transaction is in progress, the transaction will commit/rollback when triggered by the application server.
 boolean AbstractDatabaseImpl.isLocked(java.lang.Class cls, java.lang.Object identity)
          Returns true if the specified object is currently locked.
 java.lang.Object AbstractDatabaseImpl.load(java.lang.Class type, java.lang.Object identity)
          Load an object of the specified type and given identity. Once loaded the object is persistent. Calling this method with the same identity in the same transaction will return the same object. This method is equivalent to a query that returns a single object. If the identity spans on more than one field, all of the identity fields can be wrapped in a Complex object.
 java.lang.Object AbstractDatabaseImpl.load(java.lang.Class type, java.lang.Object identity, java.lang.Object object)
          

Load an object of the specified type and given identity into a given instance of object. Once loaded the object is persistent. Calling this method with the same identity in the same transaction will return the same object. This method is equivalent to a query that returns a single object. If the identity spans on more than one field, all of the identity fields can be wrapped in a Complex object.

 java.lang.Object AbstractDatabaseImpl.load(java.lang.Class type, java.lang.Object identity, org.exolab.castor.mapping.AccessMode mode)
          

Load an object of the specified type and given identity. Once loaded the object is persistent. Calling this method with the same identity in the same transaction will return the same object. This method is equivalent to a query that returns a single object.

 void AbstractDatabaseImpl.create(java.lang.Object object)
          Creates a new object in persistent storage. The object will be persisted only if the transaction commits.

If the object has an identity then duplicate identity check happens in this method, and the object is visible to queries in this transaction. If the identity is null, duplicate identity check occurs when the transaction completes and the object is not visible to queries until the transaction commits.

 void AbstractDatabaseImpl.update(java.lang.Object object)
          Update a data object which is queried/loaded/created in another transaction. This method is used only for long transaction support. Calling this method for data object queried/loaded/created in the same transaction results in Exception.

For example, the data object may be sent to a client application and dispayed to a user. After that the objects is being modified in the client application, the object returns back and is update to the database in the second transaction.

See Long Transaction on Castor website.

 void AbstractDatabaseImpl.remove(java.lang.Object object)
          Removes the object from persistent storage. The deletion will take effect only if the transaction is committed, but the object is no longer visible to queries in the current transaction and locks for access from other transactions will block until this transaction completes.
 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.

 void AbstractDatabaseImpl.lock(java.lang.Object object)
          Acquire a soft write lock on the object. Read locks are implicitly available when the object is queried. A write lock is only granted for objects that are created or deleted or for objects loaded in exclusive mode - this method can obtain such a lock explicitly.

A soft lock is acquired in memory, not in the database. To acquire a lock in the database, use the locked access mode.

If the object already has a write lock in this transaction or a read lock in this transaction but no read lock in any other transaction, a write lock is obtained. If this object has a read lock in any other transaction this method will block until the other transaction will release its lock. If the timeout has elapsed or a deadlock has been detected, an exception will be thrown but the current lock will be retained.

 OQLQuery AbstractDatabaseImpl.getNamedQuery(java.lang.String name)
          Creates an OQL query based upon a named query as defined in the mapping file. OQLQuery.create(java.lang.String)
 OQLQuery AbstractDatabaseImpl.getOQLQuery(java.lang.String oql)
          Creates an OQL query from the supplied statement.
abstract  void AbstractDatabaseImpl.begin()
          Begin a new transaction. A transaction must be open in order to query and persist objects.
abstract  java.sql.Connection AbstractDatabaseImpl.getJdbcConnection()
          Gets the underlying JDBC connection. This is for advanced use only. Please make sure that you never close this Connection instance, as it will be closed by Castor.
 void GlobalDatabaseImpl.close()
           
 void GlobalDatabaseImpl.begin()
           
 java.sql.Connection GlobalDatabaseImpl.getJdbcConnection()
           
 void LocalDatabaseImpl.close()
           
 void LocalDatabaseImpl.begin()
           
 java.sql.Connection LocalDatabaseImpl.getJdbcConnection()
           
 void OQLQueryImpl.create(java.lang.String oql)
           
 QueryResults OQLQueryImpl.execute()
           
 QueryResults OQLQueryImpl.execute(boolean scrollable)
           
 QueryResults OQLQueryImpl.execute(org.exolab.castor.mapping.AccessMode accessMode)
           
 QueryResults OQLQueryImpl.execute(org.exolab.castor.mapping.AccessMode accessMode, boolean scrollable)
           
 boolean OQLQueryImpl.OQLEnumeration.absolute(int row)
           
 int OQLQueryImpl.OQLEnumeration.size()
           
 boolean OQLQueryImpl.OQLEnumeration.hasMore()
           
 boolean OQLQueryImpl.OQLEnumeration.hasMore(boolean skipError)
           
 java.lang.Object OQLQueryImpl.OQLEnumeration.next()
           
 boolean SimpleQueryExecutor.SimpleQueryResults.absolute(int row)
          use the jdbc 2.0 method to move to an absolute position in the resultset.
 int SimpleQueryExecutor.SimpleQueryResults.size()
          Uses the underlying db's cursors to most to the last row in the result set, get the row number via getRow(), then move back to where ever the user was positioned in the resultset.
 boolean SimpleQueryExecutor.SimpleQueryResults.hasMore()
           
 java.lang.Object SimpleQueryExecutor.SimpleQueryResults.next()
           
 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.
 boolean SQLQuery.absolute(int row)
          Move to an absolute position within a ResultSet.
 int SQLQuery.size()
          Uses the underlying db's cursors to move to the last row in the result set, get the row number via getRow(), then move back to where ever the user was positioned in the resultset.
 void SQLQuery.execute(java.lang.Object conn, org.exolab.castor.mapping.AccessMode accessMode, boolean scrollable)
           
 Identity SQLQuery.nextIdentity(Identity identity)
           
 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 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 PersistenceException in org.exolab.castor.jdo.keygen
 

Methods in org.exolab.castor.jdo.keygen that throw PersistenceException
 java.lang.Object HighLowKeyGenerator.generateKey(java.sql.Connection conn, java.lang.String tableName, java.lang.String primKeyName, java.util.Properties props)
           
 java.lang.Object IdentityKeyGenerator.generateKey(java.sql.Connection conn, java.lang.String tableName, java.lang.String primKeyName, java.util.Properties props)
           
 java.lang.Object MaxKeyGenerator.generateKey(java.sql.Connection conn, java.lang.String tableName, java.lang.String primKeyName, java.util.Properties props)
          Generate a new key for the specified table as "MAX(primary_key) + 1".
 java.lang.Object SequenceKeyGenerator.generateKey(java.sql.Connection conn, java.lang.String tableName, java.lang.String primKeyName, java.util.Properties props)
           
 java.lang.Object UUIDKeyGenerator.generateKey(java.sql.Connection conn, java.lang.String tableName, java.lang.String primKeyName, java.util.Properties props)
          Generate a new unique key for the specified table.
 

Uses of PersistenceException in org.exolab.castor.jdo.oql
 

Subclasses of PersistenceException in org.exolab.castor.jdo.oql
 class InvalidCharException
          Exception thrown to indicate that an invalid character was encountered by the Lexer.
 class OQLSyntaxException
          Exception thrown to indicate that invalid syntax was encountered by the Parser.
 class SyntaxNotSupportedException
          Exception thrown to indicate that a feature is not supported by a particular database.
 

Uses of PersistenceException in org.exolab.castor.persist
 

Subclasses of PersistenceException in org.exolab.castor.persist
 class ObjectDeletedWaitingForLockException
          Thrown to indicate that a lock attempt has failed due to object being deleted by a concurrent transaction.
 

Methods in org.exolab.castor.persist that throw PersistenceException
 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)
           
 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.
 void ClassMolder.markCreate(TransactionContext tx, OID oid, DepositBox locker, java.lang.Object object)
          Walk the object model and mark object that should be created.
 boolean ClassMolder.preStore(TransactionContext tx, OID oid, DepositBox locker, java.lang.Object object, int timeout)
          Check the object for modification.
 void ClassMolder.store(TransactionContext tx, OID oid, DepositBox locker, java.lang.Object object)
          Store a data object into the persistent storage of the base class of this ClassMolder.
 boolean ClassMolder.update(TransactionContext tx, OID oid, DepositBox locker, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode)
          Update the object which loaded or created in the other transaction to the persistent storage.
 void ClassMolder.delete(TransactionContext tx, OID oid)
          Delete an object of the base type from the persistence storage.
 void ClassMolder.markDelete(TransactionContext tx, OID oid, DepositBox locker, java.lang.Object object)
          Prepare to delete an object with the specified identity.
 void ClassMolder.revertObject(TransactionContext tx, OID oid, DepositBox locker, java.lang.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 ClassMolder.setIdentity(TransactionContext tx, java.lang.Object object, Identity identity)
          Set the identity into an object.
 void ClassMolder.expireCache(TransactionContext tx, ObjectLock locker)
          Inspect the fields stored in the object passed as an argument for contained objects.
 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)
           
 void LockEngine.markCreate(TransactionContext tx, OID oid, java.lang.Object object)
          Mark an object and its related or dependent object to be created.
 OID LockEngine.create(TransactionContext tx, OID oid, java.lang.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 LockEngine.markDelete(TransactionContext tx, OID oid, java.lang.Object object, int timeout)
           
 boolean LockEngine.update(TransactionContext tx, OID oid, java.lang.Object object, org.exolab.castor.mapping.AccessMode suggestedAccessMode, int timeout)
          Updates an existing object to this engine.
 OID LockEngine.preStore(TransactionContext tx, OID oid, java.lang.Object object, int timeout)
          Called at transaction commit to store an object that has been loaded during the transaction.
 void LockEngine.store(TransactionContext tx, OID oid, java.lang.Object object)
           
 void LockEngine.writeLock(TransactionContext tx, OID oid, int timeout)
          Acquire a write lock on the object.
 void LockEngine.revertObject(TransactionContext tx, OID oid, java.lang.Object object)
          Reverts an object to the cached copy given the object's OID.
 boolean LockEngine.expireCache(TransactionContext tx, OID oid, int timeout)
          Expire object from the cache.
 java.lang.Object QueryResults.nextIdentity()
          Returns the identity of the next object to be returned.
 java.lang.Object QueryResults.fetch()
          Loads the specified object with the identity.
 boolean QueryResults.absolute(int row)
           
 int QueryResults.size()
           
 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)
           
 

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

Methods in org.exolab.castor.persist.spi that throw PersistenceException
 java.lang.Object AbstractCallQuery.fetch(ProposedEntity proposedObject)
           
 boolean AbstractCallQuery.absolute(int row)
           
 int AbstractCallQuery.size()
           
 void AbstractCallQuery.execute(java.lang.Object conn, org.exolab.castor.mapping.AccessMode accessMode, boolean scrollable)
           
protected abstract  void AbstractCallQuery.execute(java.lang.Object conn, org.exolab.castor.mapping.AccessMode accessMode)
           
 Identity AbstractCallQuery.nextIdentity(Identity identity)
           
 java.lang.Object KeyGenerator.generateKey(java.sql.Connection conn, java.lang.String tableName, java.lang.String primKeyName, java.util.Properties props)
          Generate a new key for the specified table.
 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.
 void PersistenceQuery.execute(java.lang.Object conn, org.exolab.castor.mapping.AccessMode accessMode, boolean scrollable)
          Execute the query with the give connection and lock type.
 Identity PersistenceQuery.nextIdentity(Identity identity)
          Returns the identity of the next object to be returned.
 java.lang.Object PersistenceQuery.fetch(ProposedEntity proposedObject)
          Loades the object.
 boolean PersistenceQuery.absolute(int row)
          Moves the result of the query to the absolute position in the resultset.
 int PersistenceQuery.size()
          Finds the size of the resulting resultset from the query.
 



Copyright 2008 null. All Rights Reserved.