public final class DatabaseConnectionOptions extends Object
| Constructor and Description |
|---|
DatabaseConnectionOptions(String connectionUrl) |
DatabaseConnectionOptions(UserCredentials userCredentials,
Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String user,
String password) |
String |
getConnectionUrl() |
Driver |
getJdbcDriver() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
UserCredentials |
getUserCredentials() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
String |
toString() |
<T> T |
unwrap(Class<T> iface) |
public DatabaseConnectionOptions(String connectionUrl) throws SchemaCrawlerException
SchemaCrawlerExceptionpublic DatabaseConnectionOptions(UserCredentials userCredentials, Map<String,String> properties) throws SchemaCrawlerException
SchemaCrawlerExceptionpublic final Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic final Connection getConnection(String user, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic String getConnectionUrl()
getConnectionUrl in interface ConnectionOptionspublic final Driver getJdbcDriver() throws SQLException
getJdbcDriver in interface ConnectionOptionsSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic UserCredentials getUserCredentials()
getUserCredentials in interface ConnectionOptionspublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionCopyright © 2000-2017 Sualeh Fatehi. All rights reserved.