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 Object buildCloneValue​(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​(Object firstValue,
                                              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