Package org.apache.openjpa.slice

Examples of org.apache.openjpa.slice.DistributionPolicy$Default


        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;
    }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.slice.DistributionPolicy$Default

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.