Package org.apache.openjpa.slice.jdbc

Examples of org.apache.openjpa.slice.jdbc.DistributedJDBCConfigurationImpl


   */
    @Override
    public boolean afterSpecificationSet(Configuration c) {
        if (!(c instanceof DistributedJDBCConfigurationImpl))
            return false;
        DistributedJDBCConfigurationImpl conf =
          (DistributedJDBCConfigurationImpl)c;
        boolean modified = false;
        Log log = conf.getConfigurationLog();
        if (conf.getDistributionPolicyInstance() == null) {
          forceSet(conf.distributionPolicyPlugin,"random", log);
          modified = true;
        }
        if (conf.getReplicationPolicyInstance() == null) {
          forceSet(conf.replicationPolicyPlugin, "all", log);
          modified = true;
        }
        return modified;
    }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.slice.jdbc.DistributedJDBCConfigurationImpl

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.