public class DataSourceWrapper extends Object implements DataSource, org.mule.util.xa.XaResourceFactoryHolder
| Constructor and Description |
|---|
DataSourceWrapper() |
DataSourceWrapper(XADataSource xaDataSource) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
Object |
getHoldObject() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
XADataSource |
getXaDataSource() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setXaDataSource(XADataSource xads) |
<T> T |
unwrap(Class<T> iface) |
public DataSourceWrapper()
public DataSourceWrapper(XADataSource xaDataSource)
public int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic XADataSource getXaDataSource()
public void setXaDataSource(XADataSource xads)
xads - The XADataSource to set.public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic Object getHoldObject()
getHoldObject in interface org.mule.util.xa.XaResourceFactoryHolderCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.