Class EISDirectMapping

    • Constructor Detail

      • EISDirectMapping

        public EISDirectMapping()
    • Method Detail

      • setXPath

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

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

        public void setFieldName​(java.lang.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,
                                         java.lang.Object fieldValue)
        Description copied from class: AbstractColumnMapping
        INTERNAL:
        Specified by:
        writeValueIntoRow in class AbstractDirectMapping
      • writeFromObjectIntoRow

        public void writeFromObjectIntoRow​(java.lang.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.
        Overrides:
        writeFromObjectIntoRow in class AbstractDirectMapping