Examples of ShardedConfiguration


Examples of org.hibernate.shards.ShardedConfiguration

    return buildMultiNodeSessionFactory(shardConfigs);
  }

  private ShardedSessionFactory buildMultiNodeSessionFactory(List<ShardConfiguration> shardConfigs) {
    Configuration prototypeConfig = buildPrototypeConfiguration();
    ShardedConfiguration shardedConfig = new ShardedConfiguration(prototypeConfig, shardConfigs, buildShardStrategyFactory());
    return shardedConfig.buildShardedSessionFactory();
  }
View Full Code Here

Examples of org.hibernate.shards.ShardedConfiguration

        log.info("Adding node: " + item.getNode().getUri());
        return item.toShardConfig();
      }
    },nodeConfigs);
    ShardedSessionFactory shardedFactory =
      new ShardedConfiguration(
        buildPrototypeConfiguration(Atom.getFirstOrThrow(nodeConfigs)),
        Lists.newList(shardConfigs),
        buildShardStrategyFactory()).buildShardedSessionFactory();

    logIterable("Adding class:", persistableClasses);
View Full Code Here

Examples of org.makersoft.shards.ShardedConfiguration

* @see SqlSessionFactoryBuilder
*/
public class ShardedSqlSessionFactoryBuilder {
 
  public ShardedSqlSessionFactory build(List<ShardConfiguration> shardConfigs, ShardStrategyFactory shardStrategyFactory) {
    ShardedConfiguration configuration = new ShardedConfiguration(shardConfigs, shardStrategyFactory, null);
    return configuration.buildShardedSessionFactory();
  }
View Full Code Here

Examples of org.makersoft.shards.ShardedConfiguration

    ShardedConfiguration configuration = new ShardedConfiguration(shardConfigs, shardStrategyFactory, null);
    return configuration.buildShardedSessionFactory();
  }

  public ShardedSqlSessionFactory build(List<ShardConfiguration> shardConfigs, ShardStrategyFactory shardStrategyFactory, IdGenerator idGenerator) {
    ShardedConfiguration configuration = new ShardedConfiguration(shardConfigs, shardStrategyFactory, idGenerator);
    return configuration.buildShardedSessionFactory();
  }
View Full Code Here

Examples of org.makersoft.shards.ShardedConfiguration

        shardConfigs.add(shardConfiguration);
      }
     
    }
   
    ShardedConfiguration configuration = new ShardedConfiguration(shardConfigs, this.shardStrategyFactory, idGenerator);
    shardedSqlSessionFactory = configuration.buildShardedSessionFactory();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.