Class EISCompositeCollectionMapping

All Implemented Interfaces:
Serializable, Cloneable, EISMapping, ContainerMapping, ArrayCollectionMapping

public class EISCompositeCollectionMapping extends AbstractCompositeCollectionMapping implements EISMapping

EIS Composite Collection Mappings map a java.util.Map or java.util.Collection of Java objects to an EIS record in a privately owned, one-to-many relationship according to its descriptor's record type.

Record formats
Record Type Description
Indexed Ordered collection of record elements. The indexed record EIS format enables Java class attribute values to be retrieved 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 retrieved by an object key.
XML Record/Map representation of an XML DOM element.
See Also:
  • Constructor Details

    • EISCompositeCollectionMapping

      public EISCompositeCollectionMapping()
  • Method Details

    • isEISMapping

      public boolean isEISMapping()
      isEISMapping in class DatabaseMapping
    • 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.
      preInitialize in class DatabaseMapping
    • initialize

      public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
      INTERNAL: The mapping is initialized with the given session. This mapping is fully initialized after this.
      initialize in class AbstractCompositeCollectionMapping
    • getXPath

      public String getXPath()
      Get the XPath String
      String the XPath String associated with this Mapping
    • setXPath

      public void setXPath(String xpathString)
      Set the Mapping field name attribute to the given XPath String
      xpathString - String
    • getFieldName

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

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

      protected Object buildCompositeObject(ClassDescriptor descriptor, org.eclipse.persistence.internal.sessions.AbstractRecord nestedRow, ObjectBuildingQuery query, org.eclipse.persistence.internal.identitymaps.CacheKey parentsCacheKey, org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager, org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
      Specified by:
      buildCompositeObject in class AbstractCompositeCollectionMapping
    • buildCompositeRow

      protected org.eclipse.persistence.internal.sessions.AbstractRecord buildCompositeRow(Object attributeValue, org.eclipse.persistence.internal.sessions.AbstractSession session, org.eclipse.persistence.internal.sessions.AbstractRecord parentRow, DatabaseMapping.WriteType writeType)
      Specified by:
      buildCompositeRow in class AbstractCompositeCollectionMapping