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

cn.org.atool.fluent.mybatis.functions.TableDynamic Maven / Gradle / Ivy

There is a newer version: 1.9.9
Show newest version
package cn.org.atool.fluent.mybatis.functions;

import cn.org.atool.fluent.mybatis.base.intf.IDataByColumn;

/**
 * 动态处理表名称, 可以用于自定义分表, 或内部子查询等场景
 *
 * @author darui.wu
 */
public interface TableDynamic {
    /**
     * 获取表名称
     *
     * @param origName 传入的原始表名称
     * @param data     insert时Entity, 或IQuery/IUpdate相等条件
     * @return 动态处理过的表名称
     */
    String get(String origName, IDataByColumn data);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy