public class BitronixXaDataSourceWrapper extends Object implements DataSource, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.core.privileged.transaction.xa.XaResourceFactoryHolder, org.mule.runtime.api.lifecycle.Disposable
| Constructor and Description |
|---|
BitronixXaDataSourceWrapper(bitronix.tm.resource.jdbc.PoolingDataSource xaDataSource,
XADataSource dataSource,
org.mule.runtime.core.api.MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dispose() |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
Object |
getHoldObject() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
bitronix.tm.resource.jdbc.PoolingDataSource |
getWrappedDataSource() |
void |
initialise() |
boolean |
isWrapperFor(Class<?> interfase) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
<T> T |
unwrap(Class<T> interfase) |
public BitronixXaDataSourceWrapper(bitronix.tm.resource.jdbc.PoolingDataSource xaDataSource,
XADataSource dataSource,
org.mule.runtime.core.api.MuleContext muleContext)
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 boolean isWrapperFor(Class<?> interfase) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> interfase) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic void close()
public bitronix.tm.resource.jdbc.PoolingDataSource getWrappedDataSource()
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic Object getHoldObject()
getHoldObject in interface org.mule.runtime.core.privileged.transaction.xa.XaResourceFactoryHolderpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.