Class DocumentPreservationPolicy
- java.lang.Object
-
- org.eclipse.persistence.oxm.documentpreservation.DocumentPreservationPolicy
-
public abstract class DocumentPreservationPolicy extends java.lang.Object
Purpose:Provides an interface for customizing how Documents are preserved.Responsibilities:
- Access objects from the cache based on node
- Access nodes from the cache based on Object
- Add objects and nodes to the cache
- Allow the configuration of how nodes are added into the preserved doc
- Author:
- mmacivor
- Since:
- Oracle TopLink 11g
-
-
Constructor Summary
Constructors Constructor Description DocumentPreservationPolicy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addObjectToCache(java.lang.Object obj, org.w3c.dom.Node node)
abstract void
addObjectToCache(java.lang.Object obj, org.w3c.dom.Node node, org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping)
abstract org.w3c.dom.Node
getNodeForObject(java.lang.Object obj)
NodeOrderingPolicy
getNodeOrderingPolicy()
abstract java.lang.Object
getObjectForNode(org.w3c.dom.Node node)
abstract java.lang.Object
getObjectForNode(org.w3c.dom.Node node, org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping)
void
initialize(org.eclipse.persistence.internal.oxm.Context context)
INTERNALvoid
setNodeOrderingPolicy(NodeOrderingPolicy policy)
PUBLIC: Sets the NodeOrderingPolicy to be used by this DocumentPreservationPolicy when adding new elements into a cached XML Document.abstract boolean
shouldPreserveDocument()
-
-
-
Method Detail
-
setNodeOrderingPolicy
public void setNodeOrderingPolicy(NodeOrderingPolicy policy)
PUBLIC: Sets the NodeOrderingPolicy to be used by this DocumentPreservationPolicy when adding new elements into a cached XML Document.
-
getNodeOrderingPolicy
public NodeOrderingPolicy getNodeOrderingPolicy()
-
addObjectToCache
public abstract void addObjectToCache(java.lang.Object obj, org.w3c.dom.Node node)
-
addObjectToCache
public abstract void addObjectToCache(java.lang.Object obj, org.w3c.dom.Node node, org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping)
- Since:
- EclipseLink 2.5.0
-
getNodeForObject
public abstract org.w3c.dom.Node getNodeForObject(java.lang.Object obj)
-
getObjectForNode
public abstract java.lang.Object getObjectForNode(org.w3c.dom.Node node)
-
getObjectForNode
public abstract java.lang.Object getObjectForNode(org.w3c.dom.Node node, org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping)
-
shouldPreserveDocument
public abstract boolean shouldPreserveDocument()
-
initialize
public void initialize(org.eclipse.persistence.internal.oxm.Context context)
INTERNAL
-
-