public interface XAConnection extends PooledConnection
XAConnection
对象可能参与分布式事务的
XAResource
对象。事务管理器,通常是中间层服务器的一部分,通过
XAResource
对象管理
XAConnection
对象。
一个应用程序程序员不直接使用这个接口,相反,它是在中间层服务器上工作的事务管理器使用的。
Modifier and Type | Method and Description |
---|---|
XAResource |
getXAResource()
检索一个
XAResource 对象,事务管理器将用于管理分布式事务中的这
XAConnection 对象的参与。
|
addConnectionEventListener, addStatementEventListener, close, getConnection, removeConnectionEventListener, removeStatementEventListener
XAResource getXAResource() throws SQLException
XAResource
对象,事务管理器将用于管理分布式事务中的这
XAConnection
对象的参与。
XAResource
对象
SQLException
-如果一个数据库访问错误发生
SQLFeatureNotSupportedException
如果JDBC驱动程序不支持此方法
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.