public class ManagedDataSource extends Object implements DataSource
| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
delegate |
protected int |
hashCode |
protected TransactionManager |
transactionManager |
| Modifier | Constructor and Description |
|---|---|
|
ManagedDataSource(DataSource ds,
TransactionManager txMgr) |
protected |
ManagedDataSource(DataSource ds,
TransactionManager txMgr,
int hc) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean() |
boolean |
equals(Object o) |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
DataSource |
getDelegate() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
int |
hashCode() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
<T> T |
unwrap(Class<T> iface) |
protected final DataSource delegate
protected final TransactionManager transactionManager
protected final int hashCode
protected ManagedDataSource(DataSource ds, TransactionManager txMgr, int hc)
public ManagedDataSource(DataSource ds, TransactionManager txMgr)
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 CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic DataSource getDelegate()
public void clean()
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.