Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)


Class XMLObjectReferenceMapping

  extended by oracle.toplink.mappings.DatabaseMapping
      extended by oracle.toplink.mappings.AggregateMapping
          extended by oracle.toplink.ox.mappings.XMLObjectReferenceMapping
All Implemented Interfaces:, java.lang.Cloneable, oracle.toplink.ox.mappings.XMLMapping
Direct Known Subclasses:

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
          The default constructor initializes the sourceToTargetKeyFieldAssociations and sourceToTargetKeys data structures.
Method Summary
 void addSourceToTargetKeyFieldAssociation(java.lang.String srcXPath, java.lang.String tgtXPath)
          Add a source-target xpath pair to the map.
 void setField(DatabaseField field)
Methods inherited from class oracle.toplink.mappings.AggregateMapping
getReferenceClass, setReferenceClass
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

Constructor Detail


public XMLObjectReferenceMapping()
The default constructor initializes the sourceToTargetKeyFieldAssociations and sourceToTargetKeys data structures.

Method Detail


public void addSourceToTargetKeyFieldAssociation(java.lang.String srcXPath,
                                                 java.lang.String tgtXPath)
Add a source-target xpath pair to the map.

srcXPath -
tgtXPath -


public void setField(DatabaseField field)
field -

Copyright © 1998, 2012, Oracle. All Rights Reserved.