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 java.lang.Object implements org.eclipse.persistence.oxm.XMLMarshalListenerPurpose: 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 Constructor Description SDOMarshalListener(org.eclipse.persistence.oxm.XMLMarshaller aMarshaller, SDOTypeHelper aTypeHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterMarshal(java.lang.Object obj)voidbeforeMarshal(java.lang.Object obj)java.lang.ObjectgetMarshalledObject()javax.xml.namespace.QNamegetMarshalledObjectRootQName()java.lang.StringgetPathFromAncestor(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.MarshalRecordgetRootMarshalRecord()voidsetMarshalledObject(java.lang.Object marshalledObject)voidsetMarshalledObjectRootQName(javax.xml.namespace.QName rootQName)voidsetRootMarshalRecord(org.eclipse.persistence.oxm.record.MarshalRecord rootRecord)
-
-
-
Constructor Detail
-
SDOMarshalListener
public SDOMarshalListener(org.eclipse.persistence.oxm.XMLMarshaller aMarshaller, SDOTypeHelper aTypeHelper)
-
-
Method Detail
-
afterMarshal
public void afterMarshal(java.lang.Object obj)
- Specified by:
afterMarshalin interfaceorg.eclipse.persistence.internal.oxm.Marshaller.Listener
-
beforeMarshal
public void beforeMarshal(java.lang.Object obj)
- Specified by:
beforeMarshalin interfaceorg.eclipse.persistence.internal.oxm.Marshaller.Listener
-
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(org.eclipse.persistence.oxm.record.MarshalRecord rootRecord)
-
getRootMarshalRecord
public org.eclipse.persistence.oxm.record.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
-
-