All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javasimon.jdbcx.SimonXAConnection Maven / Gradle / Ivy

The newest version!
package org.javasimon.jdbcx;

import javax.sql.XAConnection;
import javax.transaction.xa.XAResource;
import java.sql.SQLException;

/**
 * Simon implementation of XAConnection, needed for
 * Simon XADataSource implementation.
 * 

* All method invokes its real implementation. *

* See the {@link org.javasimon.jdbcx package description} for more * information. * * @author Radovan Sninsky * @version $Revision: 304 $ $Date: 2011-04-08 10:39:02 +0200 (Fri, 08 Apr 2011) $ * @since 1.0 */ public final class SimonXAConnection extends SimonPooledConnection implements XAConnection { private final XAConnection realConn; /** * Class constructor. * * @param connection real xa connection * @param prefix Simon prefix */ public SimonXAConnection(XAConnection connection, String prefix) { super(connection, prefix); this.realConn = connection; } /** * {@inheritDoc} */ public XAResource getXAResource() throws SQLException { return realConn.getXAResource(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy