public class NoIndirectionPolicy extends IndirectionPolicy
ForeignReferenceMapping,
Serialized Formmapping| Constructor and Description |
|---|
NoIndirectionPolicy()
INTERNAL:
Construct a new indirection policy.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
cloneAttribute(java.lang.Object attributeValue,
java.lang.Object original,
java.lang.Object clone,
UnitOfWorkImpl unitOfWork,
boolean buildDirectlyFromRow)
INTERNAL:
Return a clone of the attribute.
|
protected boolean |
collectionTypeIsValid(java.lang.Class collectionType)
INTERNAL:
Return whether the collection type is appropriate for the indirection policy.
|
AbstractRecord |
extractReferenceRow(java.lang.Object referenceObject)
INTERNAL:
Return the reference row for the reference object.
|
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 |
getRealAttributeValueFromObject(java.lang.Object object,
java.lang.Object attribute)
INTERNAL:
Return the "real" attribute value, as opposed to any wrapper.
|
java.lang.Object |
nullValueFromRow()
INTERNAL:
Return the null value of the appropriate attribute.
|
boolean |
objectIsInstantiated(java.lang.Object object)
INTERNAL:
Return whether the specified object is instantiated.
|
protected boolean |
typeIsValid(java.lang.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(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 |
valueFromQuery(ReadQuery query,
AbstractRecord row,
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, buildCascadeQuery, clone, extractPrimaryKeyForReferenceObject, getCollectionMapping, getForeignReferenceMapping, getMapping, getOneToOneMapping, getValueFromProxy, initialize, iterateOnAttributeValue, setMapping, setRealAttributeValueInObject, usesTransparentIndirection, validateAttributeOfInstantiatedObject, validateContainerPolicypublic NoIndirectionPolicy()
public java.lang.Object cloneAttribute(java.lang.Object attributeValue,
java.lang.Object original,
java.lang.Object clone,
UnitOfWorkImpl unitOfWork,
boolean buildDirectlyFromRow)
cloneAttribute in class IndirectionPolicybuildDirectlyFromRow - 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(java.lang.Class collectionType)
public AbstractRecord extractReferenceRow(java.lang.Object referenceObject)
extractReferenceRow in class IndirectionPolicypublic java.lang.Object getOriginalIndirectionObject(java.lang.Object unitOfWorkIndirectionObject,
AbstractSession session)
getOriginalIndirectionObject in class IndirectionPolicypublic java.lang.Object getRealAttributeValueFromObject(java.lang.Object object,
java.lang.Object attribute)
getRealAttributeValueFromObject in class IndirectionPolicypublic java.lang.Object nullValueFromRow()
nullValueFromRow in class IndirectionPolicypublic boolean objectIsInstantiated(java.lang.Object object)
objectIsInstantiated in class IndirectionPolicyprotected boolean typeIsValid(java.lang.Class attributeType)
public boolean usesIndirection()
usesIndirection in class IndirectionPolicypublic void validateDeclaredAttributeType(java.lang.Class attributeType,
IntegrityChecker checker)
throws DescriptorException
validateDeclaredAttributeType in class IndirectionPolicyDescriptorExceptionpublic void validateDeclaredAttributeTypeForCollection(java.lang.Class attributeType,
IntegrityChecker checker)
throws DescriptorException
validateDeclaredAttributeTypeForCollection in class IndirectionPolicyDescriptorExceptionpublic void validateGetMethodReturnType(java.lang.Class returnType,
IntegrityChecker checker)
throws DescriptorException
validateGetMethodReturnType in class IndirectionPolicyDescriptorExceptionpublic void validateGetMethodReturnTypeForCollection(java.lang.Class returnType,
IntegrityChecker checker)
throws DescriptorException
validateGetMethodReturnTypeForCollection in class IndirectionPolicyDescriptorExceptionpublic void validateSetMethodParameterType(java.lang.Class parameterType,
IntegrityChecker checker)
throws DescriptorException
validateSetMethodParameterType in class IndirectionPolicyDescriptorExceptionpublic void validateSetMethodParameterTypeForCollection(java.lang.Class parameterType,
IntegrityChecker checker)
throws DescriptorException
validateSetMethodParameterTypeForCollection in class IndirectionPolicyDescriptorExceptionpublic java.lang.Object valueFromQuery(ReadQuery query, AbstractRecord row, AbstractSession session)
valueFromQuery in class IndirectionPolicypublic java.lang.Object valueFromRow(java.lang.Object object)
valueFromRow in class IndirectionPolicy