Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.ConnectionEntry


      if (url == null || url.equals("")) {
        url = "jdbc:postgresql://" + host + ":" + port + "/" + dbname;
      }

      ConnectionEntry jConn;
     
      jConn = env.getConnection(driver, url, userName, password, ! isNewLink);

      return jConn;
    } catch (SQLException e) {
View Full Code Here


  public boolean close(Env env)
  {
    // php/1418
    // cleanup();

    ConnectionEntry conn = _conn;
    _conn = null;

    if (conn != null)
      conn.phpClose();

    return true;
  }
View Full Code Here

      // must catch throwable to force the conn close to work
     
      log.log(Level.FINER, e.toString(), e);
    }

    ConnectionEntry conn = _conn;
    _conn = null;

    if (conn != null) {
      conn.phpClose();
    }
  }
View Full Code Here

    if (! _isUsed && _isCatalogOptimEnabled) {
      // The database is only connected, but not used, reopen with
      // a real catalog

      ConnectionEntry conn = _conn;
      _conn = null;

      if (conn != null)
        conn.phpClose();

      connectInternal(_env, _host, _userName, _password, name,
                      _port, _socket, _flags, _driver, _url, false);
    }
    else {
View Full Code Here

                     (flags & MysqliModule.MYSQL_CLIENT_INTERACTIVE) != 0,
                     (flags & MysqliModule.MYSQL_CLIENT_COMPRESS) != 0,
                     (flags & MysqliModule.MYSQL_CLIENT_SSL) != 0);
      }

      ConnectionEntry jConn
        = env.getConnection(driver, url, userName, password, ! isNewLink);

      checkDriverVersion(env, jConn);

      Connection conn = jConn.getConnection();

      if (! (conn instanceof QuercusConnection)) {
        Statement stmt = conn.createStatement();

        // php/1465
View Full Code Here

        } else {
          url = "jdbc:oracle:thin:@" + host + ":" + port + ":" + dbname;
        }
      }

      ConnectionEntry jConn;
     
      jConn = env.getConnection(driver, url, userName, password, ! isNewLink);
     
      return jConn;
View Full Code Here

      if (url == null || url.equals("")) {
        url = "jdbc:postgresql://" + host + ":" + port + "/" + dbname;
      }

      ConnectionEntry jConn;
     
      jConn = env.getConnection(driver, url, userName, password, ! isNewLink);

      return jConn;
    } catch (SQLException e) {
View Full Code Here

  public boolean close(Env env)
  {
    // php/1418
    // cleanup();

    ConnectionEntry conn = _conn;
    _conn = null;

    if (conn != null)
      conn.phpClose();

    return true;
  }
View Full Code Here

      // must catch throwable to force the conn close to work
     
      log.log(Level.FINER, e.toString(), e);
    }

    ConnectionEntry conn = _conn;
    _conn = null;

    if (conn != null) {
      conn.phpClose();
    }
  }
View Full Code Here

    if (! _isUsed && _isCatalogOptimEnabled) {
      // The database is only connected, but not used, reopen with
      // a real catalog

      ConnectionEntry conn = _conn;
      _conn = null;

      if (conn != null)
        conn.phpClose();

      connectInternal(_env, _host, _userName, _password, name,
          _port, _socket, _flags, _driver, _url, false);
    }
    else {
View Full Code Here

TOP

Related Classes of com.caucho.quercus.env.ConnectionEntry

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.