Class XMLVariableXPathObjectMapping

    • Field Detail

      • variableAttributeName

        protected java.lang.String variableAttributeName
      • variableGetMethodName

        protected java.lang.String variableGetMethodName
      • variableSetMethodName

        protected java.lang.String variableSetMethodName
    • Constructor Detail

      • XMLVariableXPathObjectMapping

        public XMLVariableXPathObjectMapping()
    • Method Detail

      • getFields

        public java.util.Vector getFields()
        Description copied from class: DatabaseMapping
        INTERNAL: Returns a vector of all the fields this mapping represents.
        Overrides:
        getFields in class DatabaseMapping
      • getVariableAttributeName

        public java.lang.String getVariableAttributeName()
      • setVariableAttributeName

        public void setVariableAttributeName​(java.lang.String variableAttributeName)
        Specified by:
        setVariableAttributeName in interface org.eclipse.persistence.internal.oxm.mappings.VariableXPathObjectMapping<org.eclipse.persistence.internal.sessions.AbstractSession,​AttributeAccessor,​org.eclipse.persistence.internal.queries.ContainerPolicy,​Converter,​ClassDescriptor,​org.eclipse.persistence.internal.helper.DatabaseField,​XMLMarshaller,​Session,​XMLUnmarshaller,​XMLRecord>
      • getVariableGetMethodName

        public java.lang.String getVariableGetMethodName()
      • setVariableGetMethodName

        public void setVariableGetMethodName​(java.lang.String variableGetMethodName)
        Specified by:
        setVariableGetMethodName in interface org.eclipse.persistence.internal.oxm.mappings.VariableXPathObjectMapping<org.eclipse.persistence.internal.sessions.AbstractSession,​AttributeAccessor,​org.eclipse.persistence.internal.queries.ContainerPolicy,​Converter,​ClassDescriptor,​org.eclipse.persistence.internal.helper.DatabaseField,​XMLMarshaller,​Session,​XMLUnmarshaller,​XMLRecord>
      • getVariableSetMethodName

        public java.lang.String getVariableSetMethodName()
      • setVariableSetMethodName

        public void setVariableSetMethodName​(java.lang.String variableSetMethodName)
        Specified by:
        setVariableSetMethodName in interface org.eclipse.persistence.internal.oxm.mappings.VariableXPathObjectMapping<org.eclipse.persistence.internal.sessions.AbstractSession,​AttributeAccessor,​org.eclipse.persistence.internal.queries.ContainerPolicy,​Converter,​ClassDescriptor,​org.eclipse.persistence.internal.helper.DatabaseField,​XMLMarshaller,​Session,​XMLUnmarshaller,​XMLRecord>
      • setVariableAttributeAccessor

        public void setVariableAttributeAccessor​(AttributeAccessor variableAttributeAccessor)
        Specified by:
        setVariableAttributeAccessor in interface org.eclipse.persistence.internal.oxm.mappings.VariableXPathObjectMapping<org.eclipse.persistence.internal.sessions.AbstractSession,​AttributeAccessor,​org.eclipse.persistence.internal.queries.ContainerPolicy,​Converter,​ClassDescriptor,​org.eclipse.persistence.internal.helper.DatabaseField,​XMLMarshaller,​Session,​XMLUnmarshaller,​XMLRecord>
      • writeSingleValue

        public void writeSingleValue​(java.lang.Object value,
                                     java.lang.Object parent,
                                     XMLRecord xmlRow,
                                     org.eclipse.persistence.internal.sessions.AbstractSession session)
        Description copied from interface: XMLMapping
        INTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath. Used for Sequenced marshalling.
        Specified by:
        writeSingleValue in interface org.eclipse.persistence.internal.oxm.mappings.Mapping<org.eclipse.persistence.internal.sessions.AbstractSession,​AttributeAccessor,​org.eclipse.persistence.internal.queries.ContainerPolicy,​ClassDescriptor,​org.eclipse.persistence.internal.helper.DatabaseField,​XMLRecord>
        Specified by:
        writeSingleValue in interface XMLMapping
        Overrides:
        writeSingleValue in class XMLCompositeObjectMapping
        Parameters:
        value - - The value to be marshalled
        xmlRow - - The Record the value is being marshalled too.
      • buildCompositeRow

        protected org.eclipse.persistence.internal.sessions.AbstractRecord buildCompositeRow​(XMLField variableField,
                                                                                             java.lang.Object attributeValue,
                                                                                             org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                                                             org.eclipse.persistence.internal.sessions.AbstractRecord parentRow,
                                                                                             DatabaseMapping.WriteType writeType)
      • getXPathFragmentForValue

        public org.eclipse.persistence.internal.oxm.XPathFragment getXPathFragmentForValue​(java.lang.Object obj,
                                                                                           org.eclipse.persistence.internal.oxm.NamespaceResolver nr,
                                                                                           boolean isNamespaceAware,
                                                                                           char namespaceSep)
        Specified by:
        getXPathFragmentForValue in interface org.eclipse.persistence.internal.oxm.mappings.VariableXPathObjectMapping<org.eclipse.persistence.internal.sessions.AbstractSession,​AttributeAccessor,​org.eclipse.persistence.internal.queries.ContainerPolicy,​Converter,​ClassDescriptor,​org.eclipse.persistence.internal.helper.DatabaseField,​XMLMarshaller,​Session,​XMLUnmarshaller,​XMLRecord>
      • isAttribute

        public boolean isAttribute()
        Specified by:
        isAttribute in interface org.eclipse.persistence.internal.oxm.mappings.VariableXPathObjectMapping<org.eclipse.persistence.internal.sessions.AbstractSession,​AttributeAccessor,​org.eclipse.persistence.internal.queries.ContainerPolicy,​Converter,​ClassDescriptor,​org.eclipse.persistence.internal.helper.DatabaseField,​XMLMarshaller,​Session,​XMLUnmarshaller,​XMLRecord>
      • setAttribute

        public void setAttribute​(boolean isAttribute)
        Specified by:
        setAttribute in interface org.eclipse.persistence.internal.oxm.mappings.VariableXPathObjectMapping<org.eclipse.persistence.internal.sessions.AbstractSession,​AttributeAccessor,​org.eclipse.persistence.internal.queries.ContainerPolicy,​Converter,​ClassDescriptor,​org.eclipse.persistence.internal.helper.DatabaseField,​XMLMarshaller,​Session,​XMLUnmarshaller,​XMLRecord>