Module org.eclipse.persistence.sdo
Class SDOMarshalListener
java.lang.Object
org.eclipse.persistence.sdo.helper.SDOMarshalListener
- All Implemented Interfaces:
Marshaller.Listener
,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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterMarshal
(Object obj) This event will be called after an object is marshalled.void
beforeMarshal
(Object obj) This event will be called before an object is marshalled.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)void
setMarshalledObject
(Object marshalledObject) void
setMarshalledObjectRootQName
(QName rootQName) void
setRootMarshalRecord
(MarshalRecord rootRecord)
-
Constructor Details
-
SDOMarshalListener
-
-
Method Details
-
afterMarshal
Description copied from interface:Marshaller.Listener
This event will be called after an object is marshalled.- Specified by:
afterMarshal
in interfaceMarshaller.Listener
- Parameters:
obj
- The object that was marshalled.
-
beforeMarshal
Description copied from interface:Marshaller.Listener
This event will be called before an object is marshalled.- Specified by:
beforeMarshal
in interfaceMarshaller.Listener
- Parameters:
obj
- The object that will be marshalled.
-
setMarshalledObject
-
getMarshalledObject
-
setMarshalledObjectRootQName
-
getMarshalledObjectRootQName
-
setRootMarshalRecord
-
getRootMarshalRecord
-
getPathFromAncestor
public 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
-