Package org.jtester.module.database.util

Examples of org.jtester.module.database.util.DataSourceType


   * @param password
   * @return
   */
  public static DBEnvironment getDBEnvironment(String type, String driver, String url, String username,
      String password) {
    DataSourceType dataSourceType = DataSourceType.databaseType(type);
    String dataSourceFrom = "customized-" + UUID.randomUUID().toString();
    DBEnvironment enviroment = newInstance(dataSourceType, CUSTOMIZED_DATASOURCE_NAME, dataSourceFrom);
    environments.put(DEFAULT_DATASOURCE_NAME + "=" + dataSourceFrom, enviroment);

    if (StringHelper.isBlankOrNull(driver)) {
View Full Code Here


          && DEFAULT_DATASOURCE_FROM.equalsIgnoreCase(dataSourceFrom) == false) {
        props = ResourceHelper.loadPropertiesFrom(dataSourceFrom);
      }
      String typeProperty = ConfigurationHelper.getString(props,
          getMergeKey(dataSourceName, PROPKEY_DATABASE_TYPE));
      DataSourceType dataSourceType = DataSourceType.databaseType(typeProperty);

      enviroment = newInstance(dataSourceType, dataSourceName, dataSourceFrom);

      environments.put(dataSourceName + "=" + dataSourceFrom, enviroment);
View Full Code Here

TOP

Related Classes of org.jtester.module.database.util.DataSourceType

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.