public class NoIndirectionPolicy extends IndirectionPolicy
ForeignReferenceMapping
,
Serialized FormConstructor and Description |
---|
NoIndirectionPolicy()
INTERNAL:
Construct a new indirection policy.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
buildIndirectObject(ValueHolderInterface valueHolder)
INTERNAL: This method can be used when an Indirection Object is required
to be built from a provided ValueHolderInterface object.
|
java.lang.Object |
cloneAttribute(java.lang.Object attributeValue,
java.lang.Object original,
CacheKey cacheKey,
java.lang.Object clone,
java.lang.Integer refreshCascade,
AbstractSession cloningSession,
boolean buildDirectlyFromRow)
INTERNAL:
Return a clone of the attribute.
|
AbstractRecord |
extractReferenceRow(java.lang.Object referenceObject)
INTERNAL:
Return the reference row for the reference object.
|
void |
fixObjectReferences(java.lang.Object object,
java.util.Map objectDescriptors,
java.util.Map processedObjects,
ObjectLevelReadQuery query,
DistributedSession session)
INTERNAL:
An object has been serialized from the server to the client.
|
java.lang.Object |
getOriginalIndirectionObject(java.lang.Object unitOfWorkIndirectionObject,
AbstractSession session)
INTERNAL:
Return the original indirection object for a unit of work indirection object.
|
java.lang.Object |
getOriginalValueHolder(java.lang.Object unitOfWorkIndirectionObject,
AbstractSession session)
INTERNAL: Return the original valueHolder object.
|
java.lang.Object |
getRealAttributeValueFromObject(java.lang.Object object,
java.lang.Object attribute)
INTERNAL:
Return the "real" attribute value, as opposed to any wrapper.
|
java.lang.Object |
getValueFromRemoteValueHolder(RemoteValueHolder remoteValueHolder)
INTERNAL:
Extract and return the appropriate value from the
specified remote value holder.
|
void |
mergeRemoteValueHolder(java.lang.Object clientSideDomainObject,
java.lang.Object serverSideDomainObject,
MergeManager mergeManager)
INTERNAL
Replace the client value holder with the server value holder,
after copying some of the settings from the client value holder.
|
java.lang.Object |
nullValueFromRow()
INTERNAL:
Return the null value of the appropriate attribute.
|
boolean |
objectIsEasilyInstantiated(java.lang.Object object)
INTERNAL:
Return whether the specified object can be instantiated without database access.
|
boolean |
objectIsInstantiated(java.lang.Object object)
INTERNAL:
Return whether the specified object is instantiated.
|
void |
setRealAttributeValueInObject(java.lang.Object target,
java.lang.Object attributeValue,
boolean trackChanges)
Set the value of the appropriate attribute of target to attributeValue.
|
boolean |
usesIndirection()
INTERNAL:
Return whether the indirection policy actually uses indirection.
|
void |
validateDeclaredAttributeType(java.lang.Class attributeType,
IntegrityChecker checker)
INTERNAL:
Verify that attributeType is correct for the
indirection policy.
|
void |
validateDeclaredAttributeTypeForCollection(java.lang.Class attributeType,
IntegrityChecker checker)
INTERNAL:
Verify that attributeType is an appropriate collection type for the
indirection policy.
|
void |
validateGetMethodReturnType(java.lang.Class returnType,
IntegrityChecker checker)
INTERNAL:
Verify that getter returnType is correct for the
indirection policy.
|
void |
validateGetMethodReturnTypeForCollection(java.lang.Class returnType,
IntegrityChecker checker)
INTERNAL:
Verify that getter returnType is an appropriate collection type for the
indirection policy.
|
void |
validateSetMethodParameterType(java.lang.Class parameterType,
IntegrityChecker checker)
INTERNAL:
Verify that setter parameterType is correct for the
indirection policy.
|
void |
validateSetMethodParameterTypeForCollection(java.lang.Class parameterType,
IntegrityChecker checker)
INTERNAL:
Verify that setter parameterType is an appropriate collection type for the
indirection policy.
|
java.lang.Object |
valueFromBatchQuery(ReadQuery batchQuery,
AbstractRecord row,
ObjectLevelReadQuery originalQuery,
CacheKey parentCacheKey)
INTERNAL:
Return the value to be stored in the object's attribute.
|
java.lang.Object |
valueFromMethod(java.lang.Object object,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value to be stored in the object's attribute.
|
java.lang.Object |
valueFromQuery(ReadQuery query,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value to be stored in the object's attribute.
|
java.lang.Object |
valueFromQuery(ReadQuery query,
AbstractRecord row,
java.lang.Object sourceObject,
AbstractSession session)
INTERNAL:
Return the value to be stored in the object's attribute.
|
java.lang.Object |
valueFromRow(java.lang.Object object)
INTERNAL:
Return the value to be stored in the object's attribute.
|
backupCloneAttribute, clone, extractPrimaryKeyForReferenceObject, getMapping, getOriginalIndirectionObjectForMerge, initialize, instantiateObject, isAttributeValueFullyBuilt, isWeavedObjectBasicIndirectionPolicy, iterateOnAttributeValue, objectIsInstantiatedOrChanged, reset, setMapping, setRealAttributeValueInObject, setSourceObject, setUseLazyInstantiation, shouldUseLazyInstantiation, usesTransparentIndirection, validateAttributeOfInstantiatedObject, validateContainerPolicy
public NoIndirectionPolicy()
public java.lang.Object buildIndirectObject(ValueHolderInterface valueHolder)
buildIndirectObject
in class IndirectionPolicy
public java.lang.Object cloneAttribute(java.lang.Object attributeValue, java.lang.Object original, CacheKey cacheKey, java.lang.Object clone, java.lang.Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow)
cloneAttribute
in class IndirectionPolicy
buildDirectlyFromRow
- indicates that we are building the clone directly
from a row as opposed to building the original from the row, putting it in
the shared cache, and then cloning the original.public AbstractRecord extractReferenceRow(java.lang.Object referenceObject)
extractReferenceRow
in class IndirectionPolicy
public void fixObjectReferences(java.lang.Object object, java.util.Map objectDescriptors, java.util.Map processedObjects, ObjectLevelReadQuery query, DistributedSession session)
fixObjectReferences
in class IndirectionPolicy
public java.lang.Object getOriginalIndirectionObject(java.lang.Object unitOfWorkIndirectionObject, AbstractSession session)
getOriginalIndirectionObject
in class IndirectionPolicy
public java.lang.Object getOriginalValueHolder(java.lang.Object unitOfWorkIndirectionObject, AbstractSession session)
getOriginalValueHolder
in class IndirectionPolicy
public java.lang.Object getRealAttributeValueFromObject(java.lang.Object object, java.lang.Object attribute)
getRealAttributeValueFromObject
in class IndirectionPolicy
public java.lang.Object getValueFromRemoteValueHolder(RemoteValueHolder remoteValueHolder)
getValueFromRemoteValueHolder
in class IndirectionPolicy
public void mergeRemoteValueHolder(java.lang.Object clientSideDomainObject, java.lang.Object serverSideDomainObject, MergeManager mergeManager)
mergeRemoteValueHolder
in class IndirectionPolicy
public java.lang.Object nullValueFromRow()
nullValueFromRow
in class IndirectionPolicy
public boolean objectIsInstantiated(java.lang.Object object)
objectIsInstantiated
in class IndirectionPolicy
public boolean objectIsEasilyInstantiated(java.lang.Object object)
objectIsEasilyInstantiated
in class IndirectionPolicy
public boolean usesIndirection()
usesIndirection
in class IndirectionPolicy
public void validateDeclaredAttributeType(java.lang.Class attributeType, IntegrityChecker checker) throws DescriptorException
validateDeclaredAttributeType
in class IndirectionPolicy
DescriptorException
public void validateDeclaredAttributeTypeForCollection(java.lang.Class attributeType, IntegrityChecker checker) throws DescriptorException
validateDeclaredAttributeTypeForCollection
in class IndirectionPolicy
DescriptorException
public void validateGetMethodReturnType(java.lang.Class returnType, IntegrityChecker checker) throws DescriptorException
validateGetMethodReturnType
in class IndirectionPolicy
DescriptorException
public void validateGetMethodReturnTypeForCollection(java.lang.Class returnType, IntegrityChecker checker) throws DescriptorException
validateGetMethodReturnTypeForCollection
in class IndirectionPolicy
DescriptorException
public void validateSetMethodParameterType(java.lang.Class parameterType, IntegrityChecker checker) throws DescriptorException
validateSetMethodParameterType
in class IndirectionPolicy
DescriptorException
public void validateSetMethodParameterTypeForCollection(java.lang.Class parameterType, IntegrityChecker checker) throws DescriptorException
validateSetMethodParameterTypeForCollection
in class IndirectionPolicy
DescriptorException
public java.lang.Object valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)
valueFromBatchQuery
in class IndirectionPolicy
public java.lang.Object valueFromMethod(java.lang.Object object, AbstractRecord row, AbstractSession session)
valueFromMethod
in class IndirectionPolicy
public java.lang.Object valueFromQuery(ReadQuery query, AbstractRecord row, java.lang.Object sourceObject, AbstractSession session)
valueFromQuery
in class IndirectionPolicy
public java.lang.Object valueFromQuery(ReadQuery query, AbstractRecord row, AbstractSession session)
valueFromQuery
in class IndirectionPolicy
public java.lang.Object valueFromRow(java.lang.Object object)
valueFromRow
in class IndirectionPolicy
public void setRealAttributeValueInObject(java.lang.Object target, java.lang.Object attributeValue, boolean trackChanges)
setRealAttributeValueInObject
in class IndirectionPolicy
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference