public class SameConnectionDatasource extends Object implements DataSource
| Constructor and Description |
|---|
SameConnectionDatasource(Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Connection |
getConnection() |
Connection |
getConnection(String string,
String string1) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class<?> type) |
void |
setLoginTimeout(int i) |
void |
setLogWriter(PrintWriter writer) |
<T> T |
unwrap(Class<T> type) |
public SameConnectionDatasource(Connection conn)
public Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic void close()
throws SQLException
SQLExceptionpublic Connection getConnection(String string, String string1) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter writer) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int i)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic <T> T unwrap(Class<T> type) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> type) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2012–2022 Zalando SE. All rights reserved.