package com.customer.service; import com.customer.pojo.TableInfo; import com.customer.vo.TableInfoVO; import org.apache.ibatis.annotations.Param; import java.sql.SQLException; import java.util.List; import java.util.Map; public interface ITableInfoService { //---------------------------------mysql------------------------------------------ /** * 创建mysql数据库和表 */ void createMysqlDataBase(Map map); /** * 查询mysql数据库是否存在 */ int mysqlDataBaseExist(String dataBaseName); /** * 查询数据库表是否存在 */ int mysqlTableExist(String dataBaseName,String tableName); /** * 查询数据库中的表信息 */ List tableInfoList(); /** * 查询表中有没有数据 */ int selectDataCount(String tableName); /** * 删除表 */ void dropMysqlTable(String tableName); /** * 获取表字段信息 */ List mysqlTableFieldInfo(String dataBaseName, String tableName); /** * 修改mysql数据表 */ void updateMysqlTable(Map map); //---------------------------------sqlServer------------------------------------------ /** * 创建salServer数据库和表 */ void createSqlServerDataBase(Map map); /** * 查询数据库表是否存在 */ int sqlServerTableExist(String dataBaseName,String tableName); // /** // * 获取当前库中所有表信息 // */ // List sqlServerTableInfoList(); /** * 查询表中是否有数据 */ int selectSqlServerDataCount(String tableName); /** * 删除当前库中表 */ void dropSqlserverTable(String tableName); /** * 修改sqlserver数据表 */ void updateSqlserverTable(Map map); // /** // * 根据数据库名称获取当前数据源所有表info // */ // List> getDataBasesInfo(@Param("DBname") String DBname); //---------------------------------DM------------------------------------------ /** * 查询数据库表是否存在 */ int dmTableExist(String dataBaseName,String tableName); /** * 创建dm数据库和表 */ void createDmDataBase(Map map); //---------------------------------oracle------------------------------------------ /** * 判断当前用户下表是否存在 */ int oracleTableExist(String tableName); /** * 创建oracle表 */ void createOracleTable(Map map); }