package com.artfess.table.meta; import com.artfess.table.model.Table; import java.util.List; import java.util.Map; /** * 表元数据 * * @author heyifan * @company 阿特菲斯信息技术有限公司 * @email heyf@jee-soft.cn * @date 2018年4月25日 */ public interface ITableMeta { /** * 根据表名,取得表模型。此处对表名进行非模糊匹配。 * * @param tableName 表名 * @return 表模型 */ Table getTableByName(String tableName); /** * 根据表名,使用模糊匹配,查询系统中的表 *
     * 返回Map格式结果,key=表名,value=表注解
     * 
* * @param tableName 表名 * @return 表名、表注解 */ Map getTablesByName(String tableName); /** * 根据表名获取索引 *
     * 返回Map格式结果,key=列名,value=值
     * 
* * @param tableName 表名 * @return 索引详细信息 */ List> getTablesByNameIndex(String tableName); /** * 根据表名,使用模糊匹配,查询系统中的表 * * @param tableName 表名 * @return 表集合 * @throws Exception */ List getTableModelByName(String tableName) throws Exception; /** * 根据表名查询系统中的表 *
     * 返回的Map中:key=表名,value=表注解
     * 
* * @param names 表名列表 * @return 表名、表注解 */ Map getTablesByName(List names); /** * 查询所有的表的SQL语句 * * @return SQL语句 */ String getAllTableSql(); }