Package railo.runtime.db

Examples of railo.runtime.db.DataSourceImpl


     
      // then for {type:... , host:... , ...}
      String type=Caster.toString(data.get(KeyConstants._type));
      DataSourceDefintion dbt = DBUtil.getDataSourceDefintionForType(type, null);
      if(dbt==null) throw new ApplicationException("no datasource type ["+type+"] found");
      DataSourceImpl ds = new DataSourceImpl(
          name,
          dbt.className,
          Caster.toString(data.get(KeyConstants._host)),
          dbt.connectionString,
          Caster.toString(data.get(DATABASE)),
View Full Code Here


      String dbdriver = getString("dbdriver", "");
       
        //config.getDatasourceConnectionPool().remove(name);
        DataSource ds=null;
    try {
      ds = new DataSourceImpl(name,classname,host,dsn,database,port,username,password,connLimit,connTimeout,metaCacheTimeout,blob,clob,allow,custom,false,validate,storage,null, dbdriver);
    } catch (ClassException e) {
      throw new DatabaseException(
          "can't find class ["+classname+"] for jdbc driver, check if driver (jar file) is inside lib folder ("+e.getMessage()+")",null,null,null);
    }
       
View Full Code Here

  private static void setDatasource(ConfigImpl config, Map<String, DataSource> datasources, String datasourceName, String className, String server, String databasename,
      int port, String dsn, String user, String pass, int connectionLimit, int connectionTimeout, long metaCacheTimeout, boolean blob, boolean clob, int allow,
      boolean validate, boolean storage, String timezone, Struct custom, String dbdriver) throws ClassException {

    datasources.put( datasourceName.toLowerCase(),
        new DataSourceImpl(datasourceName, className, server, dsn, databasename, port, user, pass, connectionLimit, connectionTimeout, metaCacheTimeout, blob, clob, allow,
            custom, false, validate, storage, StringUtil.isEmpty(timezone, true) ? null : TimeZoneUtil.toTimeZone(timezone, null), dbdriver) );

  }
View Full Code Here

TOP

Related Classes of railo.runtime.db.DataSourceImpl

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.