Class XMLVariableXPathCollectionMapping

    • Field Detail

      • variableAttributeName

        protected java.lang.String variableAttributeName
      • variableGetMethodName

        protected java.lang.String variableGetMethodName
      • variableSetMethodName

        protected java.lang.String variableSetMethodName
    • Constructor Detail

      • XMLVariableXPathCollectionMapping

        public XMLVariableXPathCollectionMapping()
    • Method Detail

      • useMapClass

        public void useMapClass​(java.lang.String concreteContainerClassName)
      • initializeMapContainerPolicy

        protected void initializeMapContainerPolicy​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                    org.eclipse.persistence.internal.queries.MapContainerPolicy cp)
        Overrides:
        initializeMapContainerPolicy in class XMLCompositeCollectionMapping
      • 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>
      • 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 sep)
        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>
      • useMapClassName

        public void useMapClassName​(java.lang.String concreteContainerClassName,
                                    java.lang.String methodName)
        Description copied from interface: ContainerMapping
        PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects. The key used to index a value in the Map is the value returned by a call to the specified zero-argument method. The method must be implemented by the class (or a superclass) of any value to be inserted into the Map.

        The container class must implement (directly or indirectly) the java.util.Map interface.

        To facilitate resolving the method, the mapping's referenceClass must set before calling this method.

        Specified by:
        useMapClassName in interface ContainerMapping
        Overrides:
        useMapClassName in class AbstractCompositeCollectionMapping