Class EISCompositeDirectCollectionMapping

java.lang.Object
org.eclipse.persistence.core.mappings.CoreMapping<AttributeAccessor,org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.queries.ContainerPolicy,ClassDescriptor,org.eclipse.persistence.internal.helper.DatabaseField>
All Implemented Interfaces:
Serializable, Cloneable, EISMapping, ContainerMapping, ArrayCollectionMapping

public class EISCompositeDirectCollectionMapping extends AbstractCompositeDirectCollectionMapping implements EISMapping

EIS Composite Direct Collection Mappings map a collection of simple Java attributes to and from an EIS Record 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

    • EISCompositeDirectCollectionMapping

      public EISCompositeDirectCollectionMapping()
  • Method Details

    • isEISMapping

      public boolean isEISMapping()
      INTERNAL:
      Overrides:
      isEISMapping in class DatabaseMapping
    • initialize

      public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
      INTERNAL: Initialize the mapping.
      Overrides:
      initialize in class AbstractCompositeDirectCollectionMapping
      Throws:
      DescriptorException
    • setXPath

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

      public String getXPath()
      Get the XPath String
      Returns:
      String the XPath String associated with this Mapping
    • getFieldName

      public String getFieldName()
      PUBLIC: Return the name of the field that holds the nested collection.
      Overrides:
      getFieldName in class AbstractCompositeDirectCollectionMapping
    • setFieldName

      public void setFieldName(String fieldName)
      PUBLIC: Set the name of the field that holds the nested collection.