public final class DatabaseConfigConnectionOptions
extends java.lang.Object
| Constructor and Description |
|---|
DatabaseConfigConnectionOptions(UserCredentials userCredentials,
java.util.Map<java.lang.String,java.lang.String> properties) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection() |
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String password) |
java.lang.String |
getConnectionUrl() |
java.lang.String |
getDatabase() |
java.lang.String |
getHost() |
java.sql.Driver |
getJdbcDriver() |
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.util.logging.Logger |
getParentLogger() |
int |
getPort() |
java.lang.String |
getUrlX() |
UserCredentials |
getUserCredentials() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setDatabase(java.lang.String database) |
void |
setHost(java.lang.String host) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(java.io.PrintWriter out) |
void |
setPort(int port) |
java.lang.String |
toString() |
<T> T |
unwrap(java.lang.Class<T> iface) |
public DatabaseConfigConnectionOptions(UserCredentials userCredentials, java.util.Map<java.lang.String,java.lang.String> properties) throws SchemaCrawlerException
SchemaCrawlerExceptionpublic java.lang.String getDatabase()
public java.lang.String getHost()
public int getPort()
public java.lang.String getUrlX()
public void setDatabase(java.lang.String database)
public void setHost(java.lang.String host)
public void setPort(int port)
public final java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic final java.sql.Connection getConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic java.lang.String getConnectionUrl()
getConnectionUrl in interface ConnectionOptionspublic final java.sql.Driver getJdbcDriver()
throws java.sql.SQLException
getJdbcDriver in interface ConnectionOptionsjava.sql.SQLExceptionpublic int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger in interface javax.sql.CommonDataSourcejava.sql.SQLFeatureNotSupportedExceptionpublic UserCredentials getUserCredentials()
getUserCredentials in interface ConnectionOptionspublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic final java.lang.String toString()
toString in class java.lang.Objectpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionCopyright © 2000-2018 Sualeh Fatehi. All rights reserved.