public class DataSourceWrapper extends Object implements DataSource
| Constructor and Description |
|---|
DataSourceWrapper(DataSource ds) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String arg0,
String arg1) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
Connection |
getTransactionalConnection() |
boolean |
isWrapperFor(Class<?> arg0) |
void |
setLoginTimeout(int arg0) |
void |
setLogWriter(PrintWriter arg0) |
<T> T |
unwrap(Class<T> arg0) |
public DataSourceWrapper(DataSource ds)
public Connection getTransactionalConnection() throws SQLException
SQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String arg0, String arg1) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic void setLogWriter(PrintWriter arg0) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int arg0)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic boolean isWrapperFor(Class<?> arg0) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> arg0) throws SQLException
unwrap in interface WrapperSQLExceptionCopyright © 2020. All rights reserved.