Class SDOMarshalListener

  • All Implemented Interfaces:
    org.eclipse.persistence.internal.oxm.Marshaller.Listener, XMLMarshalListener

    public class SDOMarshalListener
    extends java.lang.Object
    implements XMLMarshalListener

    Purpose: Implementation of XMLMarshalListener used when marshalling DataObjects to XML

    Responsibilities:

    • Need to do extra work to marshal org.eclipse.persistence.sdo.SDOChangeSummary objects
    • Method Detail

      • afterMarshal

        public void afterMarshal​(java.lang.Object obj)
        Description copied from interface: org.eclipse.persistence.internal.oxm.Marshaller.Listener
        This event will be called after an object is marshalled.
        Specified by:
        afterMarshal in interface org.eclipse.persistence.internal.oxm.Marshaller.Listener
        Parameters:
        obj - The object that was marshalled.
      • beforeMarshal

        public void beforeMarshal​(java.lang.Object obj)
        Description copied from interface: org.eclipse.persistence.internal.oxm.Marshaller.Listener
        This event will be called before an object is marshalled.
        Specified by:
        beforeMarshal in interface org.eclipse.persistence.internal.oxm.Marshaller.Listener
        Parameters:
        obj - The object that will be marshalled.
      • setMarshalledObject

        public void setMarshalledObject​(java.lang.Object marshalledObject)
      • getMarshalledObject

        public java.lang.Object getMarshalledObject()
      • setMarshalledObjectRootQName

        public void setMarshalledObjectRootQName​(javax.xml.namespace.QName rootQName)
      • getMarshalledObjectRootQName

        public javax.xml.namespace.QName getMarshalledObjectRootQName()
      • setRootMarshalRecord

        public void setRootMarshalRecord​(MarshalRecord rootRecord)
      • getRootMarshalRecord

        public MarshalRecord getRootMarshalRecord()
      • getPathFromAncestor

        public java.lang.String getPathFromAncestor​(SDODataObject sourceDO,
                                                    SDODataObject targetDO,
                                                    SDOChangeSummary cs)
        INTERNAL: Get path for non-deleted DataObjects
        ChangeSummary is not required and is set to null.
        Assumptions:
        target node is an ancestor of the source (this)
        Parameters:
        sourceDO -
        targetDO -
        Returns:
        String xpath