@Component public class TableService extends Object
| 构造器和说明 | 
|---|
| TableService() | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| void | create(EntityVO entityVO)保存更新表结构 | 
| void | dropTable(String tableName)删除表结构 | 
| void | dropTable(String datasourceName,
         String tableName)删除表结构 | 
| boolean | exist(String tableName) | 
| boolean | exist(String tableName,
     String fieldName) | 
| EntityVO | get(String tableName) | 
| EntityVO | get(String key,
   String tableName) | 
| static TableService | getInstance() | 
| List<EntityVO> | list()获取所有表结构 | 
| List<EntityVO> | list(String key)获取所有表结构 | 
public static TableService getInstance()
public EntityVO get(String tableName) throws SQLException
SQLExceptionpublic EntityVO get(String key, String tableName) throws SQLException
SQLExceptionpublic List<EntityVO> list(String key) throws SQLException
SQLExceptionpublic List<EntityVO> list() throws SQLException
SQLExceptionpublic void dropTable(String datasourceName, String tableName) throws SQLException, IOException
datasourceName - tableName - SQLExceptionIOExceptionpublic void dropTable(String tableName) throws SQLException, IOException
tableName - SQLExceptionIOExceptionpublic boolean exist(String tableName) throws SQLException
SQLExceptionpublic boolean exist(String tableName, String fieldName) throws SQLException
SQLExceptionCopyright © 2025. All rights reserved.