Package org.apache.openjpa.slice
Class SliceInfo
java.lang.Object
org.apache.openjpa.slice.SliceInfo
- All Implemented Interfaces:
Serializable
Holder of slice names where a persistent instance is stored. This structure
is held in StateManagers to track the origin of a persistent instance.
- Author:
- Pinaki Poddar
- See Also:
-
Constructor Summary
ConstructorDescriptionGeneric constructor given one or more slice names.Generic constructor given one or more slice names.Constructor for non-replicated instance that is stored in a single slice.Constructor for replicated instance that is stored in one or more slices. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Gets the name of the slice(s) held by this receiver.boolean
Affirms if this receiver designates replicated instances.Sets this receiver as the given StateManager's internal instance-level data.
-
Constructor Details
-
SliceInfo
Generic constructor given one or more slice names. The replicated flag is set independently. -
SliceInfo
Generic constructor given one or more slice names. The replicated flag is set independently. -
SliceInfo
Constructor for non-replicated instance that is stored in a single slice. -
SliceInfo
Constructor for replicated instance that is stored in one or more slices. -
SliceInfo
-
-
Method Details
-
isReplicated
public boolean isReplicated()Affirms if this receiver designates replicated instances. -
getSlices
Gets the name of the slice(s) held by this receiver. -
setInto
Sets this receiver as the given StateManager's internal instance-level data. If the given StateManager had existing instance-level data that is not a SliceInfo then raise an exception.
-