org.teiid.jdbc
Class XAConnectionImpl
java.lang.Object
org.teiid.jdbc.XAConnectionImpl
- All Implemented Interfaces:
- PooledConnection, XAConnection
public class XAConnectionImpl
- extends Object
- implements XAConnection
Implementation of XAConnection.
|
Constructor Summary |
XAConnectionImpl(org.teiid.jdbc.XAConnectionImpl.ConnectionSource cs)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XAConnectionImpl
public XAConnectionImpl(org.teiid.jdbc.XAConnectionImpl.ConnectionSource cs)
newInstance
public static XAConnectionImpl newInstance(org.teiid.jdbc.XAConnectionImpl.ConnectionSource cs)
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection in interface PooledConnection
- Throws:
SQLException
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
- Specified by:
addConnectionEventListener in interface PooledConnection
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
- Specified by:
removeConnectionEventListener in interface PooledConnection
getXAResource
public XAResource getXAResource()
throws SQLException
- Specified by:
getXAResource in interface XAConnection
- Throws:
SQLException
close
public void close()
throws SQLException
- Specified by:
close in interface PooledConnection
- Throws:
SQLException
notifyListener
protected void notifyListener(SQLException e)
- Notify listeners, if there is any, about the connection status.
If e is null, the connection is properly closed.
- Parameters:
e -
addStatementEventListener
public void addStatementEventListener(StatementEventListener arg0)
- Specified by:
addStatementEventListener in interface PooledConnection
removeStatementEventListener
public void removeStatementEventListener(StatementEventListener arg0)
- Specified by:
removeStatementEventListener in interface PooledConnection
Copyright © 2012. All Rights Reserved.