Package railo.runtime.db.driver.state

Examples of railo.runtime.db.driver.state.StateFactory


  }

  public static Connection getConnection(String connStr, String user, String pass) throws SQLException {
    try {
      //return DriverManager.getConnection(dsn, user, pass);
      return new ConnectionProxy(new StateFactory(), DriverManager.getConnection(connStr, user, pass));
        }
        catch (SQLException e) {
   
          if(connStr.indexOf('?')!=-1) {
                connStr=connStr+"&user="+user+"&password="+pass;
          //return DriverManager.getConnection(connStr);
                return new ConnectionProxy(new StateFactory(), DriverManager.getConnection(connStr));
            }
          throw e;
        }
  }
View Full Code Here

TOP

Related Classes of railo.runtime.db.driver.state.StateFactory

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.