return sm.getImplData() != null;
}
private String assignSlice(OpenJPAStateManager sm) {
Object pc = sm.getPersistenceCapable();
DistributionPolicy policy = _conf.getDistributionPolicyInstance();
List<String> sliceNames = _conf.getActiveSliceNames();
String slice =policy.distribute(pc, sliceNames, getContext());
if (!sliceNames.contains(slice)) {
throw new UserException(_loc.get("bad-policy-slice", new Object[] {
policy.getClass().getName(), slice, pc, sliceNames }));
}
sm.setImplData(slice, true);
return slice;
}