Class DocumentPreservationPolicy
java.lang.Object
org.eclipse.persistence.oxm.documentpreservation.DocumentPreservationPolicy
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addObjectToCache
(Object obj, Node node) abstract void
addObjectToCache
(Object obj, Node node, org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping) abstract Node
getNodeForObject
(Object obj) abstract Object
getObjectForNode
(Node node) abstract Object
getObjectForNode
(Node node, org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping) void
initialize
(org.eclipse.persistence.internal.oxm.Context context) INTERNALvoid
PUBLIC: Sets the NodeOrderingPolicy to be used by this DocumentPreservationPolicy when adding new elements into a cached XML Document.abstract boolean
-
Constructor Details
-
DocumentPreservationPolicy
public DocumentPreservationPolicy()
-
-
Method Details
-
setNodeOrderingPolicy
PUBLIC: Sets the NodeOrderingPolicy to be used by this DocumentPreservationPolicy when adding new elements into a cached XML Document. -
getNodeOrderingPolicy
-
addObjectToCache
-
addObjectToCache
-
getNodeForObject
-
getObjectForNode
-
getObjectForNode
-
shouldPreserveDocument
public abstract boolean shouldPreserveDocument() -
initialize
public void initialize(org.eclipse.persistence.internal.oxm.Context context) INTERNAL
-