org.h2.server.web.WebServer.updateSetting()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.h2.server.web.WebServer.updateSetting()方法的一些代码示例,展示了WebServer.updateSetting()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServer.updateSetting()方法的具体详情如下:
包路径:org.h2.server.web.WebServer
类名称:WebServer
方法名:updateSetting

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

相关文章