java.lang.Object
org.eclipse.persistence.sdo.helper.SDOMarshalListener
- All Implemented Interfaces:
org.eclipse.persistence.internal.oxm.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterMarshal(Object obj) This event will be called after an object is marshalled.voidbeforeMarshal(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)voidsetMarshalledObject(Object marshalledObject) voidsetMarshalledObjectRootQName(QName rootQName) voidsetRootMarshalRecord(MarshalRecord rootRecord)
-
Constructor Details
-
SDOMarshalListener
-
-
Method Details
-
afterMarshal
Description copied from interface:org.eclipse.persistence.internal.oxm.Marshaller.ListenerThis event will be called after an object is marshalled.- Specified by:
afterMarshalin interfaceorg.eclipse.persistence.internal.oxm.Marshaller.Listener- Parameters:
obj- The object that was marshalled.
-
beforeMarshal
Description copied from interface:org.eclipse.persistence.internal.oxm.Marshaller.ListenerThis event will be called before an object is marshalled.- Specified by:
beforeMarshalin interfaceorg.eclipse.persistence.internal.oxm.Marshaller.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
-