Interface ObjectReferenceMapping<ABSTRACT_SESSION extends CoreAbstractSession,ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,CONTAINER_POLICY extends CoreContainerPolicy,DESCRIPTOR extends CoreDescriptor,FIELD extends CoreField,UNMARSHAL_RECORD extends UnmarshalRecord,XML_FIELD extends Field,XML_RECORD extends XMLRecord>
-
- All Superinterfaces:
Mapping<ABSTRACT_SESSION,ATTRIBUTE_ACCESSOR,CONTAINER_POLICY,DESCRIPTOR,FIELD,XML_RECORD>
- All Known Subinterfaces:
CollectionReferenceMapping<ABSTRACT_SESSION,ATTRIBUTE_ACCESSOR,CONTAINER_POLICY,DESCRIPTOR,FIELD,UNMARSHAL_RECORD,XML_FIELD,XML_RECORD>
- All Known Implementing Classes:
XMLCollectionReferenceMapping
,XMLObjectReferenceMapping
public interface ObjectReferenceMapping<ABSTRACT_SESSION extends CoreAbstractSession,ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,CONTAINER_POLICY extends CoreContainerPolicy,DESCRIPTOR extends CoreDescriptor,FIELD extends CoreField,UNMARSHAL_RECORD extends UnmarshalRecord,XML_FIELD extends Field,XML_RECORD extends XMLRecord> extends Mapping<ABSTRACT_SESSION,ATTRIBUTE_ACCESSOR,CONTAINER_POLICY,DESCRIPTOR,FIELD,XML_RECORD>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addSourceToTargetKeyFieldAssociation(String srcXPath, String tgtXPath)
Add a source-target xpath pair to the map.Object
buildFieldValue(Object targetObject, XML_FIELD xmlField, ABSTRACT_SESSION session)
void
buildReference(UNMARSHAL_RECORD unmarshalRecord, XML_FIELD xmlField, Object realValue, ABSTRACT_SESSION session)
List<FIELD>
getFields()
InverseReferenceMapping
getInverseReferenceMapping()
Class
getReferenceClass()
String
getReferenceClassName()
INTERNAL:Map
getSourceToTargetKeyFieldAssociations()
Return a list of source-target xmlfield pairs.boolean
isWriteOnly()
void
setIsWriteOnly(boolean b)
void
setReferenceClassName(String aClassName)
-
Methods inherited from interface org.eclipse.persistence.internal.oxm.mappings.Mapping
convertClassNamesToClasses, getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDescriptor, getField, getReferenceDescriptor, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isCollectionMapping, isReadOnly, isReferenceMapping, isTransformationMapping, setAttributeAccessor, setAttributeName, setAttributeValueInObject, setGetMethodName, setIsReadOnly, setProperties, setSetMethodName, writeSingleValue
-
-
-
-
Method Detail
-
addSourceToTargetKeyFieldAssociation
void addSourceToTargetKeyFieldAssociation(String srcXPath, String tgtXPath)
Add a source-target xpath pair to the map.- Parameters:
srcXPath
-tgtXPath
-
-
buildFieldValue
Object buildFieldValue(Object targetObject, XML_FIELD xmlField, ABSTRACT_SESSION session)
-
buildReference
void buildReference(UNMARSHAL_RECORD unmarshalRecord, XML_FIELD xmlField, Object realValue, ABSTRACT_SESSION session)
-
getInverseReferenceMapping
InverseReferenceMapping getInverseReferenceMapping()
-
getReferenceClass
Class getReferenceClass()
-
getReferenceClassName
String getReferenceClassName()
INTERNAL:
-
getSourceToTargetKeyFieldAssociations
Map getSourceToTargetKeyFieldAssociations()
Return a list of source-target xmlfield pairs.
-
isWriteOnly
boolean isWriteOnly()
-
setIsWriteOnly
void setIsWriteOnly(boolean b)
-
setReferenceClassName
void setReferenceClassName(String aClassName)
-
-