org.openmdx.kernel.application.container.spi.sql
Class LightweightXAConnection

java.lang.Object
  extended by org.openmdx.kernel.application.container.spi.sql.LightweightXAConnection
All Implemented Interfaces:
PooledConnection, XAConnection, CloseCallback

public class LightweightXAConnection
extends Object
implements XAConnection, CloseCallback

Lightweight XAConnection


Constructor Summary
LightweightXAConnection(Connection connection)
          Constructor
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
           
 void close()
           
 Connection getConnection()
           
 XAResource getXAResource()
           
 void postClose(Object closed)
          To tell that an object has been closed.
 void removeConnectionEventListener(ConnectionEventListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.PooledConnection
addStatementEventListener, removeStatementEventListener
 

Constructor Detail

LightweightXAConnection

public LightweightXAConnection(Connection connection)
Constructor

Parameters:
connection -
Method Detail

getXAResource

public XAResource getXAResource()
                         throws SQLException
Specified by:
getXAResource in interface XAConnection
Throws:
SQLException

addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface PooledConnection

close

public void close()
           throws SQLException
Specified by:
close in interface PooledConnection
Throws:
SQLException

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface PooledConnection
Throws:
SQLException

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface PooledConnection

postClose

public void postClose(Object closed)
Description copied from interface: CloseCallback
To tell that an object has been closed.

Specified by:
postClose in interface CloseCallback
Parameters:
closed - the object which has been closed.


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.