@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
SQLException
public EntityVO get(String key, String tableName) throws SQLException
SQLException
public List<EntityVO> list(String key) throws SQLException
SQLException
public List<EntityVO> list() throws SQLException
SQLException
public void dropTable(String datasourceName, String tableName) throws SQLException, IOException
datasourceName
- tableName
- SQLException
IOException
public void dropTable(String tableName) throws SQLException, IOException
tableName
- SQLException
IOException
public boolean exist(String tableName) throws SQLException
SQLException
public boolean exist(String tableName, String fieldName) throws SQLException
SQLException
Copyright © 2025. All rights reserved.