|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.slice.SliceImplHelper
public class SliceImplHelper
Utility methods to determine the target slices for a persistence capable instance by calling back to user-specified distribution policy.
Constructor Summary | |
---|---|
SliceImplHelper()
|
Method Summary | |
---|---|
static SliceInfo |
getSliceInfo(OpenJPAStateManager sm)
Gets the assigned slice information, if any, from the given StateManager. |
static SliceInfo |
getSlicesByPolicy(Object pc,
DistributedConfiguration conf,
Object ctx)
Gets the target slices by calling user-specified DistributionPolicy or ReplicationPolicy
depending on whether the given instance is replicated . |
static SliceInfo |
getSlicesByPolicy(OpenJPAStateManager sm,
DistributedConfiguration conf,
Object ctx)
Gets the target slices for the given StateManager. |
static boolean |
isReplicated(Object pc,
OpenJPAConfiguration conf)
Affirms if the given instance be replicated to multiple slices. |
static boolean |
isReplicated(OpenJPAStateManager sm)
Affirms if the given instance be replicated to multiple slices. |
static boolean |
isSliceAssigned(OpenJPAStateManager sm)
Affirms if the given StateManager has an assigned slice. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SliceImplHelper()
Method Detail |
---|
public static SliceInfo getSlicesByPolicy(Object pc, DistributedConfiguration conf, Object ctx)
DistributionPolicy
or ReplicationPolicy
depending on whether the given instance is replicated
.
public static SliceInfo getSlicesByPolicy(OpenJPAStateManager sm, DistributedConfiguration conf, Object ctx)
public static boolean isReplicated(Object pc, OpenJPAConfiguration conf)
public static boolean isReplicated(OpenJPAStateManager sm)
public static boolean isSliceAssigned(OpenJPAStateManager sm)
public static SliceInfo getSliceInfo(OpenJPAStateManager sm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |