All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.antelopeframework.mybatis.shard.strategy.ShardStrategy Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package com.github.antelopeframework.mybatis.shard.strategy;

import com.github.antelopeframework.mybatis.shard.ShardTable;
import com.github.antelopeframework.mybatis.shard.annotation.ShardOn;

/**
 * 分表策略.
 * 
 * @author yangzhi.yzh
 *
 */
public interface ShardStrategy {
	
	/**
	 * 获取真实的数据库表名.
	 * 
	 * @param sqlMapperId MyBatis Mapper 标识.
	 * @param shardTable {@link ShardTable}
	 * @param shardOn {@link ShardOn}
	 * @param shardValue 分区参考值
	 * @return
	 */
	String getTargetTableName(String sqlMapperId, ShardTable shardTable, ShardOn shardOn, Object shardValue);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy