Module org.eclipse.persistence.core
Class DocumentPreservationPolicy
java.lang.Object
org.eclipse.persistence.oxm.documentpreservation.DocumentPreservationPolicy
- Direct Known Subclasses:
DescriptorLevelDocumentPreservationPolicy,NoDocumentPreservationPolicy,XMLBinderPolicy
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
- Since:
- Oracle TopLink 11g
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddObjectToCache(Object obj, Node node) abstract voidaddObjectToCache(Object obj, Node node, Mapping selfRecordMapping) abstract NodegetNodeForObject(Object obj) abstract ObjectgetObjectForNode(Node node) abstract ObjectgetObjectForNode(Node node, Mapping selfRecordMapping) voidinitialize(Context context) INTERNALvoidPUBLIC: Sets the NodeOrderingPolicy to be used by this DocumentPreservationPolicy when adding new elements into a cached XML Document.abstract boolean
-
Constructor Details
-
DocumentPreservationPolicy
protected DocumentPreservationPolicy()Default constructor.
-
-
Method Details
-
setNodeOrderingPolicy
PUBLIC: Sets the NodeOrderingPolicy to be used by this DocumentPreservationPolicy when adding new elements into a cached XML Document.- See Also:
-
getNodeOrderingPolicy
-
addObjectToCache
-
addObjectToCache
- Since:
- EclipseLink 2.5.0
-
getNodeForObject
-
getObjectForNode
-
getObjectForNode
-
shouldPreserveDocument
public abstract boolean shouldPreserveDocument() -
initialize
INTERNAL
-