类 NarayanaDataSourceBean
- java.lang.Object
- org.springframework.boot.jta.narayana.NarayanaDataSourceBean
- 所有已实现的接口:
Wrapper
,CommonDataSource
,DataSource
public class NarayanaDataSourceBean extends Object implements DataSource
- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 NarayanaDataSourceBean(XADataSource xaDataSource)
Create a newNarayanaDataSourceBean
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Connection
getConnection()
Connection
getConnection(String username, String password)
int
getLoginTimeout()
PrintWriter
getLogWriter()
Logger
getParentLogger()
boolean
isWrapperFor(Class<?> iface)
void
setLoginTimeout(int seconds)
void
setLogWriter(PrintWriter out)
<T> T
unwrap(Class<T> iface)
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 javax.sql.CommonDataSource
createShardingKeyBuilder
从接口继承的方法 javax.sql.DataSource
createConnectionBuilder
构造器详细资料
NarayanaDataSourceBean
public NarayanaDataSourceBean(XADataSource xaDataSource)
Create a newNarayanaDataSourceBean
instance.- 参数:
xaDataSource
- the XA DataSource
方法详细资料
getConnection
public Connection getConnection() throws SQLException
- 指定者:
getConnection
在接口中DataSource
- 抛出:
SQLException
getConnection
public Connection getConnection(String username, String password) throws SQLException
- 指定者:
getConnection
在接口中DataSource
- 抛出:
SQLException
getLogWriter
public PrintWriter getLogWriter() throws SQLException
- 指定者:
getLogWriter
在接口中CommonDataSource
- 指定者:
getLogWriter
在接口中DataSource
- 抛出:
SQLException
setLogWriter
public void setLogWriter(PrintWriter out) throws SQLException
- 指定者:
setLogWriter
在接口中CommonDataSource
- 指定者:
setLogWriter
在接口中DataSource
- 抛出:
SQLException
setLoginTimeout
public void setLoginTimeout(int seconds) throws SQLException
- 指定者:
setLoginTimeout
在接口中CommonDataSource
- 指定者:
setLoginTimeout
在接口中DataSource
- 抛出:
SQLException
getLoginTimeout
public int getLoginTimeout() throws SQLException
- 指定者:
getLoginTimeout
在接口中CommonDataSource
- 指定者:
getLoginTimeout
在接口中DataSource
- 抛出:
SQLException
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- 指定者:
unwrap
在接口中Wrapper
- 抛出:
SQLException
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- 指定者:
isWrapperFor
在接口中Wrapper
- 抛出:
SQLException