mirror of https://gitee.com/makejava/EasyCode.git
添加重置表信息服务
This commit is contained in:
parent
5859fc256f
commit
a604b259fb
|
@ -37,4 +37,11 @@ public interface TableInfoSettingsService extends PersistentStateComponent<Table
|
|||
* @param tableInfo 表信息
|
||||
*/
|
||||
void saveTableInfo(TableInfo tableInfo);
|
||||
|
||||
/**
|
||||
* 重置表信息
|
||||
*
|
||||
* @param dbTable 数据库表
|
||||
*/
|
||||
void resetTableInfo(DbTable dbTable);
|
||||
}
|
||||
|
|
|
@ -52,4 +52,14 @@ public class TableInfoSettingsServiceImpl implements TableInfoSettingsService {
|
|||
public void saveTableInfo(TableInfo tableInfo) {
|
||||
Objects.requireNonNull(getState()).saveTableInfo(tableInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置表信息
|
||||
*
|
||||
* @param dbTable 数据库表
|
||||
*/
|
||||
@Override
|
||||
public void resetTableInfo(DbTable dbTable) {
|
||||
Objects.requireNonNull(getState()).resetTableInfo(dbTable);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue