org.eclipse.persistence.sdo.helper
Class SDOMarshalListener
java.lang.Object
org.eclipse.persistence.sdo.helper.SDOMarshalListener
- All Implemented Interfaces:
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDOMarshalListener
public SDOMarshalListener(XMLMarshaller aMarshaller,
SDOTypeHelper aTypeHelper)
afterMarshal
public void afterMarshal(java.lang.Object obj)
- Specified by:
afterMarshal
in interface XMLMarshalListener
beforeMarshal
public void beforeMarshal(java.lang.Object obj)
- Specified by:
beforeMarshal
in interface XMLMarshalListener
setMarshalledObject
public void setMarshalledObject(java.lang.Object marshalledObject)
getMarshalledObject
public java.lang.Object getMarshalledObject()
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