com.metamatrix.jdbc
Class MMXAConnection
java.lang.Object
com.metamatrix.jdbc.MMXAConnection
- All Implemented Interfaces:
- javax.sql.PooledConnection, javax.sql.XAConnection
public class MMXAConnection
- extends java.lang.Object
- implements javax.sql.XAConnection
Implementation of XAConnection.
Constructor Summary |
MMXAConnection(com.metamatrix.jdbc.MMXAConnection.ConnectionSource cs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MMXAConnection
public MMXAConnection(com.metamatrix.jdbc.MMXAConnection.ConnectionSource cs)
newInstance
public static MMXAConnection newInstance(com.metamatrix.jdbc.MMXAConnection.ConnectionSource cs)
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Specified by:
getConnection
in interface javax.sql.PooledConnection
- Throws:
java.sql.SQLException
addConnectionEventListener
public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
- Specified by:
addConnectionEventListener
in interface javax.sql.PooledConnection
removeConnectionEventListener
public void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
- Specified by:
removeConnectionEventListener
in interface javax.sql.PooledConnection
getXAResource
public javax.transaction.xa.XAResource getXAResource()
throws java.sql.SQLException
- Specified by:
getXAResource
in interface javax.sql.XAConnection
- Throws:
java.sql.SQLException
close
public void close()
throws java.sql.SQLException
- Specified by:
close
in interface javax.sql.PooledConnection
- Throws:
java.sql.SQLException
notifyListener
protected void notifyListener(java.sql.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(javax.sql.StatementEventListener arg0)
- Specified by:
addStatementEventListener
in interface javax.sql.PooledConnection
removeStatementEventListener
public void removeStatementEventListener(javax.sql.StatementEventListener arg0)
- Specified by:
removeStatementEventListener
in interface javax.sql.PooledConnection
Copyright © 2009. All Rights Reserved.