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.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.
|
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.
|
void |
ObjectBuilder.populateAttributesForClone(Object original,
Object clone,
UnitOfWorkImpl unitOfWork,
JoinedAttributeManager joinedAttributeManager)
Clones the attributes of the specified object.
|
Modifier and Type | Field and Description |
---|---|
protected JoinedAttributeManager |
ReportItem.joinManager
Stores the Join information for this item
|
Modifier and Type | Method and Description |
---|---|
JoinedAttributeManager |
ReportItem.getJoinedAttributeManager()
INTERNAL:
Set the list of expressions that represent elements that are joined because of their
mapping for this query.
|
Modifier and Type | Method and Description |
---|---|
Object |
UnitOfWorkImpl.cloneAndRegisterObject(Object original,
CacheKey cacheKey,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Clone and register the object.
|
protected Object |
UnitOfWorkIdentityMapAccessor.getAndCloneCacheKeyFromParent(Vector primaryKey,
Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
This method will return the object from the parent and clone it.
|
Object |
UnitOfWorkIdentityMapAccessor.getFromIdentityMap(Vector primaryKey,
Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Return the object from the identity map with the primary key and class.
|
Object |
IdentityMapAccessor.getFromIdentityMap(Vector primaryKey,
Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Return the object from the identity with the primary and class.
|
Object |
IdentityMapAccessor.getFromIdentityMap(Vector primaryKey,
Class theClass,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Return the object from the identity with the primary and class.
|
Object |
IsolatedClientSessionIdentityMapAccessor.getFromIdentityMap(Vector primaryKey,
Class theClass,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
ADVANCED:
Return the object from the identity with the primary and class.
|
protected void |
UnitOfWorkImpl.populateAndRegisterObject(Object original,
Object workingClone,
Vector primaryKey,
ClassDescriptor descriptor,
Object writeLockValue,
long readTime,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
This method is called from clone and register.
|
protected Object |
UnitOfWorkImpl.registerExistingObject(Object objectToRegister,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Register the existing object with the unit of work.
|
Object |
UnitOfWorkImpl.registerExistingObject(Object existingObject,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Register the existing object with the unit of work.
|
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.
|
void |
ForeignReferenceMapping.buildClone(Object original,
Object clone,
UnitOfWorkImpl unitOfWork,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Clone the attribute from the original and assign it to the clone.
|
abstract void |
DatabaseMapping.buildClone(Object original,
Object clone,
UnitOfWorkImpl unitOfWork,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Clone the attribute from the original and assign it to the clone.
|
void |
AggregateObjectMapping.buildClone(Object original,
Object clone,
UnitOfWorkImpl unitOfWork,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Clone the attribute from the original and assign it to the clone.
|
void |
AggregateMapping.buildClone(Object original,
Object clone,
UnitOfWorkImpl unitOfWork,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Clone the attribute from the original and assign it to the clone.
|
void |
ForeignReferenceMapping.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.
|
void |
AggregateMapping.buildCloneFromRow(AbstractRecord databaseRow,
JoinedAttributeManager joinManager,
Object clone,
ObjectBuildingQuery sourceQuery,
UnitOfWorkImpl unitOfWork,
AbstractSession executionSession)
INTERNAL:
A combination of readFromRowIntoObject and buildClone.
|
void |
AggregateObjectMapping.buildShallowOriginalFromRow(AbstractRecord databaseRow,
Object original,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
Builds a shallow original object.
|
ObjectLevelReadQuery |
ForeignReferenceMapping.prepareNestedJoins(JoinedAttributeManager joinManager,
AbstractSession session)
INTERNAL:
Clone and prepare the JoinedAttributeManager nested JoinedAttributeManager.
|
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.
|
protected boolean |
ForeignReferenceMapping.shouldUseValueFromRowWithJoin(JoinedAttributeManager joinManager)
INTERNAL:
Indicates whether valueFromRow should call valueFromRowInternalWithJoin (true)
or valueFromRowInternal (false)
|
protected boolean |
CollectionMapping.shouldUseValueFromRowWithJoin(JoinedAttributeManager joinManager)
INTERNAL:
Indicates whether valueFromRow should call valueFromRowInternalWithJoin (true)
or valueFromRowInternal (false)
|
AbstractRecord |
ForeignReferenceMapping.trimRowForJoin(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
|
Object |
DatabaseMapping.valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query)
INTERNAL:
A subclass should implement this method if it wants different behaviour.
|
Object |
DirectCollectionMapping.valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
AbstractSession session)
INTERNAL:
Return the value of the reference attribute or a value holder.
|
Object |
ForeignReferenceMapping.valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
AbstractSession executionSession)
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 |
AggregateCollectionMapping.valueFromRowInternal(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
Retrieves a value from the row for a particular query key
|
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 |
ForeignReferenceMapping.valueFromRowInternal(AbstractRecord row,
JoinedAttributeManager joinManager,
AbstractSession executionSession)
INTERNAL:
Return the value of the reference attribute or a value holder.
|
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 |
ForeignReferenceMapping.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.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractDirectMapping.buildClone(Object original,
Object clone,
UnitOfWorkImpl unitOfWork,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Clone the attribute from the original and assign it to the clone.
|
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.
|
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 | Field and Description |
---|---|
protected JoinedAttributeManager |
ObjectLevelReadQuery.joinedAttributeManager
Stores the helper object for dealing with joined attributes
|
Modifier and Type | Method and Description |
---|---|
JoinedAttributeManager |
ObjectLevelReadQuery.getJoinedAttributeManager()
INTERNAL:
Set the list of expressions that represent elements that are joined because of their
mapping for this query.
|
Modifier and Type | Method and Description |
---|---|
Object |
ObjectBuildingQuery.registerIndividualResult(Object result,
UnitOfWorkImpl unitOfWork,
boolean buildDirectlyFromRows,
JoinedAttributeManager joinManager)
INTERNAL:
Constructs the final (registered) object for every individual object
queried via a UnitOfWork.
|
Copyright © 2024. All rights reserved.