Modifier and Type | Method and Description |
---|---|
Object |
CloneCopyPolicy.buildWorkingCopyCloneFromRow(Record row,
ObjectBuildingQuery query)
Create a new instance, unless a workingCopyClone method is specified, then build a new instance and clone it.
|
Object |
CopyPolicy.buildWorkingCopyCloneFromRow(Record row,
ObjectBuildingQuery query)
Return an instance with the primary key set from the row, used for building a working copy during a unit of work transactional read.
|
Object |
AbstractCopyPolicy.buildWorkingCopyCloneFromRow(Record row,
ObjectBuildingQuery query)
By default create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
ObjectBuilder.buildAttributesIntoObject(Object domainObject,
AbstractRecord databaseRow,
ObjectBuildingQuery query,
JoinedAttributeManager joinManager,
boolean forRefresh)
Each mapping is recursed to assign values from the databaseRow to the attributes in the domain object.
|
void |
ObjectBuilder.buildAttributesIntoShallowObject(Object original,
AbstractRecord databaseRow,
ObjectBuildingQuery query)
INTERNAL:
For reading through the write connection when in transaction,
We need a partially populated original, so that we
can build a clone using the copy policy, even though we can't
put this original in the shared cache yet; just build a
shallow original (i.e.
|
void |
ObjectBuilder.buildAttributesIntoWorkingCopyClone(Object clone,
ObjectBuildingQuery query,
JoinedAttributeManager joinManager,
AbstractRecord databaseRow,
UnitOfWorkImpl unitOfWork,
boolean forRefresh)
INTERNAL:
For reading through the write connection when in transaction,
populate the clone directly from the database row.
|
protected Object |
ObjectBuilder.buildObject(ObjectBuildingQuery query,
AbstractRecord databaseRow,
AbstractSession session,
Vector primaryKey,
ClassDescriptor concreteDescriptor,
JoinedAttributeManager joinManager)
Return an instance of the recievers javaClass.
|
Object |
ObjectBuilder.buildObject(ObjectBuildingQuery query,
AbstractRecord databaseRow,
JoinedAttributeManager joinManager)
Return an instance of the recievers javaClass.
|
protected Object |
ObjectBuilder.buildObjectInUnitOfWork(ObjectBuildingQuery query,
JoinedAttributeManager joinManager,
AbstractRecord databaseRow,
UnitOfWorkImpl unitOfWork,
Vector primaryKey,
ClassDescriptor concreteDescriptor)
For executing all reads on the UnitOfWork, the session when building
objects from rows will now be the UnitOfWork.
|
void |
ObjectBuilder.buildPrimaryKeyAttributesIntoObject(Object original,
AbstractRecord databaseRow,
ObjectBuildingQuery query)
INTERNAL:
Build just the primary key mappings into the object.
|
protected Object |
ObjectBuilder.buildWorkingCopyCloneFromRow(ObjectBuildingQuery query,
JoinedAttributeManager joinManager,
AbstractRecord databaseRow,
UnitOfWorkImpl unitOfWork,
Vector primaryKey)
INTERNAL:
Builds a working copy clone directly from the database row.
|
protected Object |
ObjectBuilder.buildWorkingCopyCloneNormally(ObjectBuildingQuery query,
AbstractRecord databaseRow,
UnitOfWorkImpl unitOfWork,
Vector primaryKey,
ClassDescriptor concreteDescriptor,
JoinedAttributeManager joinManager)
buildWorkingCopyCloneFromRow is an alternative to this which is the
normal behavior.
|
protected void |
ObjectBuilder.copyQueryInfoToCacheKey(CacheKey cacheKey,
ObjectBuildingQuery query,
AbstractRecord databaseRow,
AbstractSession session,
ClassDescriptor concreteDescriptor)
Initialize a cache key.
|
Object |
ObjectBuilder.instantiateWorkingCopyCloneFromRow(AbstractRecord row,
ObjectBuildingQuery query)
It is now possible to build working copy clones directly from rows.
|
Modifier and Type | Field and Description |
---|---|
protected ObjectBuildingQuery |
JoinedAttributeManager.baseQuery
Stores the baseQuery
|
Modifier and Type | Method and Description |
---|---|
ObjectBuildingQuery |
JoinedAttributeManager.getBaseQuery()
INTERNAL:
Returns the base query.
|
Constructor and Description |
---|
JoinedAttributeManager(ClassDescriptor descriptor,
ExpressionBuilder baseBuilder,
ObjectBuildingQuery baseQuery) |
Modifier and Type | Method and Description |
---|---|
abstract void |
DatabaseMapping.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.
|
void |
AggregateObjectMapping.buildCloneFromRow(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object clone,
ObjectBuildingQuery sourceQuery,
UnitOfWorkImpl unitOfWork,
AbstractSession executionSession)
INTERNAL:
A combination of readFromRowIntoObject and buildClone.
|
void |
ForeignReferenceMapping.buildCloneFromRow(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object clone,
ObjectBuildingQuery sourceQuery,
UnitOfWorkImpl unitOfWork,
AbstractSession executionSession)
INTERNAL:
A combination of readFromRowIntoObject and buildClone.
|
void |
DatabaseMapping.buildShallowOriginalFromRow(AbstractRecord databaseRow,
Object original,
ObjectBuildingQuery query,
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.
|
Object |
DatabaseMapping.readFromRowIntoObject(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object targetObject,
ObjectBuildingQuery sourceQuery)
INTERNAL:
Extract value from the row and set the attribute to this value in the object.
|
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.
|
Object |
DatabaseMapping.valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query)
INTERNAL:
A subclass should implement this method if it wants different behaviour.
|
Object |
DatabaseMapping.valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
AbstractSession session)
INTERNAL:
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.buildShallowOriginalFromRow(AbstractRecord databaseRow,
Object original,
ObjectBuildingQuery query,
AbstractSession executionSession)
INTERNAL:
Builds a shallow original object.
|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
ObjectLevelReadQuery
Purpose:
Abstract class for all read queries using objects.
|
class |
ReadAllQuery
set
|
class |
ReadObjectQuery
Purpose:
Concrete class for all read queries involving a single object.
|
class |
ReportQuery
Purpose: Query for information about a set of objects instead of the objects themselves.
|
class |
ResultSetMappingQuery
Purpose:
Concrete class to perform read using raw SQL and the SQLResultSetMapping.
|
Copyright © 2023. All rights reserved.