Package org.makersoft.shards.strategy.resolution

Examples of org.makersoft.shards.strategy.resolution.ShardResolutionStrategyDataImpl


      };
      Serializable id = this.extractId(parameter);

      Assert.notNull(id, "When get entity by Id, Id can not be null");

      return this.<T> applyGetOperation(shardOp, new ShardResolutionStrategyDataImpl(
          statement, parameter, id));
    }

    // 从Resolution策略获取
    List<Shard> potentialShards = determineShardsViaResolutionStrategyWithReadOperation(
View Full Code Here


  /**
   * 通过statement和parameter确定分区 如果parameter中可以提取出主键ID,首先通过ID去确定唯一分区
   */
  private List<Shard> determineShardsObjectsViaResolutionStrategy(String statement,
      Object parameter, Serializable id) {
    ShardResolutionStrategyData srsd = new ShardResolutionStrategyDataImpl(statement,
        parameter, id);
    List<ShardId> shardIds = this.selectShardIdsFromShardResolutionStrategyData(srsd);
    return shardIdListToShardList(shardIds);
  }
View Full Code Here

TOP

Related Classes of org.makersoft.shards.strategy.resolution.ShardResolutionStrategyDataImpl

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.