init(driver, dbURL, prop);
init(driver, dbURL, prop);
/** * Create an XConnection object with user ID and password. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * @param user user ID. * @param password connection password. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL, String user, String password ) { try { Properties prop = new Properties(); prop.put("user", user); prop.put("password", password); init(driver, dbURL, prop); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * Create an XConnection object with just a driver and database URL. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL ) { try { init(driver, dbURL, new Properties()); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
init(driver, dbURL, prop);
init(driver, dbURL, prop);
init(driver, dbURL, prop);
init(driver, dbURL, prop);
init(driver, dbURL, prop);
init(driver, dbURL, prop);
/** * Create an XConnection object with user ID and password. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * @param user user ID. * @param password connection password. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL, String user, String password ) { try { Properties prop = new Properties(); prop.put("user", user); prop.put("password", password); init(driver, dbURL, prop); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * Create an XConnection object with user ID and password. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * @param user user ID. * @param password connection password. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL, String user, String password ) { try { Properties prop = new Properties(); prop.put("user", user); prop.put("password", password); init(driver, dbURL, prop); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * Create an XConnection object with user ID and password. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * @param user user ID. * @param password connection password. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL, String user, String password ) { try { Properties prop = new Properties(); prop.put("user", user); prop.put("password", password); init(driver, dbURL, prop); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * Create an XConnection object with just a driver and database URL. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL ) { try { init(driver, dbURL, new Properties()); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * Create an XConnection object with just a driver and database URL. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL ) { try { init(driver, dbURL, new Properties()); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * Create an XConnection object with just a driver and database URL. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL ) { try { init(driver, dbURL, new Properties()); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }