Module org.eclipse.persistence.core
Class DescriptorLevelDocumentPreservationPolicy
java.lang.Object
org.eclipse.persistence.oxm.documentpreservation.DocumentPreservationPolicy
org.eclipse.persistence.internal.oxm.documentpreservation.DescriptorLevelDocumentPreservationPolicy
INTERNAL:
Purpose:Provide an implementation of DocumentPreservation Policy that accesses the session cache to store Objects and their associated nodes.
Responsibilities:
- Add new objects and their associated nodes into the Session cache, wrapping them in a weak reference.
- Lookup the node for a given Object
- Since:
- TopLink 11g
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObjectToCache(Object obj, Node node) voidaddObjectToCache(Object obj, Node node, Mapping selfRecordMapping) getNodeForObject(Object obj) getObjectForNode(Node node) getObjectForNode(Node node, Mapping selfRecordMapping) booleanMethods inherited from class org.eclipse.persistence.oxm.documentpreservation.DocumentPreservationPolicy
getNodeOrderingPolicy, initialize, setNodeOrderingPolicy
-
Field Details
-
nodesToObjects
-
objectsToNodes
-
-
Constructor Details
-
DescriptorLevelDocumentPreservationPolicy
public DescriptorLevelDocumentPreservationPolicy()
-
-
Method Details
-
addObjectToCache
- Specified by:
addObjectToCachein classDocumentPreservationPolicy
-
addObjectToCache
- Specified by:
addObjectToCachein classDocumentPreservationPolicy
-
getNodeForObject
- Specified by:
getNodeForObjectin classDocumentPreservationPolicy
-
getObjectForNode
- Specified by:
getObjectForNodein classDocumentPreservationPolicy
-
getObjectForNode
- Specified by:
getObjectForNodein classDocumentPreservationPolicy
-
shouldPreserveDocument
public boolean shouldPreserveDocument()- Specified by:
shouldPreserveDocumentin classDocumentPreservationPolicy
-