Package org.dayatang.configuration

Examples of org.dayatang.configuration.Configuration


    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


  private String tenant = "abc";
 
  @Before
  public void setUp() throws Exception {
    instance = new CommonsDbcpDataSourceCreator();
    Configuration dsConfiguration = createDsConfiguration();
    Configuration tenantDbMappings = createDbMappings();
    instance.setDsConfiguration(dsConfiguration);
    instance.setTenantDbMapping(tenantDbMappings);
   
  }
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

  private String tenant = "abc";
 
  @Before
  public void setUp() throws Exception {
    instance = new C3P0DataSourceCreator();
    Configuration dsConfiguration = createDsConfiguration();
    Configuration tenantDbMappings = createDbMappings();
    instance.setDsConfiguration(dsConfiguration);
    instance.setTenantDbMapping(tenantDbMappings);
   
  }
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

  private String tenant = "abc";
 
  @Before
  public void setUp() throws Exception {
    instance = new ProxoolDataSourceCreator();
    Configuration dsConfiguration = createDsConfiguration();
    Configuration tenantDbMappings = createDbMappings();
    instance.setDsConfiguration(dsConfiguration);
    instance.setTenantDbMapping(tenantDbMappings);
   
  }
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.Configuration

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.