Skip navigation links
oracle.toplink.ox.mappings
Class XMLObjectReferenceMapping
java.lang.Object
oracle.toplink.mappings.DatabaseMapping
oracle.toplink.mappings.AggregateMapping
oracle.toplink.ox.mappings.XMLObjectReferenceMapping
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, oracle.toplink.ox.mappings.XMLMapping
- Direct Known Subclasses:
- XMLCollectionReferenceMapping
-
public class XMLObjectReferenceMapping
- extends AggregateMapping
- implements oracle.toplink.ox.mappings.XMLMapping
TopLink OXM version of a 1-1 mapping. A list of source-target key field associations is used to link the source xpaths to their related target xpaths, and hence their primary key (unique identifier) values used when (un)marshalling. This mapping has a Vector of XMLFields as opposed to a single XMLField. It is important to note that each target xpath is assumed to be set as a primary key field on the target (reference) class descriptor - this is necessary in order to locate the correct target object instance in the session cache when resolving mapping references.
- See Also:
- Serialized Form
Constructor Summary |
XMLObjectReferenceMapping()
The default constructor initializes the sourceToTargetKeyFieldAssociations and sourceToTargetKeys data structures. |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
getAttributeAccessor, getAttributeClassification, getAttributeName, getGetMethodName, getProperty, getSetMethodName, isLazy, isOptional, isUsingMethodAccess, readOnly, readWrite, setAttributeAccessor, setAttributeName, setGetMethodName, setIsLazy, setIsOptional, setIsReadOnly, setProperty, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XMLObjectReferenceMapping
public XMLObjectReferenceMapping()
- The default constructor initializes the sourceToTargetKeyFieldAssociations and sourceToTargetKeys data structures.
addSourceToTargetKeyFieldAssociation
public void addSourceToTargetKeyFieldAssociation(java.lang.String srcXPath,
java.lang.String tgtXPath)
- Add a source-target xpath pair to the map.
-
- Parameters:
srcXPath
-
tgtXPath
-
setField
public void setField(DatabaseField field)
-
- Parameters:
field
-
Skip navigation links