接口 IGenTableService

所有已知实现类:
GenTableServiceImpl

public interface IGenTableService
业务 服务层
作者:
Lion Li
  • 方法详细资料

    • selectGenTableColumnListByTableId

      List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId)
      查询业务字段列表
      参数:
      tableId - 业务字段编号
      返回:
      业务字段集合
    • selectPageGenTableList

      com.alibaba.cola.dto.PageResponse<GenTable> selectPageGenTableList(GenTableParam param)
      查询业务列表
      参数:
      param - 业务信息
      返回:
      业务集合
    • selectPageDbTableList

      com.alibaba.cola.dto.PageResponse<GenTable> selectPageDbTableList(GenTableParam param)
      查询据库列表
      参数:
      param - 业务信息
      返回:
      数据库表集合
    • selectDbTableListByNames

      List<GenTable> selectDbTableListByNames(String[] tableNames, String dataName, String dataSourceName)
      查询据库列表
      参数:
      tableNames - 表名称组
      dataName - 数据源名称
      返回:
      数据库表集合
    • selectGenTableAll

      List<GenTable> selectGenTableAll()
      查询所有表信息
      返回:
      表信息集合
    • selectGenTableById

      GenTable selectGenTableById(Long id)
      查询业务信息
      参数:
      id - 业务ID
      返回:
      业务信息
    • updateGenTable

      void updateGenTable(GenTable genTable)
      修改业务
      参数:
      genTable - 业务信息
    • deleteGenTableByIds

      void deleteGenTableByIds(Long[] tableIds)
      删除业务信息
      参数:
      tableIds - 需要删除的表数据ID
    • importGenTable

      void importGenTable(List<GenTable> tableList, String dataName)
      导入表结构
      参数:
      tableList - 导入表列表
      dataName - 数据源名称
    • selectDbTableColumnsByName

      List<GenTableColumn> selectDbTableColumnsByName(String tableName, String dataName, String dataSourceName)
      根据表名称查询列信息
      参数:
      tableName - 表名称
      dataName - 数据源名称
      返回:
      列信息
    • previewCode

      Map<String,String> previewCode(Long tableId)
      预览代码
      参数:
      tableId - 表编号
      返回:
      预览数据列表
    • downloadCode

      byte[] downloadCode(Long tableId)
      生成代码(下载方式)
      参数:
      tableId - 表名称
      返回:
      数据
    • generatorCode

      void generatorCode(Long tableId)
      生成代码(自定义路径)
      参数:
      tableId - 表名称
    • synchDb

      void synchDb(Long tableId)
      同步数据库
      参数:
      tableId - 表名称
    • downloadCode

      byte[] downloadCode(String[] tableIds)
      批量生成代码(下载方式)
      参数:
      tableIds - 表ID数组
      返回:
      数据
    • validateEdit

      void validateEdit(GenTable genTable)
      修改保存参数校验
      参数:
      genTable - 业务信息