org.teiid.jdbc
Class XAConnectionImpl

java.lang.Object
  extended by 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)
           
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
           
 void addStatementEventListener(StatementEventListener arg0)
           
 void close()
           
 Connection getConnection()
           
 XAResource getXAResource()
           
static XAConnectionImpl newInstance(org.teiid.jdbc.XAConnectionImpl.ConnectionSource cs)
           
protected  void notifyListener(SQLException e)
          Notify listeners, if there is any, about the connection status.
 void removeConnectionEventListener(ConnectionEventListener listener)
           
 void removeStatementEventListener(StatementEventListener arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAConnectionImpl

public XAConnectionImpl(org.teiid.jdbc.XAConnectionImpl.ConnectionSource cs)
Method Detail

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.