Method Summary |
|
synchronized void | clearConnection() |
Connection | createDriverConnection(String username, String password) Build a connection to the database using the appropriate database driver. |
void | error(Object message, Throwable error) Logs error messages and supplementary exception. |
void | error(Object message) Logs an error message. |
public JdbcCommandLogger | getCommandLogger() Gets the current command logger for logging activity from this service. |
public Connection | getConnection() |
public Connection | getConnection(String username, String password) |
public synchronized String | getCredentials() Get the user credentials/password for this connection. |
public synchronized String | getDescription() Gets the user-defined description for this service. |
public Driver | getDriver() |
public synchronized String | getDriverClass() Get the fully qualified driver class name for this connection. |
public synchronized Properties | getEnvironment() Get the connection environment for this connection. |
public PrintWriter | getLogWriter() |
public synchronized int | getLoginTimeout() |
public synchronized String | getName() Get the user-defined name for this service.
This name should identify this service to the end-user. |
public synchronized String | getPrincipal() Gets the current user-name of this connection. |
public synchronized ConnectionProfile | getProfile() Gets the connection profile used by this connection. |
public ServiceType | getType() Gets the type of service this instance represents. |
public synchronized String | getUrl() Get the JDBC URL or connect string for this connection. |
void | info(Object message, Throwable error) Logs informational error and supplementary message. |
void | info(Object message) Logs an informational message. |
public void | setCommandLogger(JdbcCommandLogger commandLogger) |
public synchronized void | setCredentials(String credentials) Sets the credentials/password for the user of this connection. |
public synchronized void | setDescription(String description) Sets the description for this service. |
public synchronized void | setDriverClass(String driverClass) Sets the driver class for creating JDBC connections. |
public synchronized void | setEnvironment(Properties environment) |
public void | setLogWriter(PrintWriter writer) |
public synchronized void | setLoginTimeout(int loginTimeout) |
public synchronized void | setName(String name) Sets the conical name for this service. |
public synchronized void | setPrincipal(String principal) Set the user-name to authenticate this connection with. |
public synchronized void | setProfile(ConnectionProfile profile) Sets the profile for this service. |
public void | setType(ServiceType type) Sets the type of service this instance represents. |
public synchronized void | setUrl(String url) Set the JDBC URL or connect string for this connection. |
void | trace(Object message, Throwable error) Logs debugging messages and supplementary exception. |
void | trace(Object message) Logs message for debugging purposes. |
void | warn(Object message, Throwable error) Logs warning messages and supplementary exception. |
void | warn(Object message) Logs warning messages. |