cc.iliz.mybatis.shading.strategy.TableStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-sharding Show documentation
Show all versions of mybatis-sharding Show documentation
A sharding based on mybatis
package cc.iliz.mybatis.shading.strategy;
import cc.iliz.mybatis.shading.sqltable.SqlTableParser;
public interface TableStrategy {
/**
* 获取分表策略
* @param parser sql parser
* @param tableName orginal table name
* @param param sql param
* @return converted table name
*/
String getShadeTableName(SqlTableParser parser,String tableName,Object param);
}