Wrapper, CommonDataSource, DataSourcepublic final class DriverDataSource extends Object implements DataSource
| Constructor | Description |
|---|---|
DriverDataSource(String jdbcUrl,
String driverClassName,
Properties properties,
String username,
String password) |
| Modifier and Type | Method | Description |
|---|---|---|
Connection |
getConnection() |
|
Connection |
getConnection(String username,
String password) |
|
int |
getLoginTimeout() |
|
PrintWriter |
getLogWriter() |
|
Logger |
getParentLogger() |
|
boolean |
isWrapperFor(Class<?> iface) |
|
void |
setLoginTimeout(int seconds) |
|
void |
setLogWriter(PrintWriter logWriter) |
|
<T> T |
unwrap(Class<T> iface) |
createShardingKeyBuildercreateConnectionBuilderpublic DriverDataSource(String jdbcUrl, String driverClassName, Properties properties, String username, String password)
public Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourcegetLogWriter in interface DataSourceSQLExceptionpublic void setLogWriter(PrintWriter logWriter) throws SQLException
setLogWriter in interface CommonDataSourcesetLogWriter in interface DataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourcesetLoginTimeout in interface DataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourcegetLoginTimeout in interface DataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionCopyright © 2017 Zaxxer.com. All Rights Reserved.