public final class DatabaseConfigConnectionOptions extends Object
| Constructor and Description |
|---|
DatabaseConfigConnectionOptions(UserCredentials userCredentials,
Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String user,
String password) |
String |
getConnectionUrl() |
String |
getDatabase() |
String |
getHost() |
Driver |
getJdbcDriver() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
int |
getPort() |
String |
getUrlX() |
UserCredentials |
getUserCredentials() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setDatabase(String database) |
void |
setHost(String host) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setPort(int port) |
String |
toString() |
<T> T |
unwrap(Class<T> iface) |
public DatabaseConfigConnectionOptions(UserCredentials userCredentials, Map<String,String> properties) throws SchemaCrawlerException
SchemaCrawlerExceptionpublic String getDatabase()
public String getHost()
public int getPort()
public String getUrlX()
public void setDatabase(String database)
public void setHost(String host)
public void setPort(int port)
public 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.