public final class DatabaseConnectionOptions
extends java.lang.Object
| Constructor and Description |
|---|
DatabaseConnectionOptions(java.lang.String connectionUrl) |
DatabaseConnectionOptions(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.sql.Driver |
getJdbcDriver() |
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.util.logging.Logger |
getParentLogger() |
UserCredentials |
getUserCredentials() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(java.io.PrintWriter out) |
java.lang.String |
toString() |
<T> T |
unwrap(java.lang.Class<T> iface) |
public DatabaseConnectionOptions(java.lang.String connectionUrl)
throws SchemaCrawlerException
SchemaCrawlerExceptionpublic DatabaseConnectionOptions(UserCredentials userCredentials, java.util.Map<java.lang.String,java.lang.String> properties) throws SchemaCrawlerException
SchemaCrawlerExceptionpublic 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.