接口 IGenTableService
- 所有已知实现类:
GenTableServiceImpl
public interface IGenTableService
业务 服务层
- 作者:
- Lion Li
-
方法概要
修饰符和类型方法说明voiddeleteGenTableByIds(Long[] tableIds) 删除业务信息byte[]downloadCode(Long tableId) 生成代码(下载方式)byte[]downloadCode(String[] tableIds) 批量生成代码(下载方式)voidgeneratorCode(Long tableId) 生成代码(自定义路径)voidimportGenTable(List<GenTable> tableList, String dataName) 导入表结构previewCode(Long tableId) 预览代码selectDbTableColumnsByName(String tableName, String dataName, String dataSourceName) 根据表名称查询列信息selectDbTableListByNames(String[] tableNames, String dataName, String dataSourceName) 查询据库列表查询所有表信息查询业务信息selectGenTableColumnListByTableId(Long tableId) 查询业务字段列表com.alibaba.cola.dto.PageResponse<GenTable> 查询据库列表com.alibaba.cola.dto.PageResponse<GenTable> 查询业务列表void同步数据库voidupdateGenTable(GenTable genTable) 修改业务voidvalidateEdit(GenTable genTable) 修改保存参数校验
-
方法详细资料
-
selectGenTableColumnListByTableId
查询业务字段列表- 参数:
tableId- 业务字段编号- 返回:
- 业务字段集合
-
selectPageGenTableList
查询业务列表- 参数:
param- 业务信息- 返回:
- 业务集合
-
selectPageDbTableList
查询据库列表- 参数:
param- 业务信息- 返回:
- 数据库表集合
-
selectDbTableListByNames
List<GenTable> selectDbTableListByNames(String[] tableNames, String dataName, String dataSourceName) 查询据库列表- 参数:
tableNames- 表名称组dataName- 数据源名称- 返回:
- 数据库表集合
-
selectGenTableAll
查询所有表信息- 返回:
- 表信息集合
-
selectGenTableById
查询业务信息- 参数:
id- 业务ID- 返回:
- 业务信息
-
updateGenTable
修改业务- 参数:
genTable- 业务信息
-
deleteGenTableByIds
删除业务信息- 参数:
tableIds- 需要删除的表数据ID
-
importGenTable
导入表结构- 参数:
tableList- 导入表列表dataName- 数据源名称
-
selectDbTableColumnsByName
List<GenTableColumn> selectDbTableColumnsByName(String tableName, String dataName, String dataSourceName) 根据表名称查询列信息- 参数:
tableName- 表名称dataName- 数据源名称- 返回:
- 列信息
-
previewCode
预览代码- 参数:
tableId- 表编号- 返回:
- 预览数据列表
-
downloadCode
生成代码(下载方式)- 参数:
tableId- 表名称- 返回:
- 数据
-
generatorCode
生成代码(自定义路径)- 参数:
tableId- 表名称
-
synchDb
同步数据库- 参数:
tableId- 表名称
-
downloadCode
批量生成代码(下载方式)- 参数:
tableIds- 表ID数组- 返回:
- 数据
-
validateEdit
修改保存参数校验- 参数:
genTable- 业务信息
-