Class EISCompositeObjectMapping

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, EISMapping

    public class EISCompositeObjectMapping
    extends AbstractCompositeObjectMapping
    implements EISMapping

    EIS Composite Object Mappings map a Java object to a privately owned, one-to-one relationship to an EIS Record according to its descriptor's record type.

    Record Type Description
    Indexed Ordered collection of record elements. The indexed record EIS format enables Java class attribute values to be retreived by position or index.
    Mapped Key-value map based representation of record elements. The mapped record EIS format enables Java class attribute values to be retreived by an object key.
    XML Record/Map representation of an XML DOM element.
    See Also:
    EISDescriptor.useIndexedRecordFormat(), EISDescriptor.useMappedRecordFormat(), EISDescriptor.useXMLRecordFormat(), Serialized Form
    Since:
    Oracle TopLink 10g Release 2 (10.1.3)
    • Constructor Detail

      • EISCompositeObjectMapping

        public EISCompositeObjectMapping()
    • Method Detail

      • getXPath

        public java.lang.String getXPath()
        Get the XPath String
        Returns:
        String the XPath String associated with this Mapping
      • setXPath

        public void setXPath​(java.lang.String xpathString)
        Set the Mapping field name attribute to the given XPath String
        Parameters:
        xpathString - String
      • getFieldName

        public java.lang.String getFieldName()
        PUBLIC: Return the name of the field mapped by the mapping.
      • setFieldName

        public void setFieldName​(java.lang.String fieldName)
        PUBLIC: Set the name of the field mapped by the mapping.
      • buildCompositeObject

        protected java.lang.Object buildCompositeObject​(org.eclipse.persistence.internal.descriptors.ObjectBuilder objectBuilder,
                                                        org.eclipse.persistence.internal.sessions.AbstractRecord nestedRow,
                                                        ObjectBuildingQuery query,
                                                        org.eclipse.persistence.internal.identitymaps.CacheKey parentCacheKey,
                                                        org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
                                                        org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
        Specified by:
        buildCompositeObject in class AbstractCompositeObjectMapping
      • preInitialize

        public void preInitialize​(org.eclipse.persistence.internal.sessions.AbstractSession session)
        Fix field names for XML data descriptors. Since fields are fixed to use text() by default in descriptor, ensure the correct non text field is used here.
        Overrides:
        preInitialize in class DatabaseMapping