Package org.apache.openjpa.slice
Class SlicePersistence
java.lang.Object
org.apache.openjpa.slice.SlicePersistence
A helper to determine the slice identifier of an instance.
- Author:
- Pinaki Poddar
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get the slice identifier for the given instance if it is a managed instance and has been assigned to a slice.static boolean
isReplicated
(Object obj) Affirms if the given instance is replicated, provided the given instance is managed.
-
Field Details
-
HINT_TARGET
The key for setting the Query hints. The value is comma-separated Slice names. If the hint is specified then the query is executed only on the listed slices.- See Also:
-
-
Constructor Details
-
SlicePersistence
public SlicePersistence()
-
-
Method Details
-
getSlice
Get the slice identifier for the given instance if it is a managed instance and has been assigned to a slice. If the given instance is replicated across multiple slices then returns comma-separated list of slice names.- Returns:
- name of the slice, if any. null otherwise.
-
isReplicated
Affirms if the given instance is replicated, provided the given instance is managed.
-