Class DirectToXMLTypeMapping

    • Field Detail

      • shouldReadWholeDocument

        protected boolean shouldReadWholeDocument
        Indicates if we should initialize the whole DOM on a read. This is only used if the user is mapping from an Oracle Document implementation.
    • Constructor Detail

      • DirectToXMLTypeMapping

        public DirectToXMLTypeMapping()
    • Method Detail

      • setShouldReadWholeDocument

        public void setShouldReadWholeDocument​(boolean readWholeDocument)
        PUBLIC:
        Parameters:
        readWholeDocument - - determines if the Oracle XDB DOM should be fully initialized on a read.
      • shouldReadWholeDocument

        public boolean shouldReadWholeDocument()
        PUBLIC:
        Returns:
        boolean - returns true if currently initializing DOMs on reads.
      • buildCloneValue

        protected java.lang.Object buildCloneValue​(java.lang.Object attributeValue,
                                                   org.eclipse.persistence.internal.sessions.AbstractSession session)
        INTERNAL: Clone the DOM Document if required.
        Overrides:
        buildCloneValue in class AbstractDirectMapping
      • compareObjectValues

        protected boolean compareObjectValues​(java.lang.Object firstValue,
                                              java.lang.Object secondValue,
                                              org.eclipse.persistence.internal.sessions.AbstractSession session)
        INTERNAL: Compare the attribute values. Compare Nodes if mapped as a DOM.
        Overrides:
        compareObjectValues in class AbstractDirectMapping