public class XAConnectionImpl extends Object implements XAConnection, ConnectionEventListener, StatementEventListener
| 构造器和说明 |
|---|
XAConnectionImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
addStatementEventListener(StatementEventListener listener) |
void |
close() |
void |
connectionClosed(ConnectionEvent event) |
void |
connectionErrorOccurred(ConnectionEvent event) |
Connection |
getConnection() |
XAConnection |
getDelegate() |
String |
getIdentifier() |
XAResource |
getXAResource() |
void |
removeConnectionEventListener(ConnectionEventListener listener) |
void |
removeStatementEventListener(StatementEventListener listener) |
void |
setDelegate(XAConnection delegate) |
void |
setIdentifier(String identifier) |
void |
statementClosed(StatementEvent event) |
void |
statementErrorOccurred(StatementEvent event) |
public void statementClosed(StatementEvent event)
statementClosed 在接口中 StatementEventListenerpublic void statementErrorOccurred(StatementEvent event)
statementErrorOccurred 在接口中 StatementEventListenerpublic void connectionClosed(ConnectionEvent event)
connectionClosed 在接口中 ConnectionEventListenerpublic void connectionErrorOccurred(ConnectionEvent event)
public Connection getConnection() throws SQLException
getConnection 在接口中 PooledConnectionSQLExceptionpublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener 在接口中 PooledConnectionpublic void removeConnectionEventListener(ConnectionEventListener listener)
public void addStatementEventListener(StatementEventListener listener)
addStatementEventListener 在接口中 PooledConnectionpublic void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener 在接口中 PooledConnectionpublic XAResource getXAResource() throws SQLException
getXAResource 在接口中 XAConnectionSQLExceptionpublic void close()
throws SQLException
close 在接口中 PooledConnectionSQLExceptionpublic String getIdentifier()
public void setIdentifier(String identifier)
public XAConnection getDelegate()
public void setDelegate(XAConnection delegate)
Copyright © 2018. All rights reserved.