添加重置表信息服务

This commit is contained in:
makejava 2021-08-16 11:03:20 +08:00
parent 5859fc256f
commit a604b259fb
2 changed files with 17 additions and 0 deletions

View File

@ -37,4 +37,11 @@ public interface TableInfoSettingsService extends PersistentStateComponent<Table
* @param tableInfo 表信息
*/
void saveTableInfo(TableInfo tableInfo);
/**
* 重置表信息
*
* @param dbTable 数据库表
*/
void resetTableInfo(DbTable dbTable);
}

View File

@ -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);
}
}