Package org.dayatang.configuration.impl

Examples of org.dayatang.configuration.impl.SimpleConfiguration


    dbInfo.setUsername("root");
    return dbInfo;
  }

  private Configuration createDbMappings() {
    Configuration result = new SimpleConfiguration();
    result.setString("abc", "ABC123");
    result.setString("xyz", "XYZ123");
    return result;
  }
View Full Code Here


    instance.setTenantDbMapping(tenantDbMappings);
   
  }

  private Configuration createDsConfiguration() {
    Configuration result = new SimpleConfiguration();
    result.setString(Constants.JDBC_HOST, "localhost");
    result.setString(Constants.JDBC_PORT, "3306");
    result.setString(Constants.JDBC_DB_NAME, "test_db");
    result.setString(Constants.JDBC_INSTANCE, "XE");
    result.setString(Constants.JDBC_EXTRA_URL_STRING, "useUnicode=true&characterEncoding=utf-8");
    result.setString(Constants.JDBC_USERNAME, "root");
    result.setString(Constants.JDBC_PASSWORD, "1234");
    result.setInt("initialSize", 100);
    return result;
  }
View Full Code Here

    result.setInt("initialSize", 100);
    return result;
  }

  private Configuration createDbMappings() {
    Configuration result = new SimpleConfiguration();
    result.setString("abc", "DB_ABC");
    result.setString("xyz", "DB_XYZ");
    return result;
  }
View Full Code Here

    instance.setTenantDbMapping(tenantDbMappings);
   
  }

  private Configuration createDsConfiguration() {
    Configuration result = new SimpleConfiguration();
    result.setString(Constants.JDBC_HOST, "localhost");
    result.setString(Constants.JDBC_PORT, "3306");
    result.setString(Constants.JDBC_DB_NAME, "test_db");
    result.setString(Constants.JDBC_INSTANCE, "XE");
    result.setString(Constants.JDBC_EXTRA_URL_STRING, "useUnicode=true&characterEncoding=utf-8");
    result.setString(Constants.JDBC_USERNAME, "root");
    result.setString(Constants.JDBC_PASSWORD, "1234");
    result.setInt("minPoolSize", 5);
    result.setInt("maxPoolSize", 30);
    result.setInt("initialPoolSize", 10);
    return result;
  }
View Full Code Here

    result.setInt("initialPoolSize", 10);
    return result;
  }

  private Configuration createDbMappings() {
    Configuration result = new SimpleConfiguration();
    result.setString("abc", "DB_ABC");
    result.setString("xyz", "DB_XYZ");
    return result;
  }
View Full Code Here

    instance.setTenantDbMapping(tenantDbMappings);
   
  }

  private Configuration createDsConfiguration() {
    Configuration result = new SimpleConfiguration();
    result.setString(Constants.JDBC_HOST, "localhost");
    result.setString(Constants.JDBC_PORT, "3306");
    result.setString(Constants.JDBC_DB_NAME, "test_db");
    result.setString(Constants.JDBC_INSTANCE, "XE");
    result.setString(Constants.JDBC_EXTRA_URL_STRING, "useUnicode=true&characterEncoding=utf-8");
    result.setString(Constants.JDBC_USERNAME, "root");
    result.setString(Constants.JDBC_PASSWORD, "1234");
    result.setInt("maximumConnectionCount", 15);
    return result;
  }
View Full Code Here

    result.setInt("maximumConnectionCount", 15);
    return result;
  }

  private Configuration createDbMappings() {
    Configuration result = new SimpleConfiguration();
    result.setString("abc", "DB_ABC");
    result.setString("xyz", "DB_XYZ");
    return result;
  }
View Full Code Here

TOP

Related Classes of org.dayatang.configuration.impl.SimpleConfiguration

Copyright © 2018 www.massapicom. 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.