Module org.eclipse.persistence.sdo
Class SDOMarshalListener
java.lang.Object
org.eclipse.persistence.sdo.helper.SDOMarshalListener
- All Implemented Interfaces:
org.eclipse.persistence.internal.oxm.Marshaller.Listener
,org.eclipse.persistence.oxm.XMLMarshalListener
public class SDOMarshalListener
extends Object
implements org.eclipse.persistence.oxm.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
ConstructorsConstructorDescriptionSDOMarshalListener
(org.eclipse.persistence.oxm.XMLMarshaller aMarshaller, SDOTypeHelper aTypeHelper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterMarshal
(Object obj) void
beforeMarshal
(Object obj) 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)org.eclipse.persistence.oxm.record.MarshalRecord
void
setMarshalledObject
(Object marshalledObject) void
setMarshalledObjectRootQName
(QName rootQName) void
setRootMarshalRecord
(org.eclipse.persistence.oxm.record.MarshalRecord rootRecord)
-
Constructor Details
-
SDOMarshalListener
public SDOMarshalListener(org.eclipse.persistence.oxm.XMLMarshaller aMarshaller, SDOTypeHelper aTypeHelper)
-
-
Method Details
-
afterMarshal
- Specified by:
afterMarshal
in interfaceorg.eclipse.persistence.internal.oxm.Marshaller.Listener
-
beforeMarshal
- Specified by:
beforeMarshal
in interfaceorg.eclipse.persistence.internal.oxm.Marshaller.Listener
-
setMarshalledObject
-
getMarshalledObject
-
setMarshalledObjectRootQName
-
getMarshalledObjectRootQName
-
setRootMarshalRecord
public void setRootMarshalRecord(org.eclipse.persistence.oxm.record.MarshalRecord rootRecord) -
getRootMarshalRecord
public org.eclipse.persistence.oxm.record.MarshalRecord 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
-