Package | Description |
---|---|
org.castor.cpa.persistence.sql.engine | |
org.castor.cpa.persistence.sql.keygen | |
org.castor.cpa.persistence.sql.keygen.typehandler | |
org.castor.persist | |
org.castor.persist.resolver | |
org.exolab.castor.jdo |
The Java Data Objects API
|
org.exolab.castor.jdo.engine |
Implementation of the Castor JDO engine.
|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
SQLStatementDelete.executeStatement(CastorConnection conn,
Identity identity)
Execute statement to remove entity with given identity from database using given JDBC
connection.
|
Object |
SQLStatementUpdate.executeStatement(CastorConnection conn,
Identity identity,
ProposedEntity newentity,
ProposedEntity oldentity)
Stores the identity to the database using JDBC Connection.
|
Object |
SQLStatementInsert.executeStatement(Database database,
CastorConnection conn,
Identity identity,
ProposedEntity entity)
Executes the SQL statement after preparing the PreparedStatement.
|
void |
SQLStatementInsertCheck.insertDuplicateKeyCheck(CastorConnection conn,
Identity identity)
Performs check for Duplicate primary key.
|
void |
SQLStatementUpdateCheck.updateFailureCheck(CastorConnection conn,
Identity identity)
This function checks whether the object specified in the statement has been previously
removed from the persistent storage or has been modified.
|
Modifier and Type | Method and Description |
---|---|
void |
NoKeyGenerator.bindIdentity(Identity internalIdentity,
CastorStatement stmt)
Binds the identity values.
|
void |
AbstractBeforeKeyGenerator.bindIdentity(Identity internalIdentity,
CastorStatement stmt)
Binds the identity values.
|
Object |
NoKeyGenerator.executeStatement(Database database,
CastorConnection conn,
Identity identity,
ProposedEntity entity)
Executes the SQL statement after preparing the PreparedStatement.
|
Object |
SequenceDuringKeyGenerator.executeStatement(Database database,
CastorConnection conn,
Identity identity,
ProposedEntity entity)
Executes the SQL statement after preparing the PreparedStatement.
|
Object |
KeyGenerator.executeStatement(Database database,
CastorConnection conn,
Identity identity,
ProposedEntity entity)
Executes the SQL statement after preparing the PreparedStatement.
|
Object |
AbstractBeforeKeyGenerator.executeStatement(Database database,
CastorConnection conn,
Identity identity,
ProposedEntity entity)
Executes the SQL statement after preparing the PreparedStatement.
|
Object |
AbstractAfterKeyGenerator.executeStatement(Database database,
CastorConnection conn,
Identity identity,
ProposedEntity entity)
Executes the SQL statement after preparing the PreparedStatement.
|
Object |
IdentityKeyGenerator.generateKey(Connection conn,
String tableName,
String primKeyName)
Generate a new key for the specified table.
|
Object |
UUIDKeyGenerator.generateKey(Connection conn,
String tableName,
String primKeyName)
Generate a new key for the specified table.
|
Object |
NoKeyGenerator.generateKey(Connection conn,
String tableName,
String primKeyName)
Generate a new key for the specified table.
|
Object |
SequenceDuringKeyGenerator.generateKey(Connection conn,
String tableName,
String primKeyName) |
Object |
KeyGenerator.generateKey(Connection conn,
String tableName,
String primKeyName)
Generate a new key for the specified table.
|
Object |
SequenceAfterKeyGenerator.generateKey(Connection conn,
String tableName,
String primKeyName) |
Object |
TableKeyGenerator.generateKey(Connection connection,
String tableName,
String primKeyName) |
Object |
MaxKeyGenerator.generateKey(Connection conn,
String tableName,
String primKeyName)
Generate a new key for the specified table as "MAX(primary_key) + 1".
|
Object |
HighLowKeyGenerator.generateKey(Connection conn,
String tableName,
String primKeyName)
Generate a new key for the specified table.
|
Object |
SequenceBeforeKeyGenerator.generateKey(Connection conn,
String tableName,
String primKeyName) |
Connection |
AbstractKeyGenerator.getSeparateConnection(Database database)
Operning new JDBC Connection.
|
void |
HighLowValueHandler.init(ResultSet rs) |
Modifier and Type | Method and Description |
---|---|
String |
KeyGeneratorTypeHandlerString.getNextValue(ResultSet rs)
Gets the value from resultset by calling getValue method and then
calls the increment method to increment the extracted value.
|
Integer |
KeyGeneratorTypeHandlerInteger.getNextValue(ResultSet rs)
Gets the value from resultset by calling getValue method and then
calls the increment method to increment the extracted value.
|
Short |
KeyGeneratorTypeHandlerShort.getNextValue(ResultSet rs)
Gets the value from resultset by calling getValue method and then
calls the increment method to increment the extracted value.
|
BigDecimal |
KeyGeneratorTypeHandlerBigDecimal.getNextValue(ResultSet rs)
Gets the value from resultset by calling getValue method and then
calls the increment method to increment the extracted value.
|
Long |
KeyGeneratorTypeHandlerLong.getNextValue(ResultSet rs)
Gets the value from resultset by calling getValue method and then
calls the increment method to increment the extracted value.
|
T |
KeyGeneratorTypeHandler.getNextValue(ResultSet rs)
Gets the value from resultset by calling getValue method and then
calls the increment method to increment the extracted value.
|
String |
KeyGeneratorTypeHandlerString.getValue(ResultSet rs)
Reads the resultset and return the extracted typehandler value from the
resultset.
|
Integer |
KeyGeneratorTypeHandlerInteger.getValue(ResultSet rs)
Reads the resultset and return the extracted typehandler value from the
resultset.
|
Short |
KeyGeneratorTypeHandlerShort.getValue(ResultSet rs)
Reads the resultset and return the extracted typehandler value from the
resultset.
|
BigDecimal |
KeyGeneratorTypeHandlerBigDecimal.getValue(ResultSet rs)
Reads the resultset and return the extracted typehandler value from the
resultset.
|
Long |
KeyGeneratorTypeHandlerLong.getValue(ResultSet rs)
Reads the resultset and return the extracted typehandler value from the
resultset.
|
T |
KeyGeneratorTypeHandler.getValue(ResultSet rs)
Reads the resultset and return the extracted typehandler value from the
resultset.
|
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.delete(Object object)
Deletes the object from persistent storage.
|
void |
TransactionContext.delete(Object object)
Deletes the object from 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) |
Connection |
TransactionContext.getConnection(LockEngine engine)
Return an open connection for the specified engine.
|
DbMetaInfo |
AbstractTransactionContext.getConnectionInfo(LockEngine engine)
Returns meta-data related to the RDBMS used.
|
DbMetaInfo |
TransactionContext.getConnectionInfo(LockEngine engine)
Returns meta-data related to the RDBMS used.
|
boolean |
AbstractTransactionContext.isCached(ClassMolder molder,
Class cls,
Identity identity) |
boolean |
TransactionContext.isCached(ClassMolder molder,
Class cls,
Identity identity) |
Object |
AbstractTransactionContext.load(Identity identity,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode)
Load an object for use within the transaction.
|
Object |
TransactionContext.load(Identity identity,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode)
Load an object for use within the transaction.
|
Object |
AbstractTransactionContext.load(Identity identity,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode,
QueryResults results)
Load an object for use within the transaction.
|
Object |
TransactionContext.load(Identity identity,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode,
QueryResults results)
Load an object for use within the transaction.
|
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.
|
void |
ObjectTracker.markCreating(Object object) |
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.
|
QueryResults |
AbstractTransactionContext.query(LockEngine engine,
PersistenceQuery query,
AccessMode accessMode,
boolean scrollable)
Perform a query using the query mechanism with the specified access mode.
|
QueryResults |
TransactionContext.query(LockEngine engine,
PersistenceQuery query,
AccessMode accessMode,
boolean scrollable)
Perform a query using the query mechanism with the specified access mode.
|
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.
|
void |
AbstractTransactionContext.writeLock(Object object,
int timeout)
Acquire a write lock on the object.
|
void |
TransactionContext.writeLock(Object object,
int timeout)
Acquire a write lock on the object.
|
Modifier and Type | Method and Description |
---|---|
Object |
ResolverStrategy.create(TransactionContext tx,
Object object)
Create an object of the base class with specified identity into the
persistence storage.
|
Object |
SerializableResolver.create(TransactionContext tx,
Object object) |
void |
ResolverStrategy.expireCache(TransactionContext tx,
Object field)
Inspect the fields stored in the object passed as an argument for
contained objects.
|
void |
PersistanceCapableRelationResolver.expireCache(TransactionContext tx,
Object field) |
void |
ManyRelationResolver.expireCache(TransactionContext tx,
Object field) |
void |
ResolverStrategy.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode)
Load an object with specified identity from the persistent storage.
|
void |
PersistanceCapableRelationResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode) |
void |
SerializableResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode) |
void |
ManyRelationResolver.load(TransactionContext tx,
OID oid,
ProposedEntity proposedObject,
AccessMode suggestedAccessMode) |
boolean |
ManyToManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
boolean |
OneToManyRelationResolver.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 |
PersistanceCapableRelationResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
abstract boolean |
ManyRelationResolver.markCreate(TransactionContext tx,
OID oid,
Object object) |
void |
ManyToManyRelationResolver.markDelete(TransactionContext tx,
Object object,
Object field) |
void |
OneToManyRelationResolver.markDelete(TransactionContext tx,
Object object,
Object field) |
void |
ResolverStrategy.markDelete(TransactionContext tx,
Object object,
Object field)
Prepare to delete an object with the specified identity.
|
void |
PersistanceCapableRelationResolver.markDelete(TransactionContext tx,
Object object,
Object field) |
abstract void |
ManyRelationResolver.markDelete(TransactionContext tx,
Object object,
Object field) |
Object |
ManyToManyRelationResolver.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.
|
abstract Object |
ManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId) |
UpdateFlags |
ManyToManyRelationResolver.preStore(TransactionContext tx,
OID oid,
Object object,
int timeout,
Object field) |
UpdateFlags |
OneToManyRelationResolver.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 |
PersistanceCapableRelationResolver.preStore(TransactionContext tx,
OID oid,
Object object,
int timeout,
Object field) |
UpdateFlags |
SerializableResolver.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) |
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 |
PersistanceCapableRelationResolver.revertObject(TransactionContext tx,
OID oid,
Object object,
Object field) |
void |
SerializableResolver.revertObject(TransactionContext tx,
OID oid,
Object object,
Object field) |
void |
ManyRelationResolver.revertObject(TransactionContext tx,
OID oid,
Object object,
Object field) |
Object |
ResolverStrategy.store(TransactionContext tx,
Object object,
Object field)
Store a data object into the persistent storage of the base class of this
ClassMolder.
|
Object |
SerializableResolver.store(TransactionContext tx,
Object object,
Object field) |
void |
ManyToManyRelationResolver.update(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode,
Object field) |
void |
OneToManyRelationResolver.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 |
PersistanceCapableRelationResolver.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) |
boolean |
ManyToManyRelationResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
boolean |
PrimitiveResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
boolean |
OneToManyRelationResolver.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 |
PersistanceCapableRelationResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
boolean |
SerializableResolver.updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode) |
Modifier and Type | Class and Description |
---|---|
class |
ClassNotPersistenceCapableException
Exception thrown to indicate objects of this class are not persistent
capable.
|
class |
ConnectionFailedException
An attempt to open a JDBC connection failed.
|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
QueryResults.absolute(int row)
moves the result of the query to the absolute position in the
resultset.
|
void |
Database.begin()
Begin a new transaction.
|
void |
Database.close()
Closes the database.
|
void |
Database.create(Object object)
Creates a new object in persistent storage.
|
void |
OQLQuery.create(String query)
Creates an OQL query from the supplied statement.
|
QueryResults |
Query.execute()
Execute the query.
|
QueryResults |
Query.execute(AccessMode accessMode)
Execute the query.
|
QueryResults |
Query.execute(AccessMode accessMode,
boolean scrollable)
This is used for cursor support.
|
QueryResults |
Query.execute(boolean scrollable)
This is used for cursor support.
|
void |
CacheManager.expireCache(Class type,
Object identity)
Expires a type with a specific identity from cache.
|
void |
CacheManager.expireCache(Class type,
Object[] identity)
Expires a type with specific identities from cache.
|
Database |
DataObjects.getDatabase()
Opens and returns a connection to the database.
|
Database |
JDOManager.getDatabase()
Opens and returns a connection to the database.
|
Identity |
Database.getIdentity(Object object)
Returns the object's identity.
|
Connection |
Database.getJdbcConnection()
Gets the underlying JDBC connection.
|
OQLQuery |
Database.getNamedQuery(String name)
Creates an OQL query based upon a named query as defined in the
mapping file.
|
OQLQuery |
Database.getNativeQuery(String sql,
Class<?> result)
Creates an OQL query instance based upon a native SQL query and a returning
(resulting) class.
|
OQLQuery |
Database.getOQLQuery(String oql)
Creates an OQL query from the supplied statement.
|
boolean |
QueryResults.hasMore()
Returns true if there are any more results in the result set.
|
boolean |
CacheManager.isCached(Class cls,
Object identity)
Indicates whether am instance of cls is currently cached.
|
boolean |
Database.isLocked(Class cls,
Object identity)
Returns true if the specified object is currently locked.
|
<T> T |
Database.load(Class<T> type,
Object identity)
Load an object of the specified type and given identity.
|
<T> T |
Database.load(Class<T> type,
Object identity,
AccessMode mode)
Load an object of the specified type and given identity.
|
<T> T |
Database.load(Class<T> type,
Object identity,
Object object)
Load an object of the specified type and given identity into
a given instance of object.
|
void |
Database.lock(Object object)
Acquire a soft write lock on the object.
|
Object |
QueryResults.next()
Returns the next result in the result set.
|
void |
Database.remove(Object object)
Removes the object from persistent storage.
|
int |
QueryResults.size()
Finds the size of the resulting resultset from the query.
|
void |
Database.update(Object object)
Update a data object which is queried/loaded/created in another
transaction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SimpleQueryExecutor.SimpleQueryResults.absolute(int row)
use the jdbc 2.0 method to move to an absolute position in the
resultset.
|
boolean |
SQLQuery.absolute(int row)
Move to an absolute position within a ResultSet.
|
void |
LocalDatabaseImpl.begin() |
void |
GlobalDatabaseImpl.begin() |
abstract void |
AbstractDatabaseImpl.begin()
Begin a new transaction.
|
void |
LocalDatabaseImpl.close() |
void |
GlobalDatabaseImpl.close() |
abstract void |
AbstractDatabaseImpl.close()
Closes the database.
|
Identity |
SQLEngine.create(Database database,
Object conn,
ProposedEntity entity,
Identity identity) |
void |
AbstractDatabaseImpl.create(Object object)
Creates a new object in persistent storage.
|
void |
OQLQueryImpl.create(String oql) |
void |
SQLEngine.delete(Object conn,
Identity identity) |
QueryResults |
OQLQueryImpl.execute() |
QueryResults |
OQLQueryImpl.execute(AccessMode accessMode) |
QueryResults |
OQLQueryImpl.execute(AccessMode accessMode,
boolean scrollable) |
QueryResults |
OQLQueryImpl.execute(boolean scrollable) |
void |
SQLQuery.execute(Object conn,
AccessMode accessMode,
boolean scrollable) |
void |
SQLStatementLoad.executeStatement(CastorConnection conn,
Identity identity,
ProposedEntity entity,
AccessMode accessMode)
Execute statement to load entity with given identity from database using given JDBC
connection.
|
void |
SQLQuery.fetch(ProposedEntity proposedObject) |
Identity |
AbstractDatabaseImpl.getIdentity(Object object)
Returns the object's identity.
|
Connection |
LocalDatabaseImpl.getJdbcConnection() |
Connection |
GlobalDatabaseImpl.getJdbcConnection() |
abstract Connection |
AbstractDatabaseImpl.getJdbcConnection()
Gets the underlying JDBC connection.
|
OQLQuery |
AbstractDatabaseImpl.getNamedQuery(String name)
Creates an OQL query based upon a named query as defined in the
mapping file.
|
OQLQuery |
AbstractDatabaseImpl.getNativeQuery(String sql,
Class<?> result)
Creates an OQL query instance based upon a native SQL query and a returning
(resulting) class.
|
OQLQuery |
AbstractDatabaseImpl.getOQLQuery(String oql)
Creates an OQL query from the supplied statement.
|
boolean |
SimpleQueryExecutor.SimpleQueryResults.hasMore() |
boolean |
AbstractDatabaseImpl.isLocked(Class cls,
Object identity)
Returns true if the specified object is currently locked.
|
<T> T |
AbstractDatabaseImpl.load(Class<T> type,
Object identity)
Load an object of the specified type and given identity.
|
<T> T |
AbstractDatabaseImpl.load(Class<T> type,
Object identity,
AccessMode mode)
Load an object of the specified type and given identity.
|
<T> T |
AbstractDatabaseImpl.load(Class<T> type,
Object identity,
Object object)
Load an object of the specified type and given identity into
a given instance of object.
|
void |
SQLEngine.load(Object conn,
ProposedEntity entity,
Identity identity,
AccessMode accessMode)
Loads the object from persistence storage.
|
void |
AbstractDatabaseImpl.lock(Object object)
Acquire a soft write lock on the object.
|
Object |
SimpleQueryExecutor.SimpleQueryResults.next() |
Identity |
SQLQuery.nextIdentity(Identity identity) |
void |
AbstractDatabaseImpl.remove(Object object)
Removes the object from persistent storage.
|
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.
|
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 |
SQLEngine.store(Object conn,
Identity identity,
ProposedEntity newentity,
ProposedEntity oldentity) |
void |
AbstractDatabaseImpl.update(Object object)
Update a data object which is queried/loaded/created in another
transaction.
|
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
ObjectDeletedWaitingForLockException
Thrown to indicate that a lock attempt has failed due to object
being deleted by a concurrent transaction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
QueryResults.absolute(int row) |
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 |
SQLRelationLoader.createRelation(Connection conn,
Identity left,
Identity right) |
void |
LockEngine.delete(TransactionContext tx,
OID oid)
Called at transaction commit time to delete the object.
|
void |
ClassMolder.delete(TransactionContext tx,
OID oid)
Delete an object of the base type from the persistence storage.
|
void |
SQLRelationLoader.deleteRelation(Connection conn,
Identity left) |
void |
SQLRelationLoader.deleteRelation(Connection conn,
Identity left,
Identity right) |
void |
ClassMolder.expireCache(TransactionContext tx,
ObjectLock locker)
Inspect the fields stored in the object passed as an argument for
contained objects.
|
boolean |
LockEngine.expireCache(TransactionContext tx,
OID oid,
int timeout)
Expire object from the cache.
|
Object |
QueryResults.fetch()
Loads the specified object with the identity.
|
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.load(TransactionContext tx,
DepositBox locker,
ProposedEntity proposedObject,
AccessMode accessMode,
QueryResults results)
Loads the field values.
|
void |
ClassMolder.loadTimeStamp(TransactionContext tx,
DepositBox locker,
AccessMode suggestedAccessMode) |
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) |
void |
ClassMolder.mold(TransactionContext tx,
DepositBox locker,
ProposedEntity proposedObject,
AccessMode accessMode) |
Object |
QueryResults.nextIdentity()
Returns the identity of the next object to be returned.
|
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 |
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 |
ClassMolder.setIdentity(TransactionContext tx,
Object object,
Identity identity)
Set the identity into an object.
|
int |
QueryResults.size() |
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 |
LockEngine.writeLock(TransactionContext tx,
OID oid,
int timeout)
Acquire a write lock on the object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractCallQuery.absolute(int row) |
boolean |
PersistenceQuery.absolute(int row)
Moves the result of the query to the absolute position in the
resultset.
|
Identity |
Persistence.create(Database database,
Object conn,
ProposedEntity entity,
Identity identity)
Creates a new object in persistence storage.
|
void |
Persistence.delete(Object conn,
Identity identity)
Deletes the object from persistent storage, given the object'
identity.
|
protected abstract void |
AbstractCallQuery.execute(Object conn,
AccessMode accessMode) |
void |
AbstractCallQuery.execute(Object conn,
AccessMode accessMode,
boolean scrollable) |
void |
PersistenceQuery.execute(Object conn,
AccessMode accessMode,
boolean scrollable)
Execute the query with the give connection and lock type.
|
void |
AbstractCallQuery.fetch(ProposedEntity proposedObject) |
void |
PersistenceQuery.fetch(ProposedEntity proposedObject)
Loades the object.
|
void |
Persistence.load(Object conn,
ProposedEntity proposedObject,
Identity identity,
AccessMode accessMode)
Loads the object from persistence storage.
|
Identity |
AbstractCallQuery.nextIdentity(Identity identity) |
Identity |
PersistenceQuery.nextIdentity(Identity identity)
Returns the identity of the next object to be returned.
|
int |
AbstractCallQuery.size() |
int |
PersistenceQuery.size()
Finds the size of the resulting resultset from the query.
|
void |
Persistence.store(Object conn,
Identity identity,
ProposedEntity newentity,
ProposedEntity oldentity)
Stores the object in persistent storage, given the object fields
and its identity.
|
Copyright © 2013. All rights reserved.