Class XMLAbstractAnyMapping

    • Constructor Detail

      • XMLAbstractAnyMapping

        public XMLAbstractAnyMapping()
    • Method Detail

      • buildObjectForNonXMLRoot

        protected java.lang.Object buildObjectForNonXMLRoot​(ClassDescriptor referenceDescriptor,
                                                            XMLConverter converter,
                                                            ObjectBuildingQuery query,
                                                            DOMRecord record,
                                                            DOMRecord nestedRecord,
                                                            org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
                                                            org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                            org.w3c.dom.Node next,
                                                            java.lang.Object container,
                                                            org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
      • buildObjectAndWrapInXMLRoot

        protected java.lang.Object buildObjectAndWrapInXMLRoot​(ClassDescriptor referenceDescriptor,
                                                               XMLConverter converter,
                                                               ObjectBuildingQuery query,
                                                               DOMRecord record,
                                                               DOMRecord nestedRecord,
                                                               org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
                                                               org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                               org.w3c.dom.Node next,
                                                               java.lang.Object container,
                                                               org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
        Uses a given reference descriptor to build an object based on a given DOMRecord. If a converter is provided it is applied to the newly built object. The reference descriptor will wrap the object in an XMLRoot if required, and the object will be added to the given Container Policy if it is non-null.
      • buildObjectNoReferenceDescriptor

        protected java.lang.Object buildObjectNoReferenceDescriptor​(DOMRecord record,
                                                                    XMLConverter converter,
                                                                    org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                                    org.w3c.dom.Node next,
                                                                    java.lang.Object container,
                                                                    org.eclipse.persistence.internal.queries.ContainerPolicy cp)
        Convenience method that takes a given Node and applies namespace information, converts it if necessary, and adds the resulting object to the given ContainerPolicy if non-null.
      • buildXMLRootForText

        protected XMLRoot buildXMLRootForText​(org.w3c.dom.Node node,
                                              javax.xml.namespace.QName schemaTypeQName,
                                              XMLConverter converter,
                                              org.eclipse.persistence.internal.sessions.AbstractSession session,
                                              DOMRecord record)
        Convenience method that takes a given node and checks the first child for TEXT_NODE. If the first child is a text node containing a non-empty String, the String value will be processed and wrapped in an XMLRoot. If schemaTypeQName represents a default XML type (boolean, dateTime, etc) the String value will be converted to that type. If a converter is provided it will be applied before wrapping in an XMLRoot.
      • buildXMLRoot

        protected XMLRoot buildXMLRoot​(org.w3c.dom.Node node,
                                       java.lang.Object object)
        Convenience method that builds an XMLRoot wrapping a given object. The local name and uri are set using the given Node.
      • isWriteOnly

        public boolean isWriteOnly()
        Description copied from class: DatabaseMapping
        INTERNAL: Some mappings support no attribute (transformation and multitenant primary key).
        Overrides:
        isWriteOnly in class DatabaseMapping
      • setIsWriteOnly

        public void setIsWriteOnly​(boolean b)