Methods Summary |
---|
public java.sql.Connection | getConnection()Returns a Connection using the DriverManager and all
set properties.
Connection conn = null;
if (userName != null) {
conn = DriverManager.getConnection(jdbcURL, userName, password);
}
else {
conn = DriverManager.getConnection(jdbcURL);
}
return conn;
|
public java.sql.Connection | getConnection(java.lang.String username, java.lang.String password)Always throws a SQLException. Username and password are set
in the constructor and can not be changed.
throw new SQLException(Resources.getMessage("NOT_SUPPORTED"));
|
public java.io.PrintWriter | getLogWriter()Always throws a SQLException. Not supported.
throw new SQLException(Resources.getMessage("NOT_SUPPORTED"));
|
public int | getLoginTimeout()Always throws a SQLException. Not supported.
throw new SQLException(Resources.getMessage("NOT_SUPPORTED"));
|
public void | setDriverClassName(java.lang.String driverClassName)
this.driverClassName = driverClassName;
Class.forName(driverClassName, true,
Thread.currentThread().getContextClassLoader()).newInstance();
|
public void | setJdbcURL(java.lang.String jdbcURL)
this.jdbcURL = jdbcURL;
|
public synchronized void | setLogWriter(java.io.PrintWriter out)Always throws a SQLException. Not supported.
throw new SQLException(Resources.getMessage("NOT_SUPPORTED"));
|
public void | setLoginTimeout(int seconds)Always throws a SQLException. Not supported.
throw new SQLException(Resources.getMessage("NOT_SUPPORTED"));
|
public void | setPassword(java.lang.String password)
this.password = password;
|
public void | setUserName(java.lang.String userName)
this.userName = userName;
|