Package net.bnubot.settings

Examples of net.bnubot.settings.DatabaseSettings.load()


  private static Connection conn = null;

  public static boolean validate() {
    DatabaseSettings settings = new DatabaseSettings();
    settings.load();

    // Get the Cayenne map
    DataDomain domain = Configuration.getSharedConfiguration().getDomain("BNUBotDomain");
    DataNode dataNode = domain.getNode("BNUBotDataNode");
    DataMap dataMap = domain.getMap("BNUBotMap");
View Full Code Here


  public DataSource getDataSource(String location) throws Exception {
    if(dataSource != null)
      return dataSource;

    DatabaseSettings settings = new DatabaseSettings();
    settings.load();

    // Set up the driver, in case it's not on the classpath
    try {
      DriverManager.getDriver(settings.url);
    } catch(SQLException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.