Module org.eclipse.persistence.core
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
Modifier and TypeMethodDescriptionvoid
addSourceToTargetKeyFieldAssociation
(String srcXPath, String tgtXPath) Add a source-target xpath pair to the map.buildFieldValue
(Object targetObject, XML_FIELD xmlField, ABSTRACT_SESSION session) void
buildReference
(UNMARSHAL_RECORD unmarshalRecord, XML_FIELD xmlField, Object realValue, ABSTRACT_SESSION session) Class
<?> INTERNAL:Return a list of source-target xmlfield pairs.boolean
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 Details
-
addSourceToTargetKeyFieldAssociation
Add a source-target xpath pair to the map. -
buildFieldValue
-
buildReference
void buildReference(UNMARSHAL_RECORD unmarshalRecord, XML_FIELD xmlField, Object realValue, ABSTRACT_SESSION session) -
getFields
-
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
-