Package | Description |
---|---|
org.castor.cpa.persistence.sql.engine | |
org.castor.cpa.persistence.sql.engine.info | |
org.castor.cpa.persistence.sql.keygen | |
org.castor.persist | |
org.castor.persist.proxy | |
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.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 |
---|---|
List<ColumnValue> |
TableInfo.toSQL(Identity input)
Method appending values from passed identity to corresponding columns.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractBeforeKeyGenerator.bindIdentity(Identity internalIdentity,
CastorStatement stmt)
Binds the identity values.
|
void |
NoKeyGenerator.bindIdentity(Identity internalIdentity,
CastorStatement stmt)
Binds the identity values.
|
Object |
AbstractBeforeKeyGenerator.executeStatement(Database database,
CastorConnection conn,
Identity identity,
ProposedEntity entity)
Executes the SQL statement after preparing the PreparedStatement.
|
Object |
NoKeyGenerator.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 |
SequenceDuringKeyGenerator.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.
|
Modifier and Type | Method and Description |
---|---|
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) |
boolean |
AbstractTransactionContext.isCached(ClassMolder molder,
Class cls,
Identity identity) |
boolean |
TransactionContext.isCached(ClassMolder molder,
Class cls,
Identity identity) |
boolean |
AbstractTransactionContext.isLocked(Class cls,
Identity identity,
LockEngine lockEngine)
Returns true if the object given is locked.
|
boolean |
TransactionContext.isLocked(Class cls,
Identity identity,
LockEngine lockEngine)
Returns true if the object given is locked.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Identity |
LazyCGLIB.interceptedIdentity()
Returns the identity of the object (class) intercepted.
|
Modifier and Type | Method and Description |
---|---|
List<Identity> |
LazyCollection.getIdsList() |
List<Identity> |
LazyHashSet.getIdsList() |
List<Identity> |
LazyCollection.getRemovedIdsList() |
List<Identity> |
LazyHashSet.getRemovedIdsList() |
Modifier and Type | Method and Description |
---|---|
abstract void |
CollectionProxy.add(Identity key,
Object value) |
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 | Method and Description |
---|---|
Object |
PrimitiveResolver.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId) |
Object |
SerializableResolver.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId) |
Object |
OneToManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId) |
Object |
PersistanceCapableRelationResolver.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) |
Object |
ManyToManyRelationResolver.postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId) |
Modifier and Type | Method and Description |
---|---|
Identity |
Database.getIdentity(Object object)
Returns the object's identity.
|
Modifier and Type | Method and Description |
---|---|
Identity |
SQLEngine.create(Database database,
Object conn,
ProposedEntity entity,
Identity identity) |
Identity |
AbstractDatabaseImpl.getIdentity(Object object)
Returns the object's identity.
|
Identity |
SQLQuery.nextIdentity(Identity identity) |
Modifier and Type | Method and Description |
---|---|
Identity |
SQLEngine.create(Database database,
Object conn,
ProposedEntity entity,
Identity identity) |
void |
SQLEngine.delete(Object conn,
Identity identity) |
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 |
SQLEngine.load(Object conn,
ProposedEntity entity,
Identity identity,
AccessMode accessMode)
Loads the object from persistence storage.
|
Identity |
SQLQuery.nextIdentity(Identity identity) |
void |
SQLEngine.store(Object conn,
Identity identity,
ProposedEntity newentity,
ProposedEntity oldentity) |
Modifier and Type | Method and Description |
---|---|
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.
|
Identity |
ClassMolder.getActualIdentity(ClassLoader loader,
Object o)
Get the identity from a object of the base type.
|
Identity |
ClassMolder.getActualIdentity(TransactionContext tx,
Object o)
Get the identity from a object of the base type.
|
Identity |
OID.getIdentity()
Return the object's identity, if known.
|
Identity |
ClassMolder.getIdentity(TransactionContext tx,
Object o)
Get the identity from a object of the base type.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
SQLRelationLoader.createRelation(Connection conn,
Identity left,
Identity right) |
void |
SQLRelationLoader.deleteRelation(Connection conn,
Identity left) |
void |
SQLRelationLoader.deleteRelation(Connection conn,
Identity left,
Identity right) |
boolean |
ClassMolder.isDefaultIdentity(Identity identity)
Test if the specified identity is the default value of the type.
|
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.setIdentity(TransactionContext tx,
Object object,
Identity identity)
Set the identity into an 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.getRemovedIdsList(TransactionContext tx,
List<Identity> orgIds,
Object collection,
ClassMolder molder)
It is assumed the returned collection will not be modified.
|
Constructor and Description |
---|
OID(ClassMolder molder,
Identity identity)
Constructor.
|
OID(ClassMolder molder,
OID depends,
Identity identity)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
protected Identity |
AbstractCallQuery._lastIdentity |
Modifier and Type | Method and Description |
---|---|
Identity |
Persistence.create(Database database,
Object conn,
ProposedEntity entity,
Identity identity)
Creates a new object in persistence storage.
|
Identity |
AbstractCallQuery.nextIdentity(Identity identity) |
Identity |
PersistenceQuery.nextIdentity(Identity identity)
Returns the identity of the next object to be returned.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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 © 2016. All rights reserved.