public class NoIndirectionPolicy extends IndirectionPolicy
ForeignReferenceMapping
,
Serialized Formmapping
Constructor and Description |
---|
NoIndirectionPolicy()
INTERNAL:
Construct a new indirection policy.
|
Modifier and Type | Method and Description |
---|---|
Object |
cloneAttribute(Object attributeValue,
Object original,
Object clone,
UnitOfWorkImpl unitOfWork,
boolean buildDirectlyFromRow)
INTERNAL:
Return a clone of the attribute.
|
protected boolean |
collectionTypeIsValid(Class collectionType)
INTERNAL:
Return whether the collection type is appropriate for the indirection policy.
|
AbstractRecord |
extractReferenceRow(Object referenceObject)
INTERNAL:
Return the reference row for the reference object.
|
Object |
getOriginalIndirectionObject(Object unitOfWorkIndirectionObject,
AbstractSession session)
INTERNAL:
Return the original indirection object for a unit of work indirection object.
|
Object |
getRealAttributeValueFromObject(Object object,
Object attribute)
INTERNAL:
Return the "real" attribute value, as opposed to any wrapper.
|
Object |
nullValueFromRow()
INTERNAL:
Return the null value of the appropriate attribute.
|
boolean |
objectIsInstantiated(Object object)
INTERNAL:
Return whether the specified object is instantiated.
|
protected boolean |
typeIsValid(Class attributeType)
INTERNAL:
Return whether the type is appropriate for the indirection policy.
|
boolean |
usesIndirection()
INTERNAL:
Return whether the indirection policy actually uses indirection.
|
void |
validateDeclaredAttributeType(Class attributeType,
IntegrityChecker checker)
INTERNAL:
Verify that attributeType is correct for the
indirection policy.
|
void |
validateDeclaredAttributeTypeForCollection(Class attributeType,
IntegrityChecker checker)
INTERNAL:
Verify that attributeType is an appropriate collection type for the
indirection policy.
|
void |
validateGetMethodReturnType(Class returnType,
IntegrityChecker checker)
INTERNAL:
Verify that getter returnType is correct for the
indirection policy.
|
void |
validateGetMethodReturnTypeForCollection(Class returnType,
IntegrityChecker checker)
INTERNAL:
Verify that getter returnType is an appropriate collection type for the
indirection policy.
|
void |
validateSetMethodParameterType(Class parameterType,
IntegrityChecker checker)
INTERNAL:
Verify that setter parameterType is correct for the
indirection policy.
|
void |
validateSetMethodParameterTypeForCollection(Class parameterType,
IntegrityChecker checker)
INTERNAL:
Verify that setter parameterType is an appropriate collection type for the
indirection policy.
|
Object |
valueFromQuery(ReadQuery query,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Return the value to be stored in the object's attribute.
|
Object |
valueFromRow(Object object)
INTERNAL:
Return the value to be stored in the object's attribute.
|
backupCloneAttribute, buildCascadeQuery, clone, extractPrimaryKeyForReferenceObject, getCollectionMapping, getForeignReferenceMapping, getMapping, getOneToOneMapping, getValueFromProxy, initialize, iterateOnAttributeValue, setMapping, setRealAttributeValueInObject, usesTransparentIndirection, validateAttributeOfInstantiatedObject, validateContainerPolicy
public NoIndirectionPolicy()
public Object cloneAttribute(Object attributeValue, Object original, Object clone, UnitOfWorkImpl unitOfWork, 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.protected boolean collectionTypeIsValid(Class collectionType)
public AbstractRecord extractReferenceRow(Object referenceObject)
extractReferenceRow
in class IndirectionPolicy
public Object getOriginalIndirectionObject(Object unitOfWorkIndirectionObject, AbstractSession session)
getOriginalIndirectionObject
in class IndirectionPolicy
public Object getRealAttributeValueFromObject(Object object, Object attribute)
getRealAttributeValueFromObject
in class IndirectionPolicy
public Object nullValueFromRow()
nullValueFromRow
in class IndirectionPolicy
public boolean objectIsInstantiated(Object object)
objectIsInstantiated
in class IndirectionPolicy
protected boolean typeIsValid(Class attributeType)
public boolean usesIndirection()
usesIndirection
in class IndirectionPolicy
public void validateDeclaredAttributeType(Class attributeType, IntegrityChecker checker) throws DescriptorException
validateDeclaredAttributeType
in class IndirectionPolicy
DescriptorException
public void validateDeclaredAttributeTypeForCollection(Class attributeType, IntegrityChecker checker) throws DescriptorException
validateDeclaredAttributeTypeForCollection
in class IndirectionPolicy
DescriptorException
public void validateGetMethodReturnType(Class returnType, IntegrityChecker checker) throws DescriptorException
validateGetMethodReturnType
in class IndirectionPolicy
DescriptorException
public void validateGetMethodReturnTypeForCollection(Class returnType, IntegrityChecker checker) throws DescriptorException
validateGetMethodReturnTypeForCollection
in class IndirectionPolicy
DescriptorException
public void validateSetMethodParameterType(Class parameterType, IntegrityChecker checker) throws DescriptorException
validateSetMethodParameterType
in class IndirectionPolicy
DescriptorException
public void validateSetMethodParameterTypeForCollection(Class parameterType, IntegrityChecker checker) throws DescriptorException
validateSetMethodParameterTypeForCollection
in class IndirectionPolicy
DescriptorException
public Object valueFromQuery(ReadQuery query, AbstractRecord row, AbstractSession session)
valueFromQuery
in class IndirectionPolicy
public Object valueFromRow(Object object)
valueFromRow
in class IndirectionPolicy
Copyright © 2023. All rights reserved.