
com.arjuna.ats.internal.jdbc.drivers.modifiers.ConnectionModifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of narayana-jta Show documentation
Show all versions of narayana-jta Show documentation
Narayana: ArjunaJTA narayana-jta (jta uber jar)
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
* (C) 2005-2006,
* @author JBoss Inc.
*/
/*
* Copyright (C) 1998, 1999, 2000, 2001,
*
* Arjuna Solutions Limited,
* Newcastle upon Tyne,
* Tyne and Wear,
* UK.
*
* $Id: ConnectionModifier.java 2342 2006-03-30 13:06:17Z $
*/
package com.arjuna.ats.internal.jdbc.drivers.modifiers;
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.XAConnection;
import com.arjuna.ats.jta.exceptions.NotImplementedException;
import com.arjuna.ats.jta.xa.XAModifier;
/**
* Instances of this class enable us to work around problems
* in certain databases (specifically Oracle).
*
* @author Mark Little ([email protected])
* @version $Id: ConnectionModifier.java 2342 2006-03-30 13:06:17Z $
* @since JTS 1.2.4.
*/
public interface ConnectionModifier extends XAModifier
{
/**
* Initialise the modifier.
*
* @return the database name to use.
* @since JTS 2.2.
*/
public String initialise (String dbName);
/**
* Return a new connection.
* @deprecated This is no longer used by the transaction manager
*/
public XAConnection getConnection (XAConnection conn) throws SQLException, NotImplementedException;
/**
* Does their JDBC driver support multiple connections in a single transaction?
*/
public boolean supportsMultipleConnections () throws SQLException, NotImplementedException;
/*
* Set the isolation level on the connection.
*/
public void setIsolationLevel (Connection conn, int level) throws SQLException, NotImplementedException;
/**
* This method indicates whether the driver supports TMJOIN reliably. If isSameRM returns true but does
* not support xares1.start(xid1,TMNOFLAGS); xares2.start(xid2, TMJOIN) then you need to make sure you
* set this to true to use a wrapped XAR that returns false for the driver.
*
* See JBTM-2264 for more details.
*/
public boolean requiresSameRMOverride();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy