Class EISDirectMapping

All Implemented Interfaces:
Serializable, Cloneable, EISMapping, MapComponentMapping, MapKeyMapping

public class EISDirectMapping extends AbstractDirectMapping implements EISMapping

EIS Direct Mappings map a simple Java attribute 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 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:
  • Constructor Details

    • EISDirectMapping

      public EISDirectMapping()
  • Method Details

    • isEISMapping

      public boolean isEISMapping()
      isEISMapping in class DatabaseMapping
    • setXPath

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

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

      public void setFieldName(String fieldName)
      PUBLIC: Set the field name in the mapping.
    • writeValueIntoRow

      protected void writeValueIntoRow(org.eclipse.persistence.internal.sessions.AbstractRecord row, org.eclipse.persistence.internal.helper.DatabaseField field, Object fieldValue)
      Description copied from class: AbstractColumnMapping
      Specified by:
      writeValueIntoRow in class AbstractDirectMapping
    • writeFromObjectIntoRow

      public void writeFromObjectIntoRow(Object object, org.eclipse.persistence.internal.sessions.AbstractRecord row, org.eclipse.persistence.internal.sessions.AbstractSession session, DatabaseMapping.WriteType writeType)
      INTERNAL: We override this method in order to set the session on the record if the data format is XML. Get a value from the object and set that in the respective field of the row.
      writeFromObjectIntoRow in class AbstractDirectMapping