use of net.heartsome.cat.database.ui.core.DatabaseConfiger in project translationstudio8 by heartsome.
the class NewTermDbBaseInfoPage method saveToServerConfigFile.
private void saveToServerConfigFile(SystemDBOperator dbOp) {
DatabaseConfiger cf = new DatabaseConfiger();
DatabaseModelBean bean = new DatabaseModelBean();
MetaData md = dbOp.getMetaData();
bean.metaDatatToBean(md);
// 判断当前服务器是否已经存在
String serverId = cf.isServerExist(bean, md);
if (serverId == null || serverId.equals("")) {
// 不存在
cf.addServerConfig(bean);
} else {
bean.setId(serverId);
cf.updateServerConfigById(serverId, bean);
}
}
use of net.heartsome.cat.database.ui.core.DatabaseConfiger in project translationstudio8 by heartsome.
the class NewTmDbBaseInfoPage method saveToServerConfigFile.
private void saveToServerConfigFile(SystemDBOperator dbOp) {
DatabaseConfiger cf = new DatabaseConfiger();
DatabaseModelBean bean = new DatabaseModelBean();
MetaData md = dbOp.getMetaData();
bean.metaDatatToBean(md);
// 判断当前服务器是否已经存在
String serverId = cf.isServerExist(bean, md);
if (serverId == null || serverId.equals("")) {
// 不存在
cf.addServerConfig(bean);
} else {
bean.setId(serverId);
cf.updateServerConfigById(serverId, bean);
}
}
Aggregations