Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
DescriptorEvent.session
The session in which the event is raised.
|
Modifier and Type | Method and Description |
---|---|
AbstractSession |
DescriptorEvent.getSession()
PUBLIC:
The session in which the event is raised.
|
Modifier and Type | Method and Description |
---|---|
void |
VersionLockingPolicy.addLockFieldsToUpdateRow(AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Add update fields for template row.
|
DatabaseCall |
ClassDescriptor.buildCallFromStatement(SQLStatement statement,
AbstractSession session)
INTERNAL:
Return a call built from a statement.
|
Object |
ClassDescriptor.buildFieldValueFromDirectValues(Vector directValues,
String elementDataTypeName,
AbstractSession session)
INTERNAL:
Build the appropriate field value for the specified
set of direct values.
|
Object |
ClassDescriptor.buildFieldValueFromForeignKeys(Vector foreignKeys,
String referenceDataTypeName,
AbstractSession session)
INTERNAL:
Build and return the appropriate field value for the specified
set of foreign keys (i.e.
|
Object |
ClassDescriptor.buildFieldValueFromNestedRow(AbstractRecord nestedRow,
AbstractSession session)
INTERNAL:
Build and return the field value from the specified nested database row.
|
Object |
ClassDescriptor.buildFieldValueFromNestedRows(Vector nestedRows,
String structureName,
AbstractSession session)
INTERNAL:
Build and return the appropriate field value for the specified
set of nested rows.
|
Vector |
ClassDescriptor.buildNestedRowsFromFieldValue(Object fieldValue,
AbstractSession session)
INTERNAL:
Build and return the nested rows from the specified field value.
|
protected void |
ClassDescriptor.checkDatabase(AbstractSession session)
To check that tables and fields are present in database
|
void |
ClassDescriptor.checkInheritanceTreeAggregateSettings(AbstractSession session,
AggregateMapping mapping)
INTERNAL:
Verify that an aggregate descriptor's inheritance tree
is full of aggregate descriptors.
|
Class |
InheritancePolicy.classFromRow(AbstractRecord rowFromDatabase,
AbstractSession session)
INTERNAL:
This method is invoked only for the abstract descriptors.
|
protected Object |
TimestampLockingPolicy.getInitialWriteValue(AbstractSession session)
INTERNAL:
returns the initial locking value
|
protected Object |
VersionLockingPolicy.getInitialWriteValue(AbstractSession session)
INTERNAL:
returns the initial locking value
|
Object |
TimestampLockingPolicy.getValueToPutInCache(AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value that should be stored in the identity map.
|
Object |
VersionLockingPolicy.getValueToPutInCache(AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value that should be stored in the identity map.
|
int |
TimestampLockingPolicy.getVersionDifference(Object currentValue,
Object domainObject,
Vector primaryKeys,
AbstractSession session)
INTERNAL:
Return the number of versions different between these objects.
|
int |
VersionLockingPolicy.getVersionDifference(Object currentValue,
Object domainObject,
Vector primaryKeys,
AbstractSession session)
PUBLIC:
Return the number of versions different between these objects.
|
Object |
TimestampLockingPolicy.getWriteLockValue(Object domainObject,
Vector primaryKey,
AbstractSession session)
INTERNAL:
This method will return the optimistic lock value for the object
|
Object |
VersionLockingPolicy.getWriteLockValue(Object domainObject,
Vector primaryKey,
AbstractSession session)
INTERNAL:
This method will return the optimistic lock value for the object
|
void |
DescriptorQueryManager.initialize(AbstractSession session)
INTERNAL:
Post initialize the mappings
|
void |
InheritancePolicy.initialize(AbstractSession session)
INTERNAL:
Initialized the inheritence properties of the descriptor once the mappings are initialized.
|
void |
DescriptorEventManager.initialize(AbstractSession session)
INTERNAL:
Configure inherited selectors.
|
void |
ClassDescriptor.initialize(AbstractSession session)
INTERNAL:
Initialize the mappings as a seperate step.
|
void |
WrapperPolicy.initialize(AbstractSession session)
PUBLIC:
Required: Lets the policy perform initialization.
|
void |
VersionLockingPolicy.initialize(AbstractSession session)
INTERNAL:
It is responsible for initializing the policy;
|
void |
CMPPolicy.initialize(ClassDescriptor descriptor,
AbstractSession session)
INTERNAL:
Initialize the CMPPolicy settings.
|
void |
ClassDescriptor.initializeAggregateInheritancePolicy(AbstractSession session)
INTERNAL:
This initialized method is used exclusively for inheritance.
|
protected void |
InheritancePolicy.initializeClassExtractor(AbstractSession session)
INTERNAL:
Setup the default classExtractionMethod, or if one was specified by the user make sure it is valid.
|
protected void |
ClassDescriptor.initializeProperties(AbstractSession session)
INTERNAL:
Initialize the descriptor properties such as write lock and sequecning.
|
boolean |
TimestampLockingPolicy.isChildWriteLockValueGreater(AbstractSession session,
Vector primaryKey,
Class original,
ObjectChangeSet changeSet)
INTERNAL:
Update the parent write lock value if the objectChangeSet's is greater.
|
boolean |
VersionLockingPolicy.isChildWriteLockValueGreater(AbstractSession session,
Vector primaryKey,
Class original,
ObjectChangeSet changeSet)
INTERNAL:
Update the parent write lock value if the unit of works has been incremented.
|
boolean |
TimestampLockingPolicy.isNewerVersion(AbstractRecord databaseRow,
Object domainObject,
Vector primaryKey,
AbstractSession session)
INTERNAL:
Compares the value from the row and from the object (or cache).
|
boolean |
VersionLockingPolicy.isNewerVersion(AbstractRecord databaseRow,
Object domainObject,
Vector primaryKey,
AbstractSession session)
INTERNAL:
Compares the value from the row and from the object (or cache).
|
boolean |
TimestampLockingPolicy.isNewerVersion(Object currentValue,
Object domainObject,
Vector primaryKey,
AbstractSession session)
INTERNAL:
Compares the value with the value from the object (or cache).
|
boolean |
VersionLockingPolicy.isNewerVersion(Object currentValue,
Object domainObject,
Vector primaryKey,
AbstractSession session)
INTERNAL:
Compares the value with the value from the object (or cache).
|
boolean |
ClassDescriptor.isPrimaryKeySetAfterInsert(AbstractSession session)
INTERNAL:
Indicates whether pk or some of its components
set after insert into the database.
|
void |
InheritancePolicy.postInitialize(AbstractSession session)
INTERNAL:
Initialized the inheritence properties that cannot be initialized
unitl after the mappings have been.
|
void |
ClassDescriptor.postInitialize(AbstractSession session)
INTERNAL:
Post initializations after mappings are initialized.
|
void |
DescriptorQueryManager.preInitialize(AbstractSession session)
INTERNAL:
Initialize the query manager.
|
void |
InheritancePolicy.preInitialize(AbstractSession session)
INTERNAL:
Allow the inheritence properties of the descriptor to be initialized.
|
void |
ClassDescriptor.preInitialize(AbstractSession session)
INTERNAL:
Allow the descriptor to initialize any dependancies on this session.
|
protected void |
ClassDescriptor.preInitializeInheritancePolicy(AbstractSession session)
Hook together the inheritance policy tree.
|
void |
ClassDescriptor.rehashFieldDependancies(AbstractSession session)
INTERNAL:
Rehash any hashtables based on fields.
|
void |
DescriptorEventManager.remoteInitialization(AbstractSession session)
INTERNAL:
Used to initialize a remote DescriptorEventManager.
|
protected void |
ClassDescriptor.selfValidationAfterInitialization(AbstractSession session)
INTERNAL:
Validate that the descriptor was defined correctly.
|
protected void |
ClassDescriptor.selfValidationBeforeInitialization(AbstractSession session)
INTERNAL:
Validate that the descriptor's non-mapping attribute are defined correctly.
|
void |
DescriptorEvent.setSession(AbstractSession session)
INTERNAL:
The session in which the event is raised.
|
Object |
WrapperPolicy.unwrapObject(Object proxy,
AbstractSession session)
PUBLIC:
Required: Unwrap the object to return the implementation that is meant to be used by TopLink.
|
protected void |
ClassDescriptor.validateAfterInitialization(AbstractSession session)
INTERNAL:
Validate the entire post-initialization descriptor.
|
protected void |
ClassDescriptor.validateBeforeInitialization(AbstractSession session)
INTERNAL:
Validate the entire pre-initialization descriptor.
|
Object |
WrapperPolicy.wrapObject(Object original,
AbstractSession session)
PUBLIC:
Required: Wrap the object to return the implementation that the application requires.
|
Modifier and Type | Method and Description |
---|---|
ObjectChangeSet |
DeferredChangeDetectionPolicy.calculateChanges(Object clone,
Object backUp,
UnitOfWorkChangeSet changeSet,
AbstractSession session,
ClassDescriptor descriptor,
boolean shouldRiseEvent)
INTERNAL:
calculateChanges creates a change set for a particular object.
|
ObjectChangeSet |
ObjectChangePolicy.calculateChanges(Object clone,
Object backUp,
UnitOfWorkChangeSet changes,
AbstractSession session,
ClassDescriptor descriptor,
boolean shouldRiseEvent)
INTERNAL:
calculateChanges creates a change set for a particular object
|
ObjectChangeSet |
DeferredChangeDetectionPolicy.createObjectChangeSet(Object clone,
Object backUp,
UnitOfWorkChangeSet changeSet,
boolean isNew,
AbstractSession session,
ClassDescriptor descriptor)
INTERNAL:
Create ObjectChangeSet
|
ObjectChangeSet |
DeferredChangeDetectionPolicy.createObjectChangeSetThroughComparison(Object clone,
Object backUp,
UnitOfWorkChangeSet changeSet,
boolean isNew,
AbstractSession session,
ClassDescriptor descriptor)
INTERNAL:
Create ObjectChangeSet
|
ObjectChangeSet |
ObjectChangePolicy.createObjectChangeSetThroughComparison(Object clone,
Object backUp,
UnitOfWorkChangeSet changeSet,
boolean isNew,
AbstractSession session,
ClassDescriptor descriptor)
INTERNAL:
Create ObjectChangeSet through comparison.
|
void |
DeferredChangeDetectionPolicy.initialize(AbstractSession session,
ClassDescriptor descriptor)
INTERNAL:
initialize the Policy
|
void |
ObjectChangePolicy.initialize(AbstractSession session,
ClassDescriptor descriptor)
INTERNAL:
initialize the Policy
|
Modifier and Type | Method and Description |
---|---|
static String |
EntityManagerFactoryProvider.getConfigPropertyAsStringLogDebug(String propertyKey,
Map overrides,
AbstractSession session) |
static String |
EntityManagerFactoryProvider.getConfigPropertyAsStringLogDebug(String propertyKey,
Map overrides,
String defaultValue,
AbstractSession session) |
static Object |
EntityManagerFactoryProvider.getConfigPropertyLogDebug(String propertyKey,
Map overrides,
AbstractSession session) |
static void |
EntityManagerFactoryProvider.translateOldProperties(Map m,
AbstractSession session)
This is a TEMPORARY method that will be removed.
|
static void |
EntityManagerFactoryProvider.warnOldProperties(Map m,
AbstractSession session) |
Modifier and Type | Method and Description |
---|---|
static void |
PersistenceUnitProcessor.processORMetadata(MetadataProcessor processor,
ClassLoader privateClassLoader,
AbstractSession session,
boolean throwExceptionOnFail)
Process the Object/relational metadata from XML and annotations
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
TopLinkException.session |
Modifier and Type | Method and Description |
---|---|
AbstractSession |
TopLinkException.getSession()
PUBLIC:
Return the session.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IntegrityChecker.checkTable(DatabaseTable table,
AbstractSession session)
INTERNAL:
This method checks that tables are present in the database.
|
static ValidationException |
ValidationException.excusiveConnectionIsNoLongerAvailable(DatabaseQuery query,
AbstractSession session) |
void |
IntegrityChecker.initializeTables(AbstractSession session)
INTERNAL:
This method is used to get all the database tables and add them into a vector.
|
static ValidationException |
ValidationException.projectLoginIsNull(AbstractSession session) |
void |
TopLinkException.setSession(AbstractSession session)
INTERNAL:
|
static DatabaseException |
DatabaseException.sqlException(SQLException exception,
Accessor accessor,
AbstractSession session) |
static DatabaseException |
DatabaseException.sqlException(SQLException exception,
Call call,
Accessor accessor,
AbstractSession session) |
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
ExpressionBuilder.session |
Modifier and Type | Method and Description |
---|---|
AbstractSession |
ExpressionBuilder.getSession()
INTERNAL:
|
AbstractSession |
Expression.getSession()
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
boolean |
Expression.doesConform(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
INTERNAL:
Check if the object conforms to the expression in memory.
|
boolean |
Expression.doesConform(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean objectIsUnregistered)
INTERNAL:
New parameter added to doesConform for feature 2612601
|
void |
ExpressionBuilder.setSession(AbstractSession session)
INTERNAL:
Set the session in which we expect this expression to be translated.
|
Object |
Expression.valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
INTERNAL:
Return the value for in memory comparison.
|
Object |
ExpressionBuilder.valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
The expression builder represent the entire object, just return it.
|
Object |
Expression.valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Return the value for in memory comparison.
|
Modifier and Type | Method and Description |
---|---|
static void |
DatabaseCall.appendLogParameters(Collection parameters,
Accessor accessor,
StringWriter writer,
AbstractSession session)
Print the parameters to the write for logging purposes.
|
void |
DatabaseCall.appendParameter(Writer writer,
Object parameter,
AbstractSession session)
Add the parameter.
|
void |
DatasourceCall.appendParameter(Writer writer,
Object parameter,
AbstractSession session)
Add the parameter.
|
void |
QueryStringCall.appendParameter(Writer writer,
Object parameter,
AbstractSession session)
Add the parameter.
|
void |
DatabaseAccessor.basicBeginTransaction(AbstractSession session)
Begin a transaction on the database.
|
protected abstract void |
DatasourceAccessor.basicBeginTransaction(AbstractSession session)
Begin the driver level transaction.
|
void |
DatabaseAccessor.basicCommitTransaction(AbstractSession session)
Commit a transaction on the database.
|
protected abstract void |
DatasourceAccessor.basicCommitTransaction(AbstractSession session)
Commit the driver level transaction.
|
Object |
DatabaseAccessor.basicExecuteCall(Call call,
AbstractRecord translationRow,
AbstractSession session)
Execute the call.
|
protected abstract Object |
DatasourceAccessor.basicExecuteCall(Call call,
AbstractRecord row,
AbstractSession session)
Execute the call to driver level datasource.
|
void |
DatabaseAccessor.basicRollbackTransaction(AbstractSession session)
Rollback a transaction on the database.
|
protected abstract void |
DatasourceAccessor.basicRollbackTransaction(AbstractSession session)
Rollback the driver level transaction.
|
void |
Accessor.beginTransaction(AbstractSession session)
Begin a transaction on the data store.
|
void |
DatasourceAccessor.beginTransaction(AbstractSession session)
Begin a transaction on the database.
|
protected void |
DatabaseAccessor.buildConnectLog(AbstractSession session)
If logging is turned on and the JDBC implementation supports meta data then display connection info.
|
protected abstract void |
DatasourceAccessor.buildConnectLog(AbstractSession session)
Build a log string of any driver metadata that can be obtained.
|
AbstractRecord |
DatabaseAccessor.buildOutputRow(CallableStatement statement,
DatabaseCall call,
AbstractSession session)
Build a row from the output parameters of a sp call.
|
Vector |
DatabaseAccessor.buildSortedFields(Vector fields,
ResultSet resultSet,
AbstractSession session)
Return the field sorted in the correct order coresponding to the result set.
|
protected Vector |
DatabaseAccessor.buildThreadCursoredResult(DatabaseCall dbCall,
ResultSet resultSet,
Statement statement,
ResultSetMetaData metaData,
AbstractSession session) |
void |
DatabaseAccessor.clearStatementCache(AbstractSession session)
Flush the statement cache.
|
void |
DatabaseAccessor.closeStatement(Statement statement,
AbstractSession session)
INTERNAL:
Closes a PreparedStatment (which is supposed to close it's current resultSet).
|
void |
Accessor.commitTransaction(AbstractSession session)
Commit a transaction on the data store.
|
void |
DatabaseAccessor.commitTransaction(AbstractSession session)
Commit a transaction on the database.
|
void |
DatasourceAccessor.commitTransaction(AbstractSession session)
Commit a transaction on the database.
|
void |
Accessor.connect(Login login,
AbstractSession session)
Connect to the data store using the configuration
information in the login.
|
void |
DatasourceAccessor.connect(Login login,
AbstractSession session)
Connect to the datasource.
|
protected Object |
DatabaseCall.createInOutParameter(Object inValue,
Object outParameter,
AbstractSession session)
INTERNAL:
Returns INOUT parameter.
|
protected Object |
DatasourceCall.createInOutParameter(Object inValue,
Object outParameter,
AbstractSession session)
INTERNAL:
Returns INOUT parameter.
|
AbstractRecord |
DatabaseAccessor.cursorRetrieveNextRow(Vector fields,
ResultSet resultSet,
AbstractSession session)
Advance the result set and return a DatabaseRow populated
with values from the next valid row in the result set.
|
AbstractRecord |
DatabaseAccessor.cursorRetrievePreviousRow(Vector fields,
ResultSet resultSet,
AbstractSession session)
Advance the result set and return a DatabaseRow populated
with values from the next valid row in the result set.
|
void |
Accessor.disconnect(AbstractSession session)
Disconnect from the data store.
|
void |
DatabaseAccessor.disconnect(AbstractSession session)
Disconnect from the datasource.
|
void |
DatasourceAccessor.disconnect(AbstractSession session)
Disconnect from the datasource.
|
protected void |
DatabaseAccessor.executeBatchedStatement(PreparedStatement statement,
AbstractSession session)
Execute the TopLink dynamicly batch/concat statement.
|
Object |
Accessor.executeCall(Call call,
AbstractRecord translationRow,
AbstractSession session)
Execute the call.
|
Object |
DatabaseAccessor.executeCall(Call call,
AbstractRecord translationRow,
AbstractSession session)
Execute the call.
|
Object |
DatasourceAccessor.executeCall(Call call,
AbstractRecord translationRow,
AbstractSession session)
Execute the call.
|
Integer |
DatabaseAccessor.executeDirectNoSelect(Statement statement,
DatabaseCall call,
AbstractSession session)
Execute the statement.
|
protected void |
DatabaseAccessor.executeJDK12BatchStatement(Statement statement,
DatabaseCall dbCall,
AbstractSession session)
Execute the batched statement through the JDBC2 API.
|
protected Integer |
DatabaseAccessor.executeNoSelect(DatabaseCall call,
Statement statement,
AbstractSession session)
Execute the statement.
|
protected ResultSet |
DatabaseAccessor.executeSelect(DatabaseCall call,
Statement statement,
AbstractSession session)
Execute the statement.
|
Object |
DatabasePlatform.executeStoredProcedure(DatabaseCall dbCall,
PreparedStatement statement,
DatabaseAccessor accessor,
AbstractSession session)
because each platform has different requirements for accessing stored procedures and
the way that we can combine resultsets and output params the stored procedure call
is being executed on the platform
|
protected AbstractRecord |
DatabaseAccessor.fetchRow(Vector fields,
ResultSet resultSet,
ResultSetMetaData metaData,
AbstractSession session)
Return a new DatabaseRow.
|
void |
Accessor.flushSelectCalls(AbstractSession session)
Execute any deferred select calls.
|
void |
DatabaseAccessor.flushSelectCalls(AbstractSession session)
Execute any deferred select calls stored in the LOBValueWriter instance.
|
void |
DatasourceAccessor.flushSelectCalls(AbstractSession session)
Added as a result of Bug 2804663 - satisfy the Accessor interface
implementation.
|
Vector |
Accessor.getColumnInfo(String catalog,
String schema,
String tableName,
String columnName,
AbstractSession session)
Return the column metadata for the specified
selection criteria.
|
Vector |
DatabaseAccessor.getColumnInfo(String catalog,
String schema,
String tableName,
String columnName,
AbstractSession session)
Get a description of table columns available in a catalog.
|
Vector |
DatasourceAccessor.getColumnInfo(String catalog,
String schema,
String tableName,
String columnName,
AbstractSession session)
Return column information for the specified
database objects.
|
protected Vector |
DatabaseAccessor.getColumnNames(ResultSet resultSet,
AbstractSession session)
Return the column names from a result sets meta data.
|
protected Object |
DatabaseAccessor.getObject(ResultSet resultSet,
DatabaseField field,
ResultSetMetaData metaData,
int columnNumber,
DatabasePlatform platform,
boolean optimizeData,
AbstractSession session)
Return an object retrieved from resultSet with the getObject() method.
|
protected Object |
DatabaseAccessor.getObjectThroughOptimizedDataConversion(ResultSet resultSet,
DatabaseField field,
int type,
int columnNumber,
DatabasePlatform platform,
AbstractSession session)
Handle the conversion into java optimially through calling the direct type API.
|
Vector |
Accessor.getTableInfo(String catalog,
String schema,
String tableName,
String[] types,
AbstractSession session)
Return the table metadata for the specified
selection criteria.
|
Vector |
DatabaseAccessor.getTableInfo(String catalog,
String schema,
String tableName,
String[] types,
AbstractSession session)
Get a description of tables available in a catalog.
|
Vector |
DatasourceAccessor.getTableInfo(String catalog,
String schema,
String tableName,
String[] types,
AbstractSession session)
Return table information for the specified
database objects.
|
Timestamp |
Platform.getTimestampFromServer(AbstractSession session,
String sessionName)
Answer the timestamp from the server.
|
Timestamp |
DatasourcePlatform.getTimestampFromServer(AbstractSession session,
String sessionName)
Answer the timestamp from the server.
|
protected Object |
DatasourceCall.getValueForInOutParameter(Object parameter,
AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
INTERNAL:
Returns value for INOUT parameter.
|
protected Object |
DatasourceCall.getValueForInParameter(Object parameter,
AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session,
boolean shouldBind)
INTERNAL:
Returns value for IN parameter.
|
void |
Accessor.incrementCallCount(AbstractSession session)
Increment the number of calls in progress.
|
void |
DatasourceAccessor.incrementCallCount(AbstractSession session)
Used for load balancing and external pooling.
|
protected boolean |
DatabaseCall.isDynamicCall(AbstractSession session)
Return if the call is dynamic SQL call.
|
void |
DatabaseCall.matchFieldOrder(ResultSet resultSet,
DatabaseAccessor accessor,
AbstractSession session)
Allow for the field order to be matched if required.
|
void |
DatabaseCall.prepare(AbstractSession session)
INTERNAL:
Allow pre-printing of the SQL string for fully bound calls, to save from reprinting.
|
void |
DatasourceCall.prepare(AbstractSession session)
Allow pre-printing of the query/SQL string for fully bound calls, to save from reprinting.
|
void |
QueryStringCall.prepare(AbstractSession session)
Allow pre-printing of the query/SQL string for fully bound calls, to save from reprinting.
|
protected void |
DatabaseCall.prepareInternal(AbstractSession session)
INTERNAL:
Called by prepare method only.
|
Statement |
DatabaseCall.prepareStatement(DatabaseAccessor accessor,
AbstractRecord translationRow,
AbstractSession session)
INTERNAL:
Prepare the JDBC statement, this may be parameterize or a call statement.
|
Statement |
DatabaseAccessor.prepareStatement(DatabaseCall call,
AbstractSession session)
Prepare the SQL statement for the call.
|
void |
DatabasePlatform.printFieldIdentityClause(Writer writer,
AbstractSession session,
String qualifiedFieldName)
Append the receiver's field 'identity' constraint clause to a writer.
|
void |
DatabasePlatform.printFieldTypeSize(Writer writer,
FieldDefinition field,
FieldTypeDefinition fieldType,
AbstractSession session,
String qualifiedFieldName) |
void |
DatabasePlatform.printFieldUnique(Writer writer,
boolean isUnique,
AbstractSession session,
String qualifiedFieldName) |
protected Object |
DatabasePlatform.processResultSet(ResultSet resultSet,
DatabaseCall dbCall,
PreparedStatement statement,
DatabaseAccessor accessor,
AbstractSession session) |
protected void |
DatabaseAccessor.reconnect(AbstractSession session)
Attempt to save some of the cost associated with getting a fresh connection.
|
protected void |
DatasourceAccessor.reconnect(AbstractSession session)
Attempt to save some of the cost associated with getting a fresh connection.
|
void |
Accessor.reestablishConnection(AbstractSession session)
Reconnect to the database.
|
void |
DatasourceAccessor.reestablishConnection(AbstractSession session)
PUBLIC:
Reconnect to the database.
|
protected void |
DatabaseAccessor.releaseStatement(Statement statement,
String sqlString,
DatabaseCall call,
AbstractSession session)
Release the statement through closing it or putting it back in the statement cache.
|
void |
Accessor.rollbackTransaction(AbstractSession session)
Roll back a transaction on the data store.
|
void |
DatasourceAccessor.rollbackTransaction(AbstractSession session)
Rollback the transaction on the datasource.
|
void |
InOutputParameterForCallableStatement.set(DatabasePlatform platform,
PreparedStatement statement,
int index,
AbstractSession session) |
void |
BindCallCustomParameter.set(DatabasePlatform platform,
PreparedStatement statement,
int index,
AbstractSession session) |
void |
OutputParameterForCallableStatement.set(DatabasePlatform platform,
PreparedStatement statement,
int index,
AbstractSession session) |
void |
DatabasePlatform.setParameterValueInDatabaseCall(Object parameter,
PreparedStatement statement,
int index,
AbstractSession session)
INTERNAL
Note that index (not index+1) is used in statement.setObject(index, parameter)
Binding starts with a 1 not 0, so make sure that index > 0.
|
void |
DatabasePlatform.setParameterValueInDatabaseCall(Vector parameters,
PreparedStatement statement,
int parameterIndex,
AbstractSession session)
INTERNAL
Used by SQLCall.prepareStatement(..)
Note that parameterIndex corresponds to parameters vector and
index corresponds to statement:
statement.setObject(parameterIndex + 1, parameters.elementAt(parameterIndex))
Therefore parameterIndex may be 0.
|
void |
DatabasePlatform.setParameterValueInDatabaseCall(Vector parameters,
PreparedStatement statement,
int parameterIndex,
int index,
AbstractSession session)
INTERNAL
Used by StoredProcedureCall.prepareStatement(..)
Note that parameterIndex corresponds to parameters vector and
index corresponds to statement:
statement.setObject(index, parameters.elementAt(parameterIndex))
Therefore parameterIndex may be 0, but index > 0.
|
boolean |
DatabasePlatform.shouldAcquireSequenceValueAfterInsert(AbstractSession session,
String qualifiedFieldName) |
boolean |
DatabaseCall.shouldCacheStatement(AbstractSession session)
Bound calls can use prepared statement caching.
|
void |
DatabaseCall.translate(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
INTERNAL:
Allow the call to translate from the translation for predefined calls.
|
void |
DatasourceCall.translate(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
Allow the call to translate from the translation for predefined calls.
|
void |
QueryStringCall.translate(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
Allow the call to translate from the translation for predefined calls.
|
void |
DatasourceCall.translateQueryString(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
INTERNAL:
Allow the call to translate from the translation for predefined calls.
|
void |
QueryStringCall.translateQueryString(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
Allow the call to translate from the translation for predefined calls.
|
boolean |
DatabaseCall.usesBinding(AbstractSession session)
The call may specify that its parameters should be bound.
|
void |
DatabasePlatform.writeCreateTempTableSql(Writer writer,
DatabaseTable table,
AbstractSession session,
Collection pkFields,
Collection usedFields,
Collection allFields)
INTERNAL:
Don't override this method.
|
void |
DatabasePlatform.writeLOB(DatabaseField field,
Object value,
ResultSet resultSet,
AbstractSession session)
INTERNAL:
Write LOB value - only on Oracle8 and up
|
void |
Accessor.writesCompleted(AbstractSession session)
This method will be called after a series of writes have been issued to
mark where a particular set of writes has completed.
|
void |
DatabaseAccessor.writesCompleted(AbstractSession session)
This method will be called after a series of writes have been issued to
mark where a particular set of writes has completed.
|
void |
DatasourceAccessor.writesCompleted(AbstractSession session)
This method will be called after a series of writes have been issued to
mark where a particular set of writes has completed.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
DescriptorIterator.session |
Modifier and Type | Method and Description |
---|---|
AbstractSession |
DescriptorIterator.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
OptimisticLockingPolicy.addLockFieldsToUpdateRow(AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Add update fields for template row.
|
void |
ObjectBuilder.addPrimaryKeyForNonDefaultTable(AbstractRecord databaseRow,
Object object,
AbstractSession session)
Add the primary key and its value to the databaseRow for all the non default tables.
|
void |
ObjectBuilder.assignReturnRow(Object object,
AbstractSession writeSession,
AbstractRecord row)
INTERNAL:
Assign returned row to object
|
Object |
ObjectBuilder.assignSequenceNumber(Object object,
AbstractSession writeSession)
INTERNAL:
Update the object primary key by fetching a new sequence number from the accessor.
|
protected Object |
ObjectBuilder.buildObject(ObjectBuildingQuery query,
AbstractRecord databaseRow,
AbstractSession session,
Vector primaryKey,
ClassDescriptor concreteDescriptor,
JoinedAttributeManager joinManager)
Return an instance of the recievers javaClass.
|
Expression |
ObjectBuilder.buildPrimaryKeyExpressionFromKeys(Vector primaryKeyValues,
AbstractSession session)
Build the primary key expression from the specified primary key values.
|
Expression |
ObjectBuilder.buildPrimaryKeyExpressionFromObject(Object domainObject,
AbstractSession session)
Build the primary key expression from the specified domain object.
|
AbstractRecord |
ObjectBuilder.buildRow(AbstractRecord databaseRow,
Object object,
AbstractSession session)
Build the row representation of an object.
|
AbstractRecord |
ObjectBuilder.buildRow(Object object,
AbstractSession session)
Build the row representation of an object.
|
AbstractRecord |
ObjectBuilder.buildRowForShallowDelete(AbstractRecord databaseRow,
Object object,
AbstractSession session)
Build the row representation of the object for update.
|
AbstractRecord |
ObjectBuilder.buildRowForShallowDelete(Object object,
AbstractSession session)
Build the row representation of the object for update.
|
AbstractRecord |
ObjectBuilder.buildRowForShallowInsert(AbstractRecord databaseRow,
Object object,
AbstractSession session)
Build the row representation of the object for update.
|
AbstractRecord |
ObjectBuilder.buildRowForShallowInsert(Object object,
AbstractSession session)
Build the row representation of the object for update.
|
AbstractRecord |
ObjectBuilder.buildRowForShallowInsertWithChangeSet(AbstractRecord databaseRow,
ObjectChangeSet objectChangeSet,
AbstractSession session)
Build the row representation of the object for update.
|
AbstractRecord |
ObjectBuilder.buildRowForShallowInsertWithChangeSet(ObjectChangeSet objectChangeSet,
AbstractSession session)
Build the row representation of the object for update.
|
AbstractRecord |
ObjectBuilder.buildRowForTranslation(Object object,
AbstractSession session)
Build the row representation of an object.
|
AbstractRecord |
ObjectBuilder.buildRowFromPrimaryKeyValues(Vector key,
AbstractSession session)
Build the row from the primary key values.
|
AbstractRecord |
ObjectBuilder.buildRowWithChangeSet(AbstractRecord databaseRow,
ObjectChangeSet objectChangeSet,
AbstractSession session)
Build the row representation of an object.
|
AbstractRecord |
ObjectBuilder.buildRowWithChangeSet(ObjectChangeSet objectChangeSet,
AbstractSession session)
Build the row representation of an object.
|
AbstractRecord |
ObjectBuilder.buildTemplateInsertRow(AbstractSession session)
Build the row of all of the fields used for insertion.
|
void |
ObjectBuilder.buildTemplateInsertRow(AbstractSession session,
AbstractRecord databaseRow) |
AbstractRecord |
ObjectBuilder.buildTemplateUpdateRow(AbstractSession session)
Build the row representation of the object for update.
|
ObjectChangeSet |
ObjectBuilder.compareForChange(Object clone,
Object backUp,
UnitOfWorkChangeSet changeSet,
AbstractSession session)
INTERNAL:
This method creates an records changes for a particular object
|
boolean |
ObjectBuilder.compareObjects(Object firstObject,
Object secondObject,
AbstractSession session)
Compares the two specified objects
|
protected void |
ObjectBuilder.copyQueryInfoToCacheKey(CacheKey cacheKey,
ObjectBuildingQuery query,
AbstractRecord databaseRow,
AbstractSession session,
ClassDescriptor concreteDescriptor)
Initialize a cache key.
|
ObjectChangeSet |
ObjectBuilder.createObjectChangeSet(Object clone,
UnitOfWorkChangeSet uowChangeSet,
AbstractSession session)
INTERNAL:
Used by the ObjectBuilder to create an ObjectChangeSet for the specified clone object
|
ObjectChangeSet |
ObjectBuilder.createObjectChangeSet(Object clone,
UnitOfWorkChangeSet uowChangeSet,
boolean isNew,
AbstractSession session)
INTERNAL:
Used by the ObjectBuilder to create an ObjectChangeSet for the specified clone object
|
void |
ObjectBuilder.createPrimaryKeyExpression(AbstractSession session)
Creates and stores primary key expression.
|
Vector |
ObjectBuilder.extractPrimaryKeyFromExpression(boolean requiresExactMatch,
Expression expression,
AbstractRecord translationRow,
AbstractSession session)
Return the row with primary keys and their values from the given expression.
|
Vector |
ObjectBuilder.extractPrimaryKeyFromObject(Object domainObject,
AbstractSession session)
Extract primary key attribute values from the domainObject.
|
Vector |
ObjectBuilder.extractPrimaryKeyFromRow(AbstractRecord databaseRow,
AbstractSession session)
Extract primary key values from the specified row.
|
AbstractRecord |
ObjectBuilder.extractPrimaryKeyRowFromExpression(Expression expression,
AbstractRecord translationRow,
AbstractSession session)
Return the row with primary keys and their values from the given expression.
|
AbstractRecord |
ObjectBuilder.extractPrimaryKeyRowFromObject(Object domainObject,
AbstractSession session)
Extract primary key attribute values from the domainObject.
|
Object |
ObjectBuilder.extractValueFromObjectForField(Object domainObject,
DatabaseField field,
AbstractSession session)
Extract the value of the primary key attribute from the specified object.
|
Object |
OptimisticLockingPolicy.getValueToPutInCache(AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value that should be stored in the identity map.
|
int |
OptimisticLockingPolicy.getVersionDifference(Object currentValue,
Object domainObject,
Vector primaryKeys,
AbstractSession session)
PUBLIC:
Return the number of versions different between these objects.
|
Object |
OptimisticLockingPolicy.getWriteLockValue(Object domainObject,
Vector primaryKey,
AbstractSession session)
INTERNAL:
This method will return the optimistic lock value for the object
#see this method in VersionLockingPolicy
|
void |
ObjectBuilder.initialize(AbstractSession session)
Cache all the mappings by their attribute and fields.
|
void |
OptimisticLockingPolicy.initialize(AbstractSession session)
INTERNAL:
It is responsible for initializing the policy.
|
void |
InstantiationPolicy.initialize(AbstractSession session)
If necessary, initialize the factory and the method.
|
void |
ObjectBuilder.initializePrimaryKey(AbstractSession session)
Cache primary key and non primary key mappings.
|
Object |
ObjectBuilder.instantiateClone(Object domainObject,
AbstractSession session)
Returns the clone of the specified object.
|
Object |
ObjectBuilder.instantiateWorkingCopyClone(Object domainObject,
AbstractSession session)
Returns the clone of the specified object.
|
boolean |
OptimisticLockingPolicy.isChildWriteLockValueGreater(AbstractSession session,
Vector primaryKey,
Class original,
ObjectChangeSet changeSet)
INTERNAL:
Update the parent write lock value if the changeSet's is newer
|
boolean |
OptimisticLockingPolicy.isNewerVersion(AbstractRecord databaseRow,
Object domainObject,
Vector primaryKey,
AbstractSession session)
INTERNAL:
Returns true if the value stored with the domainObject is more recent
than the value in the row.
|
boolean |
OptimisticLockingPolicy.isNewerVersion(Object currentValue,
Object domainObject,
Vector primaryKey,
AbstractSession session)
INTERNAL:
Returns true if the value stored with the domainObject is more recent
than the value .
|
void |
ObjectBuilder.rehashFieldDependancies(AbstractSession session)
Rehash any hashtables based on fields.
|
void |
DescriptorIterator.setSession(AbstractSession session) |
Object |
ObjectBuilder.unwrapObject(Object proxy,
AbstractSession session)
Unwrap the object if required.
|
void |
ObjectBuilder.validate(AbstractSession session)
Validates the object builder.
|
boolean |
ObjectBuilder.verifyDelete(Object object,
AbstractSession session)
Verify that an object has been deleted from the database.
|
Object |
ObjectBuilder.wrapObject(Object implementation,
AbstractSession session)
Wrap the object if required.
|
Modifier and Type | Class and Description |
---|---|
class |
RepeatableWriteUnitOfWork |
Modifier and Type | Method and Description |
---|---|
protected Object |
CMP3Policy.createBeanUsingKey(Object key,
AbstractSession session)
INTERNAL:
Use the key to create a bean and initialize its primary key fields.
|
Vector |
CMP3Policy.createPkVectorFromKey(Object key,
AbstractSession session)
INTERNAL:
Use the key to create a TopLink primary key Vector.
|
Object |
CMP3Policy.createPrimaryKeyInstance(Object key,
AbstractSession session)
INTERNAL:
Create an instance of the composite primary key class for the key object.
|
static String |
PropertiesHandler.getDefaultPropertyValueLogDebug(String name,
AbstractSession session) |
static Map |
PropertiesHandler.getPrefixValuesLogDebug(String prefix,
Map m,
AbstractSession session) |
static String |
PropertiesHandler.getPropertyValueLogDebug(String name,
Map m,
AbstractSession session) |
static void |
QueryHintsHandler.verify(Map hints,
String queryName,
AbstractSession session)
INTERNAL:
Verifies the hints.
|
static void |
QueryHintsHandler.verify(String hintName,
Object hintValue,
String queryName,
AbstractSession session)
INTERNAL:
Verifies the hint.
|
Constructor and Description |
---|
RepeatableWriteUnitOfWork(AbstractSession parentSession) |
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
MetadataProcessor.m_session |
protected AbstractSession |
MetadataProject.m_session |
protected AbstractSession |
MetadataLogger.session |
Modifier and Type | Method and Description |
---|---|
AbstractSession |
MetadataProject.getSession()
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
void |
MetadataLogger.setSession(AbstractSession session)
INTERNAL:
Set the session to log to.
|
Constructor and Description |
---|
MetadataLogger(AbstractSession session)
INTERNAL:
|
MetadataProcessor(AbstractSession session,
ClassLoader loader,
Collection<Class> entities,
boolean enableLazyForOneToOne)
Deprecated.
|
MetadataProcessor(PersistenceUnitInfo puInfo,
AbstractSession session,
ClassLoader loader,
boolean enableLazyForOneToOne)
INTERNAL:
Called from EntityManagerSetupImpl.
|
MetadataProject(PersistenceUnitInfo puInfo,
AbstractSession session,
boolean enableLazyForOneToOne)
INTERNAL:
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
ExpressionNormalizer.session
The session being normalized in.
|
protected AbstractSession |
ExpressionSQLPrinter.session
Stores the current session.
|
Modifier and Type | Method and Description |
---|---|
AbstractSession |
ExpressionNormalizer.getSession() |
protected AbstractSession |
ExpressionSQLPrinter.getSession() |
Modifier and Type | Method and Description |
---|---|
DatabaseCall |
SQLUpdateAllStatementForOracleAnonymousBlock.buildCall(AbstractSession session)
Append the string containing the SQL insert string for the given table.
|
DatabaseCall |
SQLDeleteStatement.buildCall(AbstractSession session)
Append the string containing the SQL insert string for the given table.
|
DatabaseCall |
SQLSelectStatement.buildCall(AbstractSession session)
Print the SQL representation of the statement on a stream.
|
abstract DatabaseCall |
SQLStatement.buildCall(AbstractSession session)
Return SQL call for the statement, through generating the SQL string.
|
DatabaseCall |
SQLUpdateAllStatement.buildCall(AbstractSession session)
Append the string containing the SQL insert string for the given table.
|
DatabaseCall |
SQLModifyAllStatementForTempTable.buildCall(AbstractSession session)
Append the string containing the SQL insert string for the given table.
|
DatabaseCall |
SQLModifyStatement.buildCall(AbstractSession session) |
DatabaseCall |
SQLDeleteAllStatement.buildCall(AbstractSession session)
Return SQL call for the statement, through generating the SQL string.
|
protected SQLCall |
SQLUpdateStatement.buildCallWithoutReturning(AbstractSession session)
Append the string containing the SQL insert string for the given table.
|
protected SQLCall |
SQLInsertStatement.buildCallWithoutReturning(AbstractSession session)
Append the string containing the SQL insert string for the given table.
|
protected SQLCall |
SQLModifyStatement.buildCallWithoutReturning(AbstractSession session) |
protected SQLCall |
SQLUpdateAllStatement.buildSimple(AbstractSession session) |
protected boolean |
RelationExpression.doesAnyOfLeftValuesConform(Vector leftValues,
Object rightValue,
AbstractSession session)
Conform in-memory the collection of left values with the right value for this expression.
|
boolean |
RelationExpression.doesConform(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Check if the object conforms to the expression in memory.
|
boolean |
FunctionExpression.doesConform(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Check if the object conforms to the expression in memory.
|
boolean |
LogicalExpression.doesConform(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean objectIsUnregistered)
INTERNAL:
Check if the object conforms to the expression in memory.
|
boolean |
RelationExpression.doesObjectConform(Object leftValue,
Object rightValue,
AbstractSession session)
INTERNAL:
Check if the object conforms to the expression in memory.
|
protected boolean |
RelationExpression.doValuesConform(Object leftValue,
Object rightValue,
AbstractSession session)
Conform in-memory the two values.
|
Object |
ParameterExpression.getValue(AbstractRecord translationRow,
AbstractSession session)
Extract the value from the row.
|
void |
SQLSelectStatement.normalize(AbstractSession session,
ClassDescriptor descriptor)
INTERNAL:
Normalize an expression into a printable structure.
|
void |
SQLSelectStatement.normalize(AbstractSession session,
ClassDescriptor descriptor,
Dictionary clonedExpressions)
INTERNAL:
Normalize an expression into a printable structure.
|
void |
SQLSelectStatement.normalizeForView(AbstractSession theSession,
ClassDescriptor theDescriptor,
Dictionary clonedExpressions)
INTERNAL:
Normalize an expression mapping all of the descriptor's tables to the view.
|
void |
ExpressionNormalizer.setSession(AbstractSession session) |
protected void |
ExpressionSQLPrinter.setSession(AbstractSession theSession) |
Object |
LiteralExpression.valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Return the value for in memory comparison.
|
Object |
ConstantExpression.valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Return the value for in memory comparison.
|
Object |
QueryKeyExpression.valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Return the value for in memory comparison.
|
Object |
ParameterExpression.valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Return the value for in memory comparison.
|
Object |
FunctionExpression.valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Return the value for in memory comparison.
|
Object |
FieldExpression.valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Return the value for in memory comparison.
|
Object |
QueryKeyExpression.valuesFromCollection(Object object,
AbstractSession session,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL
This method iterates through a collection and gets the values from the objects to conform in an in-memory query.
|
protected void |
SQLUpdateAllStatementForTempTable.writeUpdateOriginalTable(AbstractSession session,
Writer writer) |
protected abstract void |
SQLModifyAllStatementForTempTable.writeUpdateOriginalTable(AbstractSession session,
Writer writer) |
protected void |
SQLDeleteAllStatementForTempTable.writeUpdateOriginalTable(AbstractSession session,
Writer writer) |
Constructor and Description |
---|
ExpressionSQLPrinter(AbstractSession session,
AbstractRecord translationRow,
SQLCall call,
boolean printQualifiedNames) |
Modifier and Type | Method and Description |
---|---|
CacheKey |
WriteLockManager.acquireLockAndRelatedLocks(Object objectForClone,
Map lockedObjects,
Vector primaryKeys,
ClassDescriptor descriptor,
AbstractSession session)
INTERNAL:
This is a recursive method used to acquire read locks on all objects that
will be cloned.
|
Map |
WriteLockManager.acquireLocksForClone(Object objectForClone,
ClassDescriptor descriptor,
Vector primaryKeys,
AbstractSession session)
INTERNAL:
This method will return once the object is locked and all non-indirect
related objects are also locked.
|
Object |
WriteLockManager.appendLock(Vector primaryKeys,
Object objectToLock,
ClassDescriptor descriptor,
MergeManager mergeManager,
AbstractSession session)
INTERNAL:
This method will be called by a merging thread that is attempting to lock
a new object that was not locked previously.
|
protected CacheKey |
WriteLockManager.attemptToAcquireLock(Class objectClass,
CacheKey cacheKey,
AbstractSession session)
INTERNAL:
This method performs the operations of finding the cacheKey and locking it if possible.
|
protected void |
LOBValueWriter.buildAndExecuteCall(DatabaseCall dbCall,
AbstractSession session) |
void |
LOBValueWriter.buildAndExecuteSelectCalls(AbstractSession session)
Build and execute the deferred select calls.
|
protected CacheKey |
WriteLockManager.checkAndLockObject(Object objectToLock,
Map lockedObjects,
DatabaseMapping mapping,
AbstractSession session)
INTERNAL:
Simply check that the object is not already locked then pass it on to the locking method
|
CacheKey |
WriteLockManager.traverseRelatedLocks(Object objectForClone,
Map lockedObjects,
ClassDescriptor descriptor,
AbstractSession session)
INTERNAL:
Traverse the object and acquire locks on all related objects.
|
protected CacheKey |
WriteLockManager.waitOnObjectLock(Class objectClass,
CacheKey cacheKey,
AbstractSession session)
INTERNAL:
This method performs the operations of finding the cacheKey and locking it if possible.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
IdentityMapManager.session
A reference to the session owning this manager.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractSession |
IdentityMapManager.getSession() |
Modifier and Type | Method and Description |
---|---|
protected void |
IdentityMapManager.setSession(AbstractSession session) |
Constructor and Description |
---|
IdentityMapManager(AbstractSession session) |
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
DatabaseValueHolder.session
Stores the session for the database that contains the object.
|
Modifier and Type | Method and Description |
---|---|
AbstractSession |
DatabaseValueHolder.getSession()
Return the session.
|
Modifier and Type | Method and Description |
---|---|
Vector |
TransparentIndirectionPolicy.extractPrimaryKeyForReferenceObject(Object referenceObject,
AbstractSession session)
INTERNAL:
Return the primary key for the reference object (i.e.
|
Vector |
IndirectionPolicy.extractPrimaryKeyForReferenceObject(Object referenceObject,
AbstractSession session)
INTERNAL:
Return the primary key for the reference object (i.e.
|
Vector |
BasicIndirectionPolicy.extractPrimaryKeyForReferenceObject(Object referenceObject,
AbstractSession session)
INTERNAL:
Return the primary key for the reference object (i.e.
|
Object |
TransparentIndirectionPolicy.getOriginalIndirectionObject(Object unitOfWorkIndirectionObject,
AbstractSession session)
INTERNAL:
Return the original indirection object for a unit of work indirection object.
|
abstract Object |
IndirectionPolicy.getOriginalIndirectionObject(Object unitOfWorkIndirectionObject,
AbstractSession session)
INTERNAL:
Return the original indirection object for a unit of work indirection object.
|
Object |
BasicIndirectionPolicy.getOriginalIndirectionObject(Object unitOfWorkIndirectionObject,
AbstractSession session)
INTERNAL:
Return the original indirection object for a unit of work indirection object.
|
Object |
NoIndirectionPolicy.getOriginalIndirectionObject(Object unitOfWorkIndirectionObject,
AbstractSession session)
INTERNAL:
Return the original indirection object for a unit of work indirection object.
|
protected Object |
QueryBasedValueHolder.instantiate(AbstractSession session)
Instantiate the object by executing the query on the session.
|
void |
DatabaseValueHolder.setSession(AbstractSession session)
Set the session.
|
Object |
TransparentIndirectionPolicy.valueFromMethod(Object object,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value to be stored in the object's attribute.
|
Object |
TransparentIndirectionPolicy.valueFromQuery(ReadQuery query,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value to be stored in the object's attribute.
|
abstract Object |
IndirectionPolicy.valueFromQuery(ReadQuery query,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value to be stored in the object's attribute.
|
Object |
BasicIndirectionPolicy.valueFromQuery(ReadQuery query,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value to be stored in the object's attribute.
|
Object |
NoIndirectionPolicy.valueFromQuery(ReadQuery query,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value to be stored in the object's attribute.
|
Object |
TransparentIndirectionPolicy.valueFromQuery(ReadQuery query,
AbstractRecord row,
Object object,
AbstractSession session)
INTERNAL:
A combination of valueFromQuery and valueFromRow(object).
|
Constructor and Description |
---|
QueryBasedValueHolder(ReadQuery query,
AbstractRecord row,
AbstractSession session)
Initialize the query-based value holder.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
GenerationContext.session |
Modifier and Type | Method and Description |
---|---|
AbstractSession |
GenerationContext.getSession() |
Modifier and Type | Method and Description |
---|---|
GenerationContext |
ParseTree.buildContext(DatabaseQuery query,
AbstractSession sessionForContext)
INTERNAL
Build the context to be used when generating the expression from the parse tree
|
GenerationContext |
EJBQLParseTree.buildContext(ReadQuery readQuery,
AbstractSession session)
INTERNAL
Build the context to be used when generating the expression from the parse tree
|
GenerationContext |
ParseTree.buildContextForReadQuery(AbstractSession sessionForContext)
INTERNAL
Build the context to be used when generating the expression from the parse tree
|
void |
EJBQLParseTree.populateQuery(DatabaseQuery query,
AbstractSession session)
Add all of the relevant query settings from an EJBQLParseTree to the given
database query.
|
void |
GenerationContext.setSession(AbstractSession newSession) |
protected void |
ParseTree.validate(AbstractSession session,
ClassLoader classLoader)
INTERNAL
Validate the parse tree.
|
Constructor and Description |
---|
GenerationContext(ParseTreeContext newContext,
AbstractSession newSession,
ParseTree newParseTree) |
SelectGenerationContext(ParseTreeContext newContext,
AbstractSession newSession,
ParseTree newParseTree) |
TypeHelperImpl(AbstractSession session,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
EJBQLCallQueryMechanism.buildSelectionCriteria(AbstractSession newSession)
Internal:
In the case of EJBQL, an expression needs to be generated, and the query populated.
|
void |
EJBQLParserFactory.populateQuery(String ejbqlString,
ObjectLevelReadQuery theQuery,
AbstractSession session)
Populate the query using the information retrieved from parsing the EJBQL.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractSession |
DatabaseQueryMechanism.getSession()
Convenience method
|
Modifier and Type | Method and Description |
---|---|
boolean |
ContainerPolicy.addInto(Object element,
Object container,
AbstractSession session)
INTERNAL:
Add element to container.
|
boolean |
DirectMapContainerPolicy.addInto(Object element,
Object container,
AbstractSession session)
INTERNAL:
Add element into container which implements the Map interface.
|
boolean |
MapContainerPolicy.addInto(Object key,
Object element,
Object container,
AbstractSession session)
INTERNAL:
Add element into container which implements the Map interface.
|
boolean |
ContainerPolicy.addInto(Object key,
Object element,
Object container,
AbstractSession session)
INTERNAL:
Add element to container.
|
boolean |
DirectMapContainerPolicy.addInto(Object key,
Object value,
Object container,
AbstractSession session)
INTERNAL:
Add key, value pair into container which implements the Map interface.
|
protected void |
OrderedListContainerPolicy.addIntoAtIndex(Integer index,
Object object,
Object container,
AbstractSession session)
INTERNAL:
Add element into a container which implements the List interface.
|
void |
ContainerPolicy.addIntoWithOrder(Integer index,
Object element,
Object container,
AbstractSession session)
INTERNAL:
It is illegal to send this message to this receiver.
|
void |
ContainerPolicy.addIntoWithOrder(Vector indexes,
Hashtable elements,
Object container,
AbstractSession session)
INTERNAL:
It is illegal to send this message to this receiver.
|
Object |
CollectionContainerPolicy.buildContainerFromVector(Vector vector,
AbstractSession session)
INTERNAL:
Return a container populated with the contents of the specified Vector.
|
Object |
ContainerPolicy.buildContainerFromVector(Vector vector,
AbstractSession session)
INTERNAL:
Return a container populated with the contents of the specified Vector.
|
Object |
DirectMapContainerPolicy.buildContainerFromVector(Vector vector,
AbstractSession session)
INTERNAL:
Return a container populated with the contents of the specified Vector.
|
void |
DatabaseQueryMechanism.buildSelectionCriteria(AbstractSession session)
Internal:
In the case of EJBQL, an expression needs to be generated.
|
Object |
DatabaseQueryMechanism.checkCacheForObject(AbstractRecord translationRow,
AbstractSession session)
Perform a cache lookup for the query.
|
Object |
ExpressionQueryMechanism.checkCacheForObject(AbstractRecord translationRow,
AbstractSession session)
Perform a cache lookup for the query
This is only called from read object query.
|
void |
OrderedListContainerPolicy.compareCollectionsForChange(Object oldList,
Object newList,
CollectionChangeRecord changeRecord,
AbstractSession session,
ClassDescriptor referenceDescriptor)
INTERNAL:
This method is used to calculate the differences between two collections.
|
void |
ContainerPolicy.compareCollectionsForChange(Object oldCollection,
Object newCollection,
CollectionChangeRecord changeRecord,
AbstractSession session,
ClassDescriptor referenceDescriptor)
INTERNAL:
This method is used to calculate the differences between two collections.
|
boolean |
MapContainerPolicy.compareKeys(Object sourceValue,
AbstractSession session)
INTERNAL:
Return true if keys are the same in the source as the backup.
|
boolean |
ContainerPolicy.compareKeys(Object sourceKey,
AbstractSession session)
INTERNAL:
Return true if keys are the same in the source as the backup.
|
boolean |
DirectMapContainerPolicy.compareKeys(Object sourceValue,
AbstractSession session)
INTERNAL:
Return true if keys are the same in the source as the backup.
|
protected int |
JoinedAttributeManager.computeIndexesForJoinedExpressions(List joinedExpressions,
int currentIndex,
AbstractSession session)
INTERNAL:
This method is used when computing the indexes for joined mappings.
|
int |
JoinedAttributeManager.computeJoiningMappingIndexes(boolean includeAllSubclassFields,
AbstractSession session,
int offset)
INTERNAL:
For joining the resulting rows include the field/values for many objects.
|
void |
JoinedAttributeManager.computeJoiningMappingQueries(AbstractSession session)
INTERNAL:
Used to optimize joining by pre-computing the nested join queries for the mappings.
|
protected void |
JoinedAttributeManager.computeNestedQueriesForJoinedExpressions(List joinedExpressions,
AbstractSession session,
ObjectLevelReadQuery readQuery)
INTERNAL:
This method is used when computing the nested queries for joined mappings.
|
boolean |
ContainerPolicy.contains(Object element,
Object container,
AbstractSession session)
INTERNAL:
Check if the object is contained in the collection.
|
Object |
MapContainerPolicy.keyFrom(Object element,
AbstractSession session)
INTERNAL:
Return the key for the specified element.
|
Object |
ContainerPolicy.keyFrom(Object element,
AbstractSession session)
INTERNAL:
Return the key for the specified element.
|
Object |
ContainerPolicy.mergeCascadeParts(ObjectChangeSet objectChanges,
MergeManager mergeManager,
AbstractSession parentSession)
INTERNAL:
Merge changes from the source to the target object.
|
void |
OrderedListContainerPolicy.mergeChanges(CollectionChangeRecord changeRecord,
Object valueOfTarget,
boolean shouldMergeCascadeParts,
MergeManager mergeManager,
AbstractSession parentSession)
INTERNAL:
Merge changes from the source to the target object.
|
void |
ContainerPolicy.mergeChanges(CollectionChangeRecord changeRecord,
Object valueOfTarget,
boolean shouldMergeCascadeParts,
MergeManager mergeManager,
AbstractSession parentSession)
INTERNAL:
Merge changes from the source to the target object.
|
Object |
ContainerPolicy.next(Object iterator,
AbstractSession session)
INTERNAL:
Return the next object from the iterator.
|
void |
MapContainerPolicy.prepare(DatabaseQuery query,
AbstractSession session)
Prepare and validate.
|
void |
ContainerPolicy.prepare(DatabaseQuery query,
AbstractSession session)
Prepare and validate.
|
protected void |
JoinedAttributeManager.prepareJoinExpression(Expression expression,
AbstractSession session)
Validate and prepare the join expression.
|
void |
JoinedAttributeManager.prepareJoinExpressions(AbstractSession session)
INTERNAL:
Validate and prepare join expressions.
|
boolean |
ContainerPolicy.removeFrom(Object element,
Object container,
AbstractSession session)
INTERNAL:
Remove the object from the collection.
|
boolean |
MapContainerPolicy.removeFrom(Object key,
Object element,
Object container,
AbstractSession session)
INTERNAL:
Remove element from container which implements the Map interface.
|
boolean |
ContainerPolicy.removeFrom(Object key,
Object element,
Object container,
AbstractSession session)
INTERNAL:
Remove the object from the collection.
|
boolean |
DirectMapContainerPolicy.removeFrom(Object key,
Object element,
Object container,
AbstractSession session)
INTERNAL:
Remove element from container which implements the Map interface.
|
boolean |
MapContainerPolicy.removeFromWithIdentity(Object element,
Object container,
AbstractSession session)
INTERNAL:
Remove element from container which implements the Map interface.
|
boolean |
DirectMapContainerPolicy.removeFromWithIdentity(Object element,
Object container,
AbstractSession session)
INTERNAL:
Remove element from container which implements the Map interface.
|
void |
JoinedAttributeManager.setDataResults(List dataResults,
AbstractSession session)
INTERNAL:
Set all of the rows fetched by the query, used for 1-m joining.
|
ForUpdateOfClause |
JoinedAttributeManager.setupLockingClauseForJoinedExpressions(ForUpdateOfClause lockingClause,
AbstractSession session)
INTERNAL:
Used for joining in conjunction with pessimistic locking
Iterate through a list of joined expressions and ensure expression is set on the locking
clause for each expression that represents a pessimisically locked descriptor.
|
void |
MapContainerPolicy.validateElementAndRehashIfRequired(Object sourceValue,
Object targetMap,
AbstractSession session,
Object targetVersionOfSource)
INTERNAL:
If the key has changed, remove the element and add it back into the target.
|
void |
ContainerPolicy.validateElementAndRehashIfRequired(Object sourceValue,
Object target,
AbstractSession session,
Object targetVersionOfSource)
INTERNAL:
over ride in MapPolicy subclass
|
void |
DirectMapContainerPolicy.validateElementAndRehashIfRequired(Object sourceValue,
Object targetMap,
AbstractSession session,
Object targetVersionOfSource)
INTERNAL:
If the key has changed, remove the element and add it back into the target.
|
Vector |
ContainerPolicy.vectorFor(Object container,
AbstractSession session)
INTERNAL:
Return a Vector populated with the contents of container.
|
Modifier and Type | Method and Description |
---|---|
static Sequencing |
SequencingFactory.createSequencing(AbstractSession session)
INTERNAL:
Takes a potential owner - a Session, returns Sequencing object.
|
Object |
SequencingServer.getNextValue(AbstractSession writeSession,
Class cls) |
Modifier and Type | Class and Description |
---|---|
class |
DatabaseSessionImpl
Implementation of oracle.toplink.essentials.sessions.DatabaseSession
The public interface should be used by public API, the implementation should be used internally.
|
class |
IsolatedClientSession
Provides isolation support by allowing a client session
to have a local cache of the subset of the classes.
|
class |
UnitOfWorkImpl
Implementation of oracle.toplink.essentials.sessions.UnitOfWork
The public interface should be used by public API and testing, the implementation should be used internally.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
AbstractSession.broker
Support being owned by a session broker.
|
protected AbstractSession |
UnitOfWorkImpl.parent |
protected AbstractSession |
CommitOrderDependencyNode.session |
protected AbstractSession |
CommitManager.session |
protected AbstractSession |
MergeManager.session
The unit of work merging for.
|
protected AbstractSession |
CommitOrderCalculator.session |
protected AbstractSession |
IdentityMapAccessor.session |
Modifier and Type | Method and Description |
---|---|
AbstractSession |
AbstractSession.getBroker()
INTERNAL:
Allow the session to be used from a session broker.
|
AbstractSession |
UnitOfWorkImpl.getExecutionSession(DatabaseQuery query)
INTERNAL:
Gets the session which this query will be executed on.
|
AbstractSession |
IsolatedClientSession.getExecutionSession(DatabaseQuery query)
INTERNAL:
Gets the session which this query will be executed on.
|
AbstractSession |
AbstractSession.getExecutionSession(DatabaseQuery query)
INTERNAL:
Gets the session which this query will be executed on.
|
AbstractSession |
UnitOfWorkImpl.getParent()
PUBLIC:
Return the parent.
|
AbstractSession |
AbstractSession.getParentIdentityMapSession(DatabaseQuery query)
INTERNAL:
Gets the next link in the chain of sessions followed by a query's check
early return, the chain of sessions with identity maps all the way up to
the root session.
|
AbstractSession |
UnitOfWorkImpl.getParentIdentityMapSession(DatabaseQuery query,
boolean canReturnSelf,
boolean terminalOnly)
INTERNAL:
Gets the next link in the chain of sessions followed by a query's check
early return, the chain of sessions with identity maps all the way up to
the root session.
|
AbstractSession |
IsolatedClientSession.getParentIdentityMapSession(DatabaseQuery query,
boolean canReturnSelf,
boolean terminalOnly)
INTERNAL:
Gets the next link in the chain of sessions followed by a query's check
early return, the chain of sessions with identity maps all the way up to
the root session.
|
AbstractSession |
AbstractSession.getParentIdentityMapSession(DatabaseQuery query,
boolean canReturnSelf,
boolean terminalOnly)
INTERNAL:
Gets the next link in the chain of sessions followed by a query's check
early return, the chain of sessions with identity maps all the way up to
the root session.
|
AbstractSession |
AbstractSession.getRootSession(DatabaseQuery query)
INTERNAL:
The session that this query is executed against when not in transaction.
|
AbstractSession |
IsolatedClientSessionIdentityMapAccessor.getSession()
INTERNAL:
get the session associated with this IdentityMapAccessor
|
protected AbstractSession |
CommitManager.getSession()
Return the session that this is managing commits for.
|
AbstractSession |
MergeManager.getSession() |
AbstractSession |
IdentityMapAccessor.getSession()
INTERNAL:
get the session associated with this IdentityMapAccessor
|
AbstractSession |
AbstractSession.getSessionForClass(Class domainClass)
INTERNAL:
Return the session to be used for the class.
|
Modifier and Type | Method and Description |
---|---|
void |
OrderedDirectCollectionChangeRecord.addAdditionChange(Hashtable additions,
Vector indexes,
UnitOfWorkChangeSet changes,
AbstractSession session)
INTERNAL:
This method takes a hastable of primitive objects and adds them to the add list.
|
void |
OrderedCollectionChangeRecord.addAdditionChange(Hashtable additions,
Vector indexes,
UnitOfWorkChangeSet changes,
AbstractSession session)
This method takes a hastable of primitive objects and adds them to the add list.
|
void |
CollectionChangeRecord.addAdditionChange(IdentityHashMap objectChanges,
UnitOfWorkChangeSet changeSet,
AbstractSession session)
This method takes a IdentityHashtable of objects, converts these into
ObjectChangeSets.
|
void |
UnitOfWorkChangeSet.addDeletedObject(Object object,
AbstractSession session)
INTERNAL:
Add the Deleted object to the changeSet
|
void |
UnitOfWorkChangeSet.addDeletedObjects(IdentityHashtable deletedObjects,
AbstractSession session)
INTERNAL:
Add the Deleted objects to the changeSet
|
void |
UnitOfWorkChangeSet.addNewObjectChangeSet(ObjectChangeSet objectChanges,
AbstractSession session)
INTERNAL:
Add to the changes for 'object' object to this changeSet.
|
void |
CollectionChangeRecord.addOrderedAdditionChange(Vector objectChanges,
IdentityHashtable objectChangesIndices,
UnitOfWorkChangeSet changeSet,
AbstractSession session)
INTERNAL:
This method takes a Vector of objects and converts them into
ObjectChangeSets.
|
void |
CollectionChangeRecord.addOrderedRemoveChange(Vector indicesToRemove,
Hashtable objectChanges,
UnitOfWorkChangeSet changeSet,
AbstractSession session)
INTERNAL:
This method takes a Hashtable of objects and converts them into
ObjectChangeSets.
|
void |
CollectionChangeRecord.addRemoveChange(IdentityHashMap objectChanges,
UnitOfWorkChangeSet changeSet,
AbstractSession session)
This method takes a IdentityHashtable of objects, converts these into ObjectChangeSets.
|
Object |
ObjectChangeSet.getTargetVersionOfSourceObject(AbstractSession session)
INTERNAL:
This method is used to return the complex object specified within the change record.
|
Object |
ObjectChangeSet.getTargetVersionOfSourceObject(AbstractSession session,
boolean shouldRead)
INTERNAL:
This method is used to return the complex object specified within the change record.
|
void |
UnitOfWorkChangeSet.mergeUnitOfWorkChangeSet(UnitOfWorkChangeSet mergeFromChangeSet,
AbstractSession session,
boolean postCommit)
INTERNAL:
THis method will be used to merge another changeset into this changeset.
|
void |
ObjectChangeSet.prepareChangeRecordsForSynchronization(AbstractSession session)
INTERNAL:
Iterate through the change records and ensure the cache synchronization types
are set on the change sets associated with those records.
|
void |
ChangeRecord.prepareForSynchronization(AbstractSession session)
INTERNAL:
Ensure this change record is ready to by sent remotely for cache synchronization
In general, this means setting the CacheSynchronizationType on any ObjectChangeSets
associated with this ChangeRecord
|
void |
UnitOfWorkChangeSet.putNewObjectInChangesList(ObjectChangeSet objectChangeSet,
AbstractSession session)
INTERNAL:
Used to rehash the new objects back into the objectChanges list for serialization
|
protected void |
ObjectChangeSet.removeFromIdentityMap(AbstractSession session)
Remove object represent this change set from identity map.
|
void |
UnitOfWorkChangeSet.removeObjectChangeSetFromNewList(ObjectChangeSet objectChangeSet,
AbstractSession session)
INTERNAL:
Used to remove a new object from the new objects list once it has been
inserted and added to the objectChangesList
|
void |
AbstractSession.setBroker(AbstractSession broker)
INTERNAL:
Allow the session to be used from a session broker.
|
void |
ObjectChangeSet.setOptimisticLockingPolicyAndInitialWriteLockValue(OptimisticLockingPolicy optimisticLockingPolicy,
AbstractSession session)
INTERNAL:
This method should ONLY be used to set the initial writeLock value for
an ObjectChangeSet when it is first built.
|
void |
UnitOfWorkImpl.setParent(AbstractSession parent)
INTERNAL:
Set the parent.
|
protected void |
CommitManager.setSession(AbstractSession session)
Set the session that this is managing commits for.
|
protected void |
MergeManager.setSession(AbstractSession session) |
boolean |
ObjectChangeSet.shouldInvalidateObject(Object original,
AbstractSession session)
INTERNAL:
Indicates whether the object in session cache should be invalidated.
|
void |
DirectCollectionChangeRecord.storeDatabaseCounts(Object collection,
ContainerPolicy containerPolicy,
AbstractSession session)
This method will iterate over the collection and store the database counts for
the objects within the collection, this is used for minimal updates
|
void |
ObjectChangeSet.updateChangeRecordForAttributeWithMappedObject(String attributeName,
Object value,
AbstractSession session)
ADVANCED:
Used to update a changeRecord that is stored in the CHangeSet with a new value.
|
Constructor and Description |
---|
CommitManager(AbstractSession session)
Create the commit manager on the session.
|
CommitOrderCalculator(AbstractSession session) |
CommitOrderDependencyNode(CommitOrderCalculator calculator,
ClassDescriptor descriptor,
AbstractSession session) |
IdentityMapAccessor(AbstractSession session,
IdentityMapManager identityMapManager)
INTERNAL:
An IdentityMapAccessor sits between the session and the identityMapManager
It needs references in both directions
|
IsolatedClientSessionIdentityMapAccessor(AbstractSession session,
IdentityMapManager identityMapManager)
INTERNAL:
An IdentityMapAccessor sits between the session and the identityMapManager
It needs references in both directions
|
MergeManager(AbstractSession session) |
UnitOfWorkIdentityMapAccessor(AbstractSession session,
IdentityMapManager identityMapManager) |
UnitOfWorkImpl(AbstractSession parent)
INTERNAL:
Create and return a new unit of work with the sesson as its parent.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
SessionLogEntry.session |
Modifier and Type | Method and Description |
---|---|
AbstractSession |
SessionLogEntry.getSession()
PUBLIC:
Return the session that generated the log entry.
|
Modifier and Type | Method and Description |
---|---|
void |
SessionLogEntry.setSession(AbstractSession session)
PUBLIC:
Set the session that generated the log entry.
|
Constructor and Description |
---|
SessionLogEntry(AbstractSession session)
PUBLIC:
Create a new session log entry for a session
|
SessionLogEntry(AbstractSession session,
int level,
String category,
Throwable throwable)
PUBLIC:
Create a new session log entry for a session, a level, a category and an exception
|
SessionLogEntry(AbstractSession session,
String message)
PUBLIC:
Create a new session log entry for a session and a message
|
SessionLogEntry(AbstractSession session,
String message,
Accessor connection)
PUBLIC:
Create a new session log entry for a session, a message and an accessor
|
SessionLogEntry(AbstractSession session,
Throwable throwable)
PUBLIC:
Create a new session log entry for a session and an exception
|
SessionLogEntry(int level,
AbstractSession session,
String message,
Object[] params,
Accessor connection,
boolean shouldTranslate)
PUBLIC:
Create a new session log entry for a request level, a session, a message and an accessor
|
SessionLogEntry(int level,
String category,
AbstractSession session,
String message,
Object[] params,
Accessor connection,
boolean shouldTranslate)
PUBLIC:
Create a new session log entry for a request level, a session, a message and an accessor
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
ForeignReferenceMapping.tempInitSession
The session is temporarily used for initialization.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractSession |
ForeignReferenceMapping.getTempSession() |
Modifier and Type | Method and Description |
---|---|
protected Object |
AggregateObjectMapping.buildAggregateFromRow(AbstractRecord databaseRow,
Object targetObject,
JoinedAttributeManager joinManager,
boolean buildShallowOriginal,
AbstractSession session)
INTERNAL:
Build and return an aggregate object from the specified row.
|
ChangeRecord |
ObjectReferenceMapping.buildChangeRecord(Object clone,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
Directly build a change record without comparison
|
ChangeRecord |
DatabaseMapping.buildChangeRecord(Object newValue,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
Directly build a change record without comparison
|
ChangeRecord |
CollectionMapping.buildChangeRecord(Object clone,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
Directly build a change record without comparison
|
void |
ForeignReferenceMapping.buildCloneFromRow(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object clone,
ObjectBuildingQuery sourceQuery,
UnitOfWorkImpl unitOfWork,
AbstractSession executionSession)
INTERNAL:
A combination of readFromRowIntoObject and buildClone.
|
void |
AggregateMapping.buildCloneFromRow(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object clone,
ObjectBuildingQuery sourceQuery,
UnitOfWorkImpl unitOfWork,
AbstractSession executionSession)
INTERNAL:
A combination of readFromRowIntoObject and buildClone.
|
abstract void |
DatabaseMapping.buildCloneFromRow(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object clone,
ObjectBuildingQuery sourceQuery,
UnitOfWorkImpl unitOfWork,
AbstractSession executionSession)
INTERNAL:
A combination of readFromRowIntoObject and buildClone.
|
void |
AggregateObjectMapping.buildCloneFromRow(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object clone,
ObjectBuildingQuery sourceQuery,
UnitOfWorkImpl unitOfWork,
AbstractSession executionSession)
INTERNAL:
A combination of readFromRowIntoObject and buildClone.
|
protected Object |
AggregateMapping.buildNewMergeInstanceOf(Object sourceAttributeValue,
AbstractSession session)
INTERNAL:
Build and return a new instance of the specified attribute.
|
Expression |
OneToOneMapping.buildObjectJoinExpression(Expression expression,
Expression argument,
AbstractSession session)
INTERNAL:
Used to allow object level comparisons.
|
Expression |
DatabaseMapping.buildObjectJoinExpression(Expression base,
Expression argument,
AbstractSession session)
INTERNAL:
Used to allow object level comparisons.
|
Expression |
AggregateObjectMapping.buildObjectJoinExpression(Expression expression,
Expression argument,
AbstractSession session)
INTERNAL:
Used to allow object level comparisons.
|
Expression |
OneToOneMapping.buildObjectJoinExpression(Expression expression,
Object value,
AbstractSession session)
INTERNAL:
Used to allow object level comparisons.
|
Expression |
DatabaseMapping.buildObjectJoinExpression(Expression base,
Object value,
AbstractSession session)
INTERNAL:
Used to allow object level comparisons.
|
Expression |
AggregateObjectMapping.buildObjectJoinExpression(Expression expression,
Object value,
AbstractSession session)
INTERNAL:
Used to allow object level comparisons.
|
protected AbstractRecord |
AggregateObjectMapping.buildRowFromAggregate(Object object,
Object attributeValue,
AbstractSession session)
INTERNAL:
Build and return a database row built with the values from
the specified attribute value.
|
protected AbstractRecord |
AggregateObjectMapping.buildRowFromAggregate(Object object,
Object attributeValue,
AbstractSession session,
boolean forceWriteOfReadOnlyClasses)
INTERNAL:
Build and return a database row built with the values from
the specified attribute value.
|
protected AbstractRecord |
AggregateObjectMapping.buildRowFromAggregateWithChangeRecord(ChangeRecord changeRecord,
ObjectChangeSet objectChangeSet,
AbstractSession session)
INTERNAL:
Build and return a database row built with the values from
the specified attribute value.
|
protected AbstractRecord |
AggregateObjectMapping.buildRowFromAggregateWithChangeRecord(ChangeRecord changeRecord,
ObjectChangeSet objectChangeSet,
AbstractSession session,
boolean forceWriteOfReadOnlyClasses)
INTERNAL:
Build and return a database row built with the values from
the specified attribute value.
|
void |
AggregateObjectMapping.buildShallowOriginalFromRow(AbstractRecord databaseRow,
Object original,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
Builds a shallow original object.
|
void |
OneToOneMapping.buildShallowOriginalFromRow(AbstractRecord databaseRow,
Object original,
ObjectBuildingQuery query,
AbstractSession executionSession)
INTERNAL:
Builds a shallow original object.
|
void |
DatabaseMapping.buildShallowOriginalFromRow(AbstractRecord databaseRow,
Object original,
ObjectBuildingQuery query,
AbstractSession executionSession)
INTERNAL:
Builds a shallow original object.
|
protected AbstractRecord |
AggregateObjectMapping.buildTemplateInsertRow(AbstractSession session)
INTERNAL:
Build and return a "template" database row with all the fields
set to null.
|
void |
DirectCollectionMapping.calculateDeferredChanges(ChangeRecord changeRecord,
AbstractSession session)
INTERNAL:
Used by AttributeLevelChangeTracking to update a changeRecord with calculated changes
as apposed to detected changes.
|
void |
DatabaseMapping.calculateDeferredChanges(ChangeRecord changeRecord,
AbstractSession session)
INTERNAL:
Used by AttributeLevelChangeTracking to update a changeRecord with calculated changes
as apposed to detected changes.
|
void |
CollectionMapping.calculateDeferredChanges(ChangeRecord changeRecord,
AbstractSession session)
INTERNAL:
Used by AttributeLevelChangeTracking to update a changeRecord with calculated changes
as apposed to detected changes.
|
protected boolean |
AggregateMapping.compareAttributeValues(Object attributeValue1,
Object attributeValue2,
AbstractSession session)
INTERNAL:
Compare the attributes.
|
void |
DirectCollectionMapping.compareCollectionsForChange(Object oldCollection,
Object newCollection,
ChangeRecord changeRecord,
AbstractSession session)
INTERNAL:
This method is used to calculate the differences between two collections.
|
void |
CollectionMapping.compareCollectionsForChange(Object oldCollection,
Object newCollection,
ChangeRecord changeRecord,
AbstractSession session)
INTERNAL:
This method is used to calculate the differences between two collections.
|
ChangeRecord |
DirectMapMapping.compareForChange(Object clone,
Object backUp,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
This method compares the changes between two direct collections.
|
ChangeRecord |
ObjectReferenceMapping.compareForChange(Object clone,
Object backUp,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
This method was created in VisualAge.
|
ChangeRecord |
AggregateMapping.compareForChange(Object clone,
Object backup,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
Compare the changes between two aggregates.
|
ChangeRecord |
DirectCollectionMapping.compareForChange(Object clone,
Object backUp,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
This method compares the changes between two direct collections.
|
abstract ChangeRecord |
DatabaseMapping.compareForChange(Object clone,
Object backup,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
This method was created in VisualAge.
|
ChangeRecord |
AggregateCollectionMapping.compareForChange(Object clone,
Object backUp,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
This method is used to create a change record from comparing two aggregate collections
|
ChangeRecord |
CollectionMapping.compareForChange(Object clone,
Object backUp,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
This method is used to create a change record from comparing two collections
|
boolean |
DirectMapMapping.compareObjects(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the attributes belonging to this mapping for the objects.
|
boolean |
ForeignReferenceMapping.compareObjects(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the attributes belonging to this mapping for the objects.
|
boolean |
AggregateMapping.compareObjects(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the attributes belonging to this mapping for the objects.
|
boolean |
DirectCollectionMapping.compareObjects(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the attributes belonging to this mapping for the objects.
|
abstract boolean |
DatabaseMapping.compareObjects(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the attributes belonging to this mapping for the objects.
|
boolean |
AggregateCollectionMapping.compareObjects(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the attributes belonging to this mapping for the objects.
|
boolean |
CollectionMapping.compareObjects(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the attributes belonging to this mapping for the objects.
|
protected abstract boolean |
ForeignReferenceMapping.compareObjectsWithoutPrivateOwned(Object first,
Object second,
AbstractSession session)
Compare two objects if their parts are not private owned
|
protected boolean |
ObjectReferenceMapping.compareObjectsWithoutPrivateOwned(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the references of the two objects are the same, not the objects themselves.
|
protected boolean |
CollectionMapping.compareObjectsWithoutPrivateOwned(Object firstCollection,
Object secondCollection,
AbstractSession session)
Compare two objects if their parts are not private owned
|
protected abstract boolean |
ForeignReferenceMapping.compareObjectsWithPrivateOwned(Object first,
Object second,
AbstractSession session)
Compare two objects if their parts are private owned
|
protected boolean |
ObjectReferenceMapping.compareObjectsWithPrivateOwned(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the references of the two objects are the same, and the objects themselves are the same.
|
protected boolean |
CollectionMapping.compareObjectsWithPrivateOwned(Object firstCollection,
Object secondCollection,
AbstractSession session)
Compare two objects if their parts are private owned
|
protected ChangeRecord |
AggregateCollectionMapping.convertToChangeRecord(Object cloneCollection,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
This method is used to convert the contents of an aggregateCollection into a
changeRecord
|
protected Vector |
OneToManyMapping.extractForeignKeyFromReferenceObject(Object object,
AbstractSession session)
Extract the foreign key value from the reference object.
|
protected Vector |
OneToOneMapping.extractForeignKeyFromRow(AbstractRecord row,
AbstractSession session)
INTERNAL:
Extract the foreign key value from the source row.
|
protected Vector |
OneToOneMapping.extractKeyFromReferenceObject(Object object,
AbstractSession session)
INTERNAL:
Extract the key value from the reference object.
|
protected Vector |
DirectCollectionMapping.extractKeyFromReferenceRow(AbstractRecord row,
AbstractSession session)
INTERNAL:
Extract the source primary key value from the reference direct row.
|
protected Vector |
ManyToManyMapping.extractKeyFromRelationRow(AbstractRecord row,
AbstractSession session)
INTERNAL:
Extract the source primary key value from the relation row.
|
protected Vector |
OneToManyMapping.extractKeyFromRow(AbstractRecord row,
AbstractSession session)
Extract the key field values from the specified row.
|
protected Vector |
AggregateCollectionMapping.extractKeyFromTargetRow(AbstractRecord row,
AbstractSession session)
INTERNAL:
Extract the source primary key value from the target row.
|
protected Vector |
DirectCollectionMapping.extractPrimaryKeyFromRow(AbstractRecord row,
AbstractSession session)
INTERNAL:
Extract the primary key value from the source row.
|
protected Vector |
AggregateCollectionMapping.extractPrimaryKeyFromRow(AbstractRecord row,
AbstractSession session)
INTERNAL:
Extract the primary key value from the source row.
|
protected Vector |
ManyToManyMapping.extractPrimaryKeyFromRow(AbstractRecord row,
AbstractSession session)
INTERNAL:
Extract the primary key value from the source row.
|
AbstractRecord |
ObjectReferenceMapping.extractPrimaryKeyRowForSourceObject(Object domainObject,
AbstractSession session)
INTERNAL:
Extract the reference pk for rvh usage in remote model.
|
Vector |
ObjectReferenceMapping.extractPrimaryKeysForReferenceObject(Object domainObject,
AbstractSession session)
INTERNAL:
Extract the reference pk for rvh usage in remote model.
|
Vector |
ObjectReferenceMapping.extractPrimaryKeysFromRealReferenceObject(Object object,
AbstractSession session)
INTERNAL:
Extract the reference pk for rvh usage in remote model.
|
Object |
DirectMapMapping.extractResultFromBatchQuery(DatabaseQuery query,
AbstractRecord databaseRow,
AbstractSession session,
AbstractRecord argumentRow)
INTERNAL:
Ovewrite super method
|
protected Expression |
AggregateCollectionMapping.getDeleteAllCriteria(AbstractSession session)
Delete all criteria is created with target foreign keys and source keys.
|
ClassDescriptor |
ObjectReferenceMapping.getDescriptorForTarget(Object object,
AbstractSession session)
INTERNAL:
Return a descriptor for the target of this mapping
|
protected InsertObjectQuery |
AggregateCollectionMapping.getInsertObjectQuery(AbstractSession session,
ClassDescriptor desc)
INTERNAL:
Returns clone of InsertObjectQuery from the reference descriptor, if it is not set - create it.
|
protected Object |
AggregateObjectMapping.getMatchingAttributeValueFromObject(AbstractRecord row,
Object targetObject,
AbstractSession session,
ClassDescriptor descriptor)
INTERNAL:
This is used to preserve object identity during a refreshObject()
query.
|
protected ObjectBuilder |
AggregateMapping.getObjectBuilder(Object attributeValue,
AbstractSession session)
Convenience method
|
protected ObjectBuilder |
AggregateMapping.getObjectBuilderForClass(Class javaClass,
AbstractSession session)
Convenience method
|
protected Vector |
ObjectReferenceMapping.getPrimaryKeyForObject(Object object,
AbstractSession session)
INTERNAL:
|
protected DescriptorQueryManager |
AggregateMapping.getQueryManager(Object attributeValue,
AbstractSession session)
Convenience method
|
Object |
ForeignReferenceMapping.getRealAttributeValueFromObject(Object object,
AbstractSession session)
INTERNAL:
Returns the attribute value from the reference object.
|
Object |
ObjectReferenceMapping.getRealAttributeValueFromObject(Object object,
AbstractSession session)
INTERNAL:
Object reference must unwrap the reference object if required.
|
Object |
DatabaseMapping.getRealAttributeValueFromObject(Object object,
AbstractSession session)
INTERNAL:
Return the value of an attribute unwrapping value holders if required.
|
Object |
CollectionMapping.getRealAttributeValueFromObject(Object object,
AbstractSession session)
INTERNAL:
Return the value of an attribute, unwrapping value holders if necessary.
|
Object |
DatabaseMapping.getRealCollectionAttributeValueFromObject(Object object,
AbstractSession session)
INTERNAL:
Return the value of an attribute, unwrapping value holders if necessary.
|
Object |
CollectionMapping.getRealCollectionAttributeValueFromObject(Object object,
AbstractSession session)
Convenience method.
|
protected ClassDescriptor |
AggregateMapping.getReferenceDescriptor(Class theClass,
AbstractSession session)
INTERNAL:
For inheritance purposes.
|
protected ClassDescriptor |
AggregateObjectMapping.getReferenceDescriptor(Class theClass,
AbstractSession session)
INTERNAL:
Since aggregate object mappings clone their descriptors, for inheritance the correct child clone must be found.
|
ClassDescriptor |
AggregateCollectionMapping.getReferenceDescriptor(Class theClass,
AbstractSession session)
INTERNAL:
for inheritance purpose
|
protected ClassDescriptor |
AggregateMapping.getReferenceDescriptor(Object attributeValue,
AbstractSession session)
Convenience method
|
void |
DirectMapMapping.initialize(AbstractSession session)
INTERNAL:
Initialize and validate the mapping properties.
|
void |
OneToManyMapping.initialize(AbstractSession session)
INTERNAL:
Initialize the mapping.
|
void |
ForeignReferenceMapping.initialize(AbstractSession session)
INTERNAL:
Initialize the state of mapping.
|
void |
AggregateMapping.initialize(AbstractSession session)
INTERNAL:
Initialize the reference descriptor.
|
void |
OneToOneMapping.initialize(AbstractSession session)
INTERNAL:
Initialize the mapping.
|
void |
DirectCollectionMapping.initialize(AbstractSession session)
INTERNAL:
Initialize and validate the mapping properties.
|
void |
DatabaseMapping.initialize(AbstractSession session)
INTERNAL:
Allow for initialization of properties and validation.
|
void |
AggregateObjectMapping.initialize(AbstractSession session)
INTERNAL:
For an aggregate mapping the reference descriptor is cloned.
|
void |
AggregateCollectionMapping.initialize(AbstractSession session)
INTERNAL:
For aggregate collection mapping the reference descriptor is cloned.
|
void |
ManyToManyMapping.initialize(AbstractSession session)
INTERNAL:
Initialize mappings
|
void |
CollectionMapping.initialize(AbstractSession session)
INTERNAL:
Initialize the state of mapping.
|
void |
AggregateObjectMapping.initializeChildInheritance(ClassDescriptor parentDescriptor,
AbstractSession session)
INTERNAL:
For an aggregate mapping the reference descriptor is cloned.
|
void |
AggregateCollectionMapping.initializeChildInheritance(ClassDescriptor parentDescriptor,
AbstractSession session)
INTERNAL:
For aggregate mapping the reference descriptor is cloned.
|
protected void |
DirectMapMapping.initializeContainerPolicy(AbstractSession session)
set the key and value fields that are used to build the container from database rows
|
protected void |
DirectCollectionMapping.initializeDeleteAllQuery(AbstractSession session)
Initialize delete all query.
|
protected void |
AggregateCollectionMapping.initializeDeleteAllQuery(AbstractSession session)
INTERNAL:
Initialize delete all query.
|
protected void |
ManyToManyMapping.initializeDeleteAllQuery(AbstractSession session)
Initialize delete all query.
|
protected void |
DirectMapMapping.initializeDeleteQuery(AbstractSession session) |
protected void |
DirectCollectionMapping.initializeDeleteQuery(AbstractSession session) |
protected void |
ManyToManyMapping.initializeDeleteQuery(AbstractSession session)
INTERNAL:
Initialize delete query.
|
protected void |
DirectCollectionMapping.initializeDirectField(AbstractSession session)
The field name on the reference table is initialized and cached.
|
protected void |
DirectMapMapping.initializeDirectKeyField(AbstractSession session)
The field name on the reference table is initialized and cached.
|
protected void |
OneToOneMapping.initializeForeignKeys(AbstractSession session)
INTERNAL:
The foreign keys primary keys are stored as database fields in the hashtable.
|
protected void |
OneToOneMapping.initializeForeignKeysWithDefaults(AbstractSession session)
INTERNAL:
The foreign keys primary keys are stored as database fields in the hashtable.
|
protected void |
DirectMapMapping.initializeInsertQuery(AbstractSession session)
Initialize insert query.
|
protected void |
DirectCollectionMapping.initializeInsertQuery(AbstractSession session)
Initialize insert query.
|
protected void |
ManyToManyMapping.initializeInsertQuery(AbstractSession session)
INTERNAL:
Initialize insert query.
|
void |
AggregateObjectMapping.initializeParentInheritance(ClassDescriptor parentDescriptor,
ClassDescriptor childDescriptor,
AbstractSession session)
INTERNAL:
For an aggregate mapping the reference descriptor is cloned.
|
void |
AggregateCollectionMapping.initializeParentInheritance(ClassDescriptor parentDescriptor,
ClassDescriptor childDescriptor,
AbstractSession session)
INTERNAL:
For aggregate mapping the reference descriptor is cloned.
|
protected void |
ForeignReferenceMapping.initializeReferenceDescriptor(AbstractSession session)
Initialize and set the descriptor for the referenced class in this mapping.
|
protected void |
DirectCollectionMapping.initializeReferenceDescriptor(AbstractSession session)
There is no reference descriptor
|
protected void |
DirectCollectionMapping.initializeReferenceKeys(AbstractSession session)
The reference keys on the reference table are initalized
|
protected void |
DirectCollectionMapping.initializeReferenceTable(AbstractSession session) |
protected void |
ManyToManyMapping.initializeRelationTable(AbstractSession session)
INTERNAL:
Set the table qualifier on the relation table if required
|
protected void |
OneToOneMapping.initializeSelectionCriteria(AbstractSession session)
INTERNAL:
Selection criteria is created with source foreign keys and target keys.
|
protected void |
DirectCollectionMapping.initializeSelectionCriteria(AbstractSession session) |
protected void |
AggregateCollectionMapping.initializeSelectionCriteria(AbstractSession session)
INTERNAL:
Selection criteria is created with target foreign keys and source keys.
|
protected void |
ManyToManyMapping.initializeSelectionCriteria(AbstractSession session)
INTERNAL:
Selection criteria is created to read target records from the table.
|
protected void |
ForeignReferenceMapping.initializeSelectionQuery(AbstractSession session)
A subclass should implement this method if it wants non default behaviour.
|
protected void |
DirectCollectionMapping.initializeSelectionQuery(AbstractSession session)
The selection query is initialized
|
protected void |
DirectMapMapping.initializeSelectionStatement(AbstractSession session) |
protected void |
DirectCollectionMapping.initializeSelectionStatement(AbstractSession session) |
protected void |
DirectCollectionMapping.initializeSourceKeys(AbstractSession session)
The source keys are initalized
|
protected void |
ManyToManyMapping.initializeSourceKeys(AbstractSession session)
INTERNAL:
All the source key field names are converted to DatabaseField and stored.
|
protected void |
DirectCollectionMapping.initializeSourceKeysWithDefaults(AbstractSession session)
INTERNAL:
If a user does not specify the source key then the primary keys of the source table are used.
|
protected void |
ManyToManyMapping.initializeSourceKeysWithDefaults(AbstractSession session)
INTERNAL:
If a user does not specify the source key then the primary keys of the source table are used.
|
protected void |
ManyToManyMapping.initializeSourceRelationKeys(AbstractSession session)
INTERNAL:
All the source relation key field names are converted to DatabaseField and stored.
|
protected void |
AggregateCollectionMapping.initializeTargetForeignKeyToSourceKeys(AbstractSession session)
INTERNAL:
The foreign keys and the primary key names are converted to DatabaseFields and stored.
|
protected void |
AggregateCollectionMapping.initializeTargetForeignKeyToSourceKeysWithDefaults(AbstractSession session)
INTERNAL:
The foreign keys and the primary key names are converted to DatabaseFields and stored.
|
protected void |
ManyToManyMapping.initializeTargetKeys(AbstractSession session)
INTERNAL:
All the target key field names are converted to DatabaseField and stored.
|
protected void |
ManyToManyMapping.initializeTargetKeysWithDefaults(AbstractSession session)
INTERNAL:
If a user does not specify the target key then the primary keys of the target table are used.
|
protected void |
ManyToManyMapping.initializeTargetRelationKeys(AbstractSession session)
INTERNAL:
All the target relation key field names are converted to DatabaseField and stored.
|
ObjectReferenceChangeRecord |
ObjectReferenceMapping.internalBuildChangeRecord(Object newValue,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
Directly build a change record based on the newValue without comparison
|
void |
DirectCollectionMapping.performDataModificationEvent(Object[] event,
AbstractSession session)
INTERNAL:
Perform the commit event.
|
void |
DatabaseMapping.performDataModificationEvent(Object[] event,
AbstractSession session)
INTERNAL:
Perform the commit event.
|
void |
ManyToManyMapping.performDataModificationEvent(Object[] event,
AbstractSession session)
INTERNAL:
Perform the commit event.
|
void |
DatabaseMapping.postInitialize(AbstractSession session)
INTERNAL:
Allow for initialization of properties and validation that have dependecies no the descriptor
being initialized.
|
void |
AggregateObjectMapping.postInitialize(AbstractSession session)
INTERNAL:
For an aggregate mapping the reference descriptor is cloned.
|
void |
AggregateCollectionMapping.postInitialize(AbstractSession session)
INTERNAL:
For aggregate collection mapping the reference descriptor is cloned.
|
void |
DatabaseMapping.preInitialize(AbstractSession session)
INTERNAL:
Allow for initialization of properties and validation.
|
protected ReadQuery |
ForeignReferenceMapping.prepareHistoricalQuery(ReadQuery targetQuery,
ObjectLevelReadQuery sourceQuery,
AbstractSession executionSession)
INTERNAL:
Allow for the mapping to perform any historical query additions.
|
ObjectLevelReadQuery |
ForeignReferenceMapping.prepareNestedJoins(JoinedAttributeManager joinManager,
AbstractSession session)
INTERNAL:
Clone and prepare the JoinedAttributeManager nested JoinedAttributeManager.
|
protected void |
DirectCollectionMapping.prepareTranslationRow(AbstractRecord translationRow,
Object object,
AbstractSession session)
INTERNAL:
The translation row may require additional fields than the primary key if the mapping in not on the primary key.
|
protected void |
ManyToManyMapping.prepareTranslationRow(AbstractRecord translationRow,
Object object,
AbstractSession session)
INTERNAL:
The translation row may require additional fields than the primary key if the mapping in not on the primary key.
|
protected void |
CollectionMapping.prepareTranslationRow(AbstractRecord translationRow,
Object object,
AbstractSession session)
INTERNAL:
copies the non primary key information into the row currently used only in ManyToMany
|
Object |
DatabaseMapping.readFromRowIntoObject(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object targetObject,
ObjectBuildingQuery sourceQuery,
AbstractSession executionSession)
INTERNAL:
Extract value from the row and set the attribute to this value in the object.
|
Object |
AggregateObjectMapping.readFromRowIntoObject(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object targetObject,
ObjectBuildingQuery sourceQuery,
AbstractSession executionSession)
INTERNAL:
Build an aggregate object from the specified row and put it
in the specified target object.
|
void |
OneToOneMapping.rehashFieldDependancies(AbstractSession session)
INTERNAL:
Rehash any hashtables based on fields.
|
void |
DatabaseMapping.rehashFieldDependancies(AbstractSession session)
INTERNAL:
Rehash any hashtables based on fields.
|
void |
AggregateObjectMapping.rehashFieldDependancies(AbstractSession session)
INTERNAL:
Rehash any hashtables based on fields.
|
void |
ObjectReferenceMapping.setNewValueInChangeRecord(Object newValue,
ObjectReferenceChangeRecord changeRecord,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
Set the newValue in the change record
|
protected void |
ForeignReferenceMapping.setTempSession(AbstractSession session) |
void |
DirectMapMapping.simpleAddToCollectionChangeRecord(Object referenceKey,
Object objectToAdd,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to have an object add to a collection once the changeSet is applied
The referenceKey parameter should only be used for direct Maps.
|
void |
DirectCollectionMapping.simpleAddToCollectionChangeRecord(Object referenceKey,
Object objectToAdd,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to have an object add to a collection once the changeSet is applied
The referenceKey parameter should only be used for direct Maps.
|
void |
DatabaseMapping.simpleAddToCollectionChangeRecord(Object referenceKey,
Object changeSetToAdd,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to add an object to a collection once the changeSet is applied.
|
void |
AggregateCollectionMapping.simpleAddToCollectionChangeRecord(Object referenceKey,
Object changeSetToAdd,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to have an object add to a collection once the changeSet is applied
The referenceKey parameter should only be used for direct Maps.
|
void |
CollectionMapping.simpleAddToCollectionChangeRecord(Object referenceKey,
Object changeSetToAdd,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to have an object add to a collection once the
changeSet is applied.
|
void |
DirectMapMapping.simpleRemoveFromCollectionChangeRecord(Object referenceKey,
Object objectToRemove,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to have an object removed from a collection once the changeSet is applied
The referenceKey parameter should only be used for direct Maps.
|
void |
DirectCollectionMapping.simpleRemoveFromCollectionChangeRecord(Object referenceKey,
Object objectToRemove,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to have an object removed from a collection once the changeSet is applied
The referenceKey parameter should only be used for direct Maps.
|
void |
DatabaseMapping.simpleRemoveFromCollectionChangeRecord(Object referenceKey,
Object changeSetToAdd,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to remove an object from a collection once the changeSet is applied.
|
void |
AggregateCollectionMapping.simpleRemoveFromCollectionChangeRecord(Object referenceKey,
Object changeSetToRemove,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to have an object removed from a collection once the changeSet is applied
The referenceKey parameter should only be used for direct Maps.
|
void |
CollectionMapping.simpleRemoveFromCollectionChangeRecord(Object referenceKey,
Object changeSetToRemove,
ObjectChangeSet changeSet,
AbstractSession session)
ADVANCED:
This method is used to have an object removed from a collection once the
changeSet is applied.
|
protected void |
AggregateObjectMapping.translateFields(ClassDescriptor clonedDescriptor,
AbstractSession session)
INTERNAL:
If field names are different in the source and aggregate objects then the translation
is done here.
|
AbstractRecord |
ForeignReferenceMapping.trimRowForJoin(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
|
AbstractRecord |
ForeignReferenceMapping.trimRowForJoin(AbstractRecord row,
Object value,
AbstractSession executionSession)
INTERNAL:
|
void |
DatabaseMapping.validateAfterInitialization(AbstractSession session)
INTERNAL:
Allow for subclasses to perform validation.
|
void |
ForeignReferenceMapping.validateBeforeInitialization(AbstractSession session)
INTERNAL:
To validate mappings decleration
|
void |
DatabaseMapping.validateBeforeInitialization(AbstractSession session)
INTERNAL:
Allow for subclasses to perform validation.
|
void |
CollectionMapping.validateBeforeInitialization(AbstractSession session)
INTERNAL:
To validate mappings declaration
|
Object |
OneToOneMapping.valueFromObject(Object object,
DatabaseField field,
AbstractSession session)
INTERNAL:
Get a value from the object and set that in the respective field of the row.
|
Object |
DatabaseMapping.valueFromObject(Object anObject,
DatabaseField field,
AbstractSession session)
INTERNAL:
A subclass should extract the value from the object for the field, if it does not map the field then
it should return null.
|
Object |
AggregateObjectMapping.valueFromObject(Object object,
DatabaseField field,
AbstractSession session)
INTERNAL:
Extract value of the field from the object
|
Object |
ForeignReferenceMapping.valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
AbstractSession executionSession)
INTERNAL:
Return the value of the reference attribute or a value holder.
|
Object |
DirectCollectionMapping.valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
AbstractSession session)
INTERNAL:
Return the value of the reference attribute or a value holder.
|
Object |
DatabaseMapping.valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
AbstractSession session)
INTERNAL:
|
protected Object |
ForeignReferenceMapping.valueFromRowInternal(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
Return the value of the reference attribute or a value holder.
|
protected Object |
OneToOneMapping.valueFromRowInternal(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
Return the value of the field from the row or a value holder on the query to obtain the object.
|
protected Object |
AggregateCollectionMapping.valueFromRowInternal(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
Retrieves a value from the row for a particular query key
|
protected Object |
ForeignReferenceMapping.valueFromRowInternalWithJoin(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
If the query used joining or partial attributes, build the target object directly.
|
protected Object |
OneToOneMapping.valueFromRowInternalWithJoin(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
If the query used joining or partial attributes, build the target object directly.
|
protected Object |
CollectionMapping.valueFromRowInternalWithJoin(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
Return the value of the field from the row or a value holder on the query to obtain the object.
|
boolean |
OneToManyMapping.verifyDelete(Object object,
AbstractSession session)
INTERNAL:
Used to verify whether the specified object is deleted or not.
|
boolean |
ObjectReferenceMapping.verifyDelete(Object object,
AbstractSession session)
INTERNAL:
To verify if the specified object is deleted or not.
|
boolean |
AggregateMapping.verifyDelete(Object object,
AbstractSession session)
INTERNAL:
Return whether the specified object and all its components have been deleted.
|
boolean |
DirectCollectionMapping.verifyDelete(Object object,
AbstractSession session)
INTERNAL:
Checks if object is deleted from the database or not.
|
boolean |
DatabaseMapping.verifyDelete(Object object,
AbstractSession session)
INTERNAL:
To verify if the specified object has been deleted or not.
|
boolean |
AggregateCollectionMapping.verifyDelete(Object object,
AbstractSession session)
INTERNAL:
Checks if object is deleted from the database or not.
|
boolean |
CollectionMapping.verifyDelete(Object object,
AbstractSession session)
INTERNAL:
Checks if object is deleted from the database or not.
|
protected boolean |
AggregateMapping.verifyDeleteOfAttributeValue(Object attributeValue,
AbstractSession session)
INTERNAL:
Return whether the specified object and all its components have been deleted.
|
void |
OneToOneMapping.writeFromAttributeIntoRow(Object attribute,
AbstractRecord row,
AbstractSession session)
INTERNAL:
A subclass should implement this method if it wants different behaviour.
|
void |
DatabaseMapping.writeFromAttributeIntoRow(Object attribute,
AbstractRecord row,
AbstractSession session)
INTERNAL:
A subclass should implement this method if it wants different behaviour.
|
void |
AggregateObjectMapping.writeFromAttributeIntoRow(Object attribute,
AbstractRecord row,
AbstractSession session)
INTERNAL:
A subclass should implement this method if it wants different behaviour.
|
void |
OneToOneMapping.writeFromObjectIntoRow(Object object,
AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Get a value from the object and set that in the respective field of the row.
|
void |
DatabaseMapping.writeFromObjectIntoRow(Object object,
AbstractRecord row,
AbstractSession session)
INTERNAL:
A subclass should implement this method if it wants different behaviour.
|
void |
AggregateObjectMapping.writeFromObjectIntoRow(Object object,
AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Get the attribute value from the object and add the appropriate
values to the specified database row.
|
void |
OneToOneMapping.writeFromObjectIntoRowForShallowDelete(Object object,
AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
This row is built for shallow update which happens in case of bidirectional deletes.
|
void |
DatabaseMapping.writeFromObjectIntoRowForShallowDelete(Object object,
AbstractRecord row,
AbstractSession session)
INTERNAL:
This row is built for shallow delete which happens in case of circular dependencies for bidirectional deletes.
|
void |
OneToOneMapping.writeFromObjectIntoRowForShallowInsert(Object object,
AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
This row is built for shallow insert which happens in case of bidirectional inserts.
|
void |
DatabaseMapping.writeFromObjectIntoRowForShallowInsert(Object object,
AbstractRecord row,
AbstractSession session)
INTERNAL:
This row is built for shallow insert which happens in case of of circular dependencies bidirectional inserts.
|
void |
OneToOneMapping.writeFromObjectIntoRowForShallowInsertWithChangeRecord(ChangeRecord ChangeRecord,
AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
This row is built for shallow insert which happens in case of bidirectional inserts.
|
void |
DatabaseMapping.writeFromObjectIntoRowForShallowInsertWithChangeRecord(ChangeRecord changeRecord,
AbstractRecord row,
AbstractSession session)
INTERNAL:
This row is built for shallow insert which happens in case of bidirectional inserts.
|
protected void |
OneToOneMapping.writeFromObjectIntoRowForShallowOperation(Object object,
AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
This row is built for shallow insert or delete which happens in case of bidirectional relationships.
|
void |
OneToOneMapping.writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord,
AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Get a value from the object and set that in the respective field of the row.
|
void |
DatabaseMapping.writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord,
AbstractRecord row,
AbstractSession session)
INTERNAL:
A subclass should implement this method if it wants different behaviour.
|
void |
AggregateObjectMapping.writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord,
AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Get the attribute value from the object and add the appropriate
values to the specified database row.
|
void |
OneToOneMapping.writeInsertFieldsIntoRow(AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Write fields needed for insert into the template for with null values.
|
void |
DatabaseMapping.writeInsertFieldsIntoRow(AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Write fields needed for insert into the template for with null values.
|
void |
AggregateObjectMapping.writeInsertFieldsIntoRow(AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Write fields needed for insert into the template for with null values.
|
void |
DatabaseMapping.writeUpdateFieldsIntoRow(AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Write fields needed for update into the template for with null values.
|
Modifier and Type | Method and Description |
---|---|
ChangeRecord |
AbstractDirectMapping.buildChangeRecord(Object clone,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
Directly build a change record without comparison
|
void |
AbstractDirectMapping.buildCloneFromRow(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object clone,
ObjectBuildingQuery sourceQuery,
UnitOfWorkImpl unitOfWork,
AbstractSession executionSession)
INTERNAL:
Extract value from the row and set the attribute to this value in the
working copy clone.
|
void |
AbstractDirectMapping.buildCloneValue(Object original,
Object clone,
AbstractSession session)
INTERNAL:
Clone the attribute from the original and assign it to the clone.
|
void |
AbstractDirectMapping.buildShallowOriginalFromRow(AbstractRecord databaseRow,
Object original,
ObjectBuildingQuery query,
AbstractSession executionSession)
INTERNAL:
Builds a shallow original object.
|
ChangeRecord |
AbstractDirectMapping.compareForChange(Object clone,
Object backUp,
ObjectChangeSet owner,
AbstractSession session)
INTERNAL:
Compare the clone and backup clone values and return a change record if the value changed.
|
boolean |
AbstractDirectMapping.compareObjects(Object firstObject,
Object secondObject,
AbstractSession session)
INTERNAL:
Compare the attributes belonging to this mapping for the objects.
|
Object |
AbstractDirectMapping.getAttributeValue(Object fieldValue,
AbstractSession session)
INTERNAL:
Allows for subclasses to convert the attribute value.
|
Object |
AbstractDirectMapping.getFieldValue(Object attributeValue,
AbstractSession session)
INTERNAL:
Convert the attribute value to a field value.
|
void |
AbstractDirectMapping.initialize(AbstractSession session)
INTERNAL:
The mapping is initialized with the given session.
|
void |
AbstractDirectMapping.preInitialize(AbstractSession session)
INTERNAL:
Initialize the attribute classification.
|
void |
AbstractDirectMapping.validateBeforeInitialization(AbstractSession session)
INTERNAL:
Allow for subclasses to perform validation.
|
Object |
AbstractDirectMapping.valueFromObject(Object object,
DatabaseField field,
AbstractSession session)
INTERNAL:
Get the value from the object for this mapping.
|
Object |
AbstractDirectMapping.valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
AbstractSession executionSession)
INTERNAL:
In the case of building a UnitOfWork clone directly from a row, the
session set in the query will not know which database platform to use
for converting the value.
|
void |
AbstractDirectMapping.writeFromObjectIntoRow(Object object,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Get a value from the object and set that in the respective field of the row.
|
void |
AbstractDirectMapping.writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Get a value from the object and set that in the respective field of the row.
|
void |
AbstractDirectMapping.writeInsertFieldsIntoRow(AbstractRecord databaseRow,
AbstractSession session)
INTERNAL:
Write fields needed for insert into the template for with null values.
|
Modifier and Type | Method and Description |
---|---|
Object |
SybasePlatform.executeStoredProcedure(DatabaseCall dbCall,
PreparedStatement statement,
DatabaseAccessor accessor,
AbstractSession session)
INTERNAL:
Because each platform has different requirements for accessing stored procedures and
the way that we can combine resultsets and output params the stored procedure call
is being executed on the platform.
|
Vector |
DerbyPlatform.getNativeTableInfo(String table,
String creator,
AbstractSession session) |
Vector |
DB2Platform.getNativeTableInfo(String table,
String creator,
AbstractSession session)
INTERNAL:
Return the catalog information through using the native SQL catalog selects.
|
Vector |
SQLServerPlatform.getNativeTableInfo(String table,
String creator,
AbstractSession session)
INTERNAL:
Return the catalog information through using the native SQL catalog selects.
|
Vector |
SybasePlatform.getNativeTableInfo(String table,
String creator,
AbstractSession session)
INTERNAL:
Return the catalog information through using the native SQL catalog selects.
|
Timestamp |
AccessPlatform.getTimestampFromServer(AbstractSession session,
String sessionName)
INTERNAL:
Access do not support millisecond well, truncate the millisecond from the timestamp
|
void |
PostgreSQLPlatform.printFieldTypeSize(Writer writer,
FieldDefinition field,
FieldTypeDefinition fieldType,
AbstractSession session,
String qualifiedFieldName) |
void |
PostgreSQLPlatform.printFieldUnique(Writer writer,
boolean isUnique,
AbstractSession session,
String qualifiedFieldName) |
Modifier and Type | Method and Description |
---|---|
Vector |
OraclePlatform.getNativeTableInfo(String table,
String creator,
AbstractSession session)
INTERNAL:
Return the catalog information through using the native SQL catalog selects.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
DatabaseQuery.session
Only used after the query is prepared to store the session under which the query was executed.
|
Modifier and Type | Method and Description |
---|---|
AbstractSession |
DatabaseQuery.getSession()
INTERNAL:
Return the current session.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DatabaseQuery.buildSelectionCriteria(AbstractSession session)
INTERNAL:
In the case of EJBQL, an expression needs to be generated.
|
void |
ObjectLevelReadQuery.changeDescriptor(AbstractSession theSession)
INTERNAL:
The reference class has been changed, need to reset the
descriptor.
|
void |
DatabaseQuery.checkDescriptor(AbstractSession session)
INTERNAL:
Ensure that the descriptor has been set.
|
void |
ObjectLevelReadQuery.checkDescriptor(AbstractSession session)
INTERNAL:
Ensure that the descriptor has been set.
|
void |
ObjectLevelModifyQuery.checkDescriptor(AbstractSession session)
INTERNAL:
Ensure that the descriptor has been set.
|
void |
ReadObjectQuery.checkDescriptor(AbstractSession session)
INTERNAL:
Ensure that the descriptor has been set.
|
Object |
DoesExistQuery.checkEarlyReturn(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check if existence can be determined without going to the database.
|
Object |
DatabaseQuery.checkEarlyReturn(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if this query already knows the return vale without preforming any further work.
|
Object |
ObjectLevelReadQuery.checkEarlyReturn(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if this query already knows the return vale without preforming any further work.
|
Object |
DoesExistQuery.checkEarlyReturn(Object object,
Vector primaryKey,
AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check if existence can be determined without going to the database.
|
protected Object |
ReportQuery.checkEarlyReturnImpl(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
The cache check is done before the prepare as a hit will not require the work to be done.
|
protected Object |
ReadAllQuery.checkEarlyReturnImpl(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
The cache check is done before the prepare as a hit will not require the work to be done.
|
protected abstract Object |
ObjectLevelReadQuery.checkEarlyReturnImpl(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Contains the body of the check early return call, implemented by subclasses.
|
protected Object |
ReadObjectQuery.checkEarlyReturnImpl(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
The cache check is done before the prepare as a hit will not require the work to be done.
|
protected DatabaseQuery |
DatabaseQuery.checkForCustomQuery(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if a custom query should be used for this query.
|
protected DatabaseQuery |
ReadAllQuery.checkForCustomQuery(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if a custom query should be used for this query.
|
protected DatabaseQuery |
DeleteObjectQuery.checkForCustomQuery(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if a custom query should be used for this query.
|
protected DatabaseQuery |
ReadObjectQuery.checkForCustomQuery(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if a custom query should be used for this query.
|
void |
DatabaseQuery.checkPrepare(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if this query needs to be prepare and prepare it.
|
void |
ObjectLevelReadQuery.checkPrepare(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if this query needs to be prepare and prepare it.
|
protected void |
ObjectLevelReadQuery.checkPrePrepare(AbstractSession session)
INTERNAL:
ObjectLevelReadQueries now have an explicit pre-prepare stage, which
is for checking for pessimistic locking, and computing any joined
attributes declared on the descriptor.
|
protected void |
ModifyAllQuery.clonedQueryExecutionComplete(DatabaseQuery query,
AbstractSession session)
INTERNAL
Used to give the subclasses oportunity to copy aspects of the cloned query
to the original query.
|
protected void |
DatabaseQuery.clonedQueryExecutionComplete(DatabaseQuery query,
AbstractSession session)
INTERNAL
Used to give the subclasses oportunity to copy aspects of the cloned query
to the original query.
|
protected void |
ReadQuery.clonedQueryExecutionComplete(DatabaseQuery query,
AbstractSession session)
INTERNAL
Used to give the subclasses oportunity to copy aspects of the cloned query
to the original query.
|
Object |
DatabaseQuery.execute(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Execute the query.
|
Object |
ObjectLevelReadQuery.execute(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Execute the query.
|
void |
DeleteAllQuery.executeDeleteAll(AbstractSession session,
AbstractRecord translationRow,
Vector objects)
INTERNAL:
Delete all queries are executed specially to avoid cloning and ensure preparing.
|
void |
EJBQLCall.populateQuery(AbstractSession session)
Populate the query using the information retrieved from parsing the EJBQL.
|
protected void |
SQLCall.prepareInternal(AbstractSession session)
INTERNAL:
Called by prepare method only.
|
DatabaseQuery |
ObjectLevelReadQuery.prepareOutsideUnitOfWork(AbstractSession session)
INTERNAL:
There is a very special case where a query may be a bean-level
pessimistic locking query.
|
PreparedStatement |
EJBQLCall.prepareStatement(DatabaseAccessor accessor,
AbstractRecord translationRow,
AbstractSession session)
INTERNAL:
Prepare the JDBC statement, this may be parameterize or a call statement.
|
void |
ReportQuery.prepareSubSelect(AbstractSession session,
AbstractRecord translationRow,
Dictionary clonedExpressions)
INTERNAL:
Prepare the receiver for being printed inside a subselect.
|
void |
DatabaseQuery.setSession(AbstractSession session)
INTERNAL:
Set the session for the query
|
void |
EJBQLCall.translate(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
INTERNAL:
translate method comment.
|
Modifier and Type | Method and Description |
---|---|
Object |
Sequence.getGeneratedValue(Accessor accessor,
AbstractSession writeSession)
INTERNAL:
Return the newly-generated sequencing value.
|
Object |
StandardSequence.getGeneratedValue(Accessor accessor,
AbstractSession writeSession,
String seqName) |
abstract Object |
Sequence.getGeneratedValue(Accessor accessor,
AbstractSession writeSession,
String seqName)
INTERNAL:
Return the newly-generated sequencing value.
|
Object |
DefaultSequence.getGeneratedValue(Accessor accessor,
AbstractSession writeSession,
String seqName)
INTERNAL:
Return the newly-generated sequencing value.
|
Vector |
Sequence.getGeneratedVector(Accessor accessor,
AbstractSession writeSession)
INTERNAL:
Return a Vector of newly-generated sequencing values.
|
Vector |
StandardSequence.getGeneratedVector(Accessor accessor,
AbstractSession writeSession,
String seqName,
int size) |
abstract Vector |
Sequence.getGeneratedVector(Accessor accessor,
AbstractSession writeSession,
String seqName,
int size)
INTERNAL:
Return a Vector of newly-generated sequencing values.
|
Vector |
DefaultSequence.getGeneratedVector(Accessor accessor,
AbstractSession writeSession,
String name,
int size)
INTERNAL:
Return a Vector of newly-generated sequencing values.
|
protected Object |
QuerySequence.select(Accessor accessor,
AbstractSession writeSession,
String seqName,
Integer size)
INTERNAL:
|
protected void |
QuerySequence.update(Accessor accessor,
AbstractSession writeSession,
String seqName,
Number sizeOrNewValue)
INTERNAL:
|
protected abstract Number |
StandardSequence.updateAndSelectSequence(Accessor accessor,
AbstractSession writeSession,
String seqName,
int size) |
protected Number |
QuerySequence.updateAndSelectSequence(Accessor accessor,
AbstractSession writeSession,
String seqName,
int size)
INTERNAL:
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
ObjectCopyingPolicy.session |
Modifier and Type | Method and Description |
---|---|
AbstractSession |
UnitOfWork.getParent()
PUBLIC:
Return the parent.
|
AbstractSession |
ObjectCopyingPolicy.getSession()
INTERNAL: Return the session.
|
AbstractSession |
ExternalTransactionController.getSession()
INTERNAL:
Return the manager's session.
|
Modifier and Type | Method and Description |
---|---|
void |
ExternalTransactionController.beginTransaction(AbstractSession session)
INTERNAL:
Begin a transaction externally.
|
void |
ExternalTransactionController.commitTransaction(AbstractSession session)
INTERNAL:
Commit a transaction externally.
|
Object |
SessionProfiler.profileExecutionOfQuery(DatabaseQuery query,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Finish a profile operation if profiling.
|
void |
ExternalTransactionController.registerSynchronizationListener(UnitOfWorkImpl uow,
AbstractSession session)
INTERNAL:
Register a listener on the unit of work.
|
void |
ExternalTransactionController.rollbackTransaction(AbstractSession session)
INTERNAL:
Rollback a transaction externally.
|
void |
ObjectCopyingPolicy.setSession(AbstractSession newSession)
INTERNAL: Set the session.
|
void |
ExternalTransactionController.setSession(AbstractSession session)
INTERNAL:
Set the manager's session.
|
Modifier and Type | Class and Description |
---|---|
class |
ClientSession
Purpose: Acts as a client to the server session.
|
class |
ServerSession
Implementation of Server
INTERNAL:
The public interface should be used.
|
Modifier and Type | Method and Description |
---|---|
AbstractSession |
ServerSession.getExecutionSession(DatabaseQuery query)
INTERNAL:
Gets the session which this query will be executed on.
|
AbstractSession |
ClientSession.getExecutionSession(DatabaseQuery query)
INTERNAL:
Gets the session which this query will be executed on.
|
AbstractSession |
ClientSession.getParentIdentityMapSession(DatabaseQuery query,
boolean canReturnSelf,
boolean terminalOnly)
INTERNAL:
Gets the next link in the chain of sessions followed by a query's check
early return, the chain of sessions with identity maps all the way up to
the root session.
|
Modifier and Type | Method and Description |
---|---|
AbstractSession |
SchemaManager.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
PopulationManager.addAllObjectsForAbstractClass(Class objectsClass,
AbstractSession session,
Vector allObjects)
Add all of the objects of the class and all of its subclasses.
|
void |
SequenceDefinition.alter(AbstractSession session,
Writer writer)
INTERNAL:
Execute the SQL required to alter sequence.
|
void |
OracleSequenceDefinition.alterIncrement(AbstractSession session,
Writer schemaWriter)
INTERNAL:
Execute the SQL required to alter sequence increment.
|
void |
SequenceDefinition.alterOnDatabase(AbstractSession session)
INTERNAL:
By default does nothing.
|
void |
OracleSequenceDefinition.alterOnDatabase(AbstractSession session)
INTERNAL:
Execute the SQL required to alter sequence increment.
|
void |
UniqueKeyConstraint.appendDBString(Writer writer,
AbstractSession session)
INTERNAL:
Append the database field definition string to the table creation statement.
|
void |
ForeignKeyConstraint.appendDBString(Writer writer,
AbstractSession session)
INTERNAL:
Append the database field definition string to the table creation statement.
|
void |
FieldDefinition.appendDBString(Writer writer,
AbstractSession session,
TableDefinition table)
INTERNAL:
Append the database field definition string to the table creation statement.
|
Writer |
OracleSequenceDefinition.buildAlterIncrementWriter(AbstractSession session,
Writer writer)
INTERNAL:
Return the SQL required to alter INCREMENT BY
|
Writer |
TableDefinition.buildConstraintCreationWriter(AbstractSession session,
ForeignKeyConstraint foreignKey,
Writer writer)
INTERNAL:
Return the alter table statement to add the constraints.
|
Writer |
TableDefinition.buildConstraintDeletionWriter(AbstractSession session,
ForeignKeyConstraint foreignKey,
Writer writer)
INTERNAL:
Return the alter table statement to drop the constraints.
|
Writer |
ViewDefinition.buildCreationWriter(AbstractSession session,
Writer writer)
INTERNAL:
Return the DDL to create the view.
|
Writer |
TableDefinition.buildCreationWriter(AbstractSession session,
Writer writer)
INTERNAL:
Return the create table statement.
|
Writer |
OracleSequenceDefinition.buildCreationWriter(AbstractSession session,
Writer writer)
INTERNAL:
Return the SQL required to create the Oracle sequence object.
|
Writer |
TableSequenceDefinition.buildCreationWriter(AbstractSession session,
Writer writer)
INTERNAL:
Return the SQL required to insert the sequence row into the sequence table.
|
abstract Writer |
DatabaseObjectDefinition.buildCreationWriter(AbstractSession session,
Writer writer)
INTERNAL:
Returns the writer used for creation of this object.
|
Writer |
ViewDefinition.buildDeletionWriter(AbstractSession session,
Writer writer)
INTERNAL:
Return the DDL to drop the view.
|
Writer |
TableDefinition.buildDeletionWriter(AbstractSession session,
Writer writer)
INTERNAL:
Return the drop table statement.
|
Writer |
OracleSequenceDefinition.buildDeletionWriter(AbstractSession session,
Writer writer)
INTERNAL:
Return the SQL required to drop the Oracle sequence object.
|
Writer |
TableSequenceDefinition.buildDeletionWriter(AbstractSession session,
Writer writer)
INTERNAL:
Return the SQL to delete the row from the sequence table.
|
abstract Writer |
DatabaseObjectDefinition.buildDeletionWriter(AbstractSession session,
Writer writer)
INTERNAL:
Returns the writer used for creation of this object.
|
protected void |
TableDefinition.buildFieldTypes(AbstractSession session)
INTERNAL:
Build the foriegn key constraints.
|
Writer |
TableDefinition.buildUniqueConstraintCreationWriter(AbstractSession session,
UniqueKeyConstraint uniqueKey,
Writer writer)
INTERNAL:
Return the alter table statement to add the constraints.
|
Writer |
TableDefinition.buildUniqueConstraintDeletionWriter(AbstractSession session,
UniqueKeyConstraint uniqueKey,
Writer writer)
INTERNAL:
Return the alter table statement to drop the constraints.
|
abstract boolean |
SequenceDefinition.checkIfExist(AbstractSession session)
INTERAL:
Verify whether the sequence exists.
|
boolean |
OracleSequenceDefinition.checkIfExist(AbstractSession session)
INTERNAL:
Check if the sequence object already exists, in which case dont create it.
|
boolean |
TableSequenceDefinition.checkIfExist(AbstractSession session)
INTERAL:
Execute the SQL required to insert the sequence row into the sequence table.
|
void |
TableDefinition.createConstraints(AbstractSession session,
Writer schemaWriter)
INTERNAL:
Execute the SQL alter table constraint creation string.
|
void |
TableDefinition.createConstraintsOnDatabase(AbstractSession session)
INTERNAL:
Execute the SQL alter table constraint creation string.
|
void |
DatabaseObjectDefinition.createObject(AbstractSession session,
Writer schemaWriter)
INTERNAL:
Either drop from the database directly or write the statement to a file.
|
void |
SequenceDefinition.createOnDatabase(AbstractSession session)
INTERNAL:
|
void |
DatabaseObjectDefinition.createOnDatabase(AbstractSession session)
INTERNAL:
Execute the DDL to create the varray.
|
void |
TableDefinition.dropConstraints(AbstractSession session,
Writer schemaWriter)
INTERNAL:
Execute the SQL alter table constraint creation string.
|
void |
TableDefinition.dropConstraintsOnDatabase(AbstractSession session)
INTERNAL:
Execute the SQL alter table constraint creation string.
|
void |
DatabaseObjectDefinition.dropFromDatabase(AbstractSession session)
INTERNAL:
Execute the DDL to drop the varray.
|
void |
DatabaseObjectDefinition.dropObject(AbstractSession session,
Writer schemaWriter)
INTERNAL:
Execute the DDL to drop the varray.
|
TableCreator |
DefaultTableGenerator.generateFilteredDefaultTableCreator(AbstractSession session)
Generate a default TableCreator object from the TopLink project object,
and porform the table existence check through jdbc table metadata, and filter out
tables which are already in the database.
|
Vector |
PopulationManager.getAllObjectsForAbstractClass(Class objectsClass,
AbstractSession session)
Return all of the objects of the class and all of its subclasses.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
SessionManager.defaultSession |
Modifier and Type | Method and Description |
---|---|
AbstractSession |
SessionManager.getSession(String sessionName)
PUBLIC:
Return the session by name.
|
AbstractSession |
SessionManager.getSession(String sessionName,
boolean shouldLoginSession)
PUBLIC:
Return the session by name.
|
AbstractSession |
SessionManager.getSession(String sessionName,
boolean shouldLoginSession,
boolean shouldRefreshSession)
PUBLIC:
Return the session by name.
|
AbstractSession |
SessionManager.getSession(String sessionName,
ClassLoader objectClassLoader)
PUBLIC:
Return the session by name.
|
AbstractSession |
SessionManager.getSession(String sessionName,
ClassLoader objectClassLoader,
boolean shouldLoginSession,
boolean shouldRefreshSession,
boolean shouldCheckClassLoader)
PUBLIC:
Return the session by name, loading the configuration from the file
specified in the xmlLoader.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractSession |
AbstractSynchronizationListener.session
The parent of the uow.
|
protected AbstractSession |
AbstractTransactionController.session
The session this controller is responsible for controlling
|
Modifier and Type | Method and Description |
---|---|
protected AbstractSession |
AbstractSynchronizationListener.getSession() |
AbstractSession |
AbstractTransactionController.getSession()
INTERNAL:
Return the manager's session.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractTransactionController.beginTransaction(AbstractSession session)
INTERNAL:
Begin an external transaction.
|
void |
AbstractTransactionController.bindToCurrentTransaction(UnitOfWorkImpl unitOfWork,
AbstractSession session)
INTERNAL:
Associate the given unit of work and TopLink session with the active external
transaction.
|
void |
AbstractTransactionController.commitTransaction(AbstractSession session)
INTERNAL:
Commit the external transaction.
|
void |
AbstractTransactionController.logTxStateTrace(AbstractSession session,
String msgInd,
Object status) |
void |
AbstractTransactionController.logTxTrace(AbstractSession session,
String msgInd,
Object[] args) |
AbstractSynchronizationListener |
JTASynchronizationListener.newSynchronizationListener(UnitOfWorkImpl unitOfWork,
AbstractSession session,
Object transaction,
AbstractTransactionController controller)
INTERNAL:
Create and return the Synchronization listener object that can be registered
to receive JTA transaction notification callbacks.
|
AbstractSynchronizationListener |
SynchronizationListenerFactory.newSynchronizationListener(UnitOfWorkImpl unitOfWork,
AbstractSession session,
Object transaction,
AbstractTransactionController controller)
INTERNAL:
Create and return the synchronization listener object that can be registered
to receive transaction notification callbacks.
|
void |
AbstractTransactionController.registerSynchronizationListener(UnitOfWorkImpl uow,
AbstractSession session)
INTERNAL:
Associate the given unit of work and TopLink session with the current external
transaction.
|
void |
AbstractTransactionController.rollbackTransaction(AbstractSession session)
INTERNAL:
Roll back the external transaction.
|
protected void |
AbstractSynchronizationListener.setSession(AbstractSession session) |
void |
AbstractTransactionController.setSession(AbstractSession session)
INTERNAL:
Set the manager's session.
|
Constructor and Description |
---|
AbstractSynchronizationListener(UnitOfWorkImpl unitOfWork,
AbstractSession session,
Object transaction,
AbstractTransactionController controller)
INTERNAL:
|
JTASynchronizationListener(UnitOfWorkImpl unitOfWork,
AbstractSession session,
Object transaction,
AbstractTransactionController controller)
INTERNAL:
Constructor for creating listener instances (expects all required state info)
|
Copyright © 2023. All rights reserved.