Class PoolingDataSourceBean.DirectXADataSource
- java.lang.Object
- org.springframework.boot.jta.bitronix.PoolingDataSourceBean.DirectXADataSource
- All Implemented Interfaces:
CommonDataSource
,XADataSource
- Enclosing class:
- PoolingDataSourceBean
public static class PoolingDataSourceBean.DirectXADataSource extends Object implements XADataSource
Constructor Summary
Constructors Constructor Description DirectXADataSource()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XADataSource
getDataSource()
int
getLoginTimeout()
PrintWriter
getLogWriter()
Logger
getParentLogger()
XAConnection
getXAConnection()
XAConnection
getXAConnection(String user, String password)
void
setLoginTimeout(int seconds)
void
setLogWriter(PrintWriter out)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
Methods inherited from interface javax.sql.XADataSource
createXAConnectionBuilder
Constructor Detail
DirectXADataSource
public DirectXADataSource()
Method Detail
getLogWriter
public PrintWriter getLogWriter() throws SQLException
- Specified by:
getLogWriter
in interfaceCommonDataSource
- Specified by:
getLogWriter
in interfaceXADataSource
- Throws:
SQLException
getXAConnection
public XAConnection getXAConnection() throws SQLException
- Specified by:
getXAConnection
in interfaceXADataSource
- Throws:
SQLException
getXAConnection
public XAConnection getXAConnection(String user, String password) throws SQLException
- Specified by:
getXAConnection
in interfaceXADataSource
- Throws:
SQLException
setLogWriter
public void setLogWriter(PrintWriter out) throws SQLException
- Specified by:
setLogWriter
in interfaceCommonDataSource
- Specified by:
setLogWriter
in interfaceXADataSource
- Throws:
SQLException
setLoginTimeout
public void setLoginTimeout(int seconds) throws SQLException
- Specified by:
setLoginTimeout
in interfaceCommonDataSource
- Specified by:
setLoginTimeout
in interfaceXADataSource
- Throws:
SQLException
getLoginTimeout
public int getLoginTimeout() throws SQLException
- Specified by:
getLoginTimeout
in interfaceCommonDataSource
- Specified by:
getLoginTimeout
in interfaceXADataSource
- Throws:
SQLException
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
- Specified by:
getParentLogger
in interfaceCommonDataSource
- Throws:
SQLFeatureNotSupportedException
getDataSource
public XADataSource getDataSource()