本文整理了Java中org.h2.server.web.WebServer.updateSetting()
方法的一些代码示例,展示了WebServer.updateSetting()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServer.updateSetting()
方法的具体详情如下:
包路径:org.h2.server.web.WebServer
类名称:WebServer
方法名:updateSetting
[英]Update a connection information setting.
[中]更新连接信息设置。
代码示例来源:origin: com.h2database/h2
/**
* Save the current connection settings to the properties file.
*
* @return the file to open afterwards
*/
private String settingSave() {
ConnectionInfo info = new ConnectionInfo();
info.name = attributes.getProperty("name", "");
info.driver = attributes.getProperty("driver", "");
info.url = attributes.getProperty("url", "");
info.user = attributes.getProperty("user", "");
server.updateSetting(info);
attributes.put("setting", info.name);
server.saveProperties(null);
return "index.do";
}
代码示例来源:origin: com.h2database/h2
ConnectionInfo info = new ConnectionInfo(gen);
settings.add(info);
updateSetting(info);
updateSetting(info);
代码示例来源:origin: com.h2database/com.springsource.org.h2
private String settingSave() {
ConnectionInfo info = new ConnectionInfo();
info.name = attributes.getProperty("name", "");
info.driver = attributes.getProperty("driver", "");
info.url = attributes.getProperty("url", "");
info.user = attributes.getProperty("user", "");
server.updateSetting(info);
attributes.put("setting", info.name);
server.saveSettings();
return "index.do";
}
代码示例来源:origin: org.wowtools/h2
/**
* Save the current connection settings to the properties file.
*
* @return the file to open afterwards
*/
private String settingSave() {
ConnectionInfo info = new ConnectionInfo();
info.name = attributes.getProperty("name", "");
info.driver = attributes.getProperty("driver", "");
info.url = attributes.getProperty("url", "");
info.user = attributes.getProperty("user", "");
server.updateSetting(info);
attributes.put("setting", info.name);
server.saveProperties(null);
return "index.do";
}
代码示例来源:origin: com.eventsourcing/h2
/**
* Save the current connection settings to the properties file.
*
* @return the file to open afterwards
*/
private String settingSave() {
ConnectionInfo info = new ConnectionInfo();
info.name = attributes.getProperty("name", "");
info.driver = attributes.getProperty("driver", "");
info.url = attributes.getProperty("url", "");
info.user = attributes.getProperty("user", "");
server.updateSetting(info);
attributes.put("setting", info.name);
server.saveProperties(null);
return "index.do";
}
代码示例来源:origin: com.h2database/com.springsource.org.h2
synchronized ArrayList getSettings() {
ArrayList settings = new ArrayList();
if (connInfoMap.size() == 0) {
Properties prop = loadProperties();
if (prop.size() == 0) {
for (int i = 0; i < GENERIC.length; i++) {
ConnectionInfo info = new ConnectionInfo(GENERIC[i]);
settings.add(info);
updateSetting(info);
}
} else {
for (int i = 0;; i++) {
String data = prop.getProperty(String.valueOf(i));
if (data == null) {
break;
}
ConnectionInfo info = new ConnectionInfo(data);
settings.add(info);
updateSetting(info);
}
}
} else {
settings.addAll(connInfoMap.values());
}
sortConnectionInfo(settings);
return settings;
}
代码示例来源:origin: com.eventsourcing/h2
ConnectionInfo info = new ConnectionInfo(gen);
settings.add(info);
updateSetting(info);
updateSetting(info);
代码示例来源:origin: org.wowtools/h2
ConnectionInfo info = new ConnectionInfo(gen);
settings.add(info);
updateSetting(info);
updateSetting(info);
内容来源于网络,如有侵权,请联系作者删除!