Class SupportsMultipleConnectionsModifier
java.lang.Object
com.arjuna.ats.internal.jdbc.drivers.modifiers.SupportsMultipleConnectionsModifier
- All Implemented Interfaces:
ConnectionModifier
,XAModifier
public class SupportsMultipleConnectionsModifier
extends Object
implements XAModifier, ConnectionModifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGiven an Arjuna xid, create a local driver representation.getConnection
(XAConnection conn) Return a new connection.initialise
(String dbName) Initialise the modifier.boolean
This method indicates whether the driver supports TMJOIN reliably.void
setIsolationLevel
(Connection conn, int level) boolean
Does their JDBC driver support multiple connections in a single transaction?int
xaStartParameters
(int level) Return the xa_start parameters for this level.
-
Constructor Details
-
SupportsMultipleConnectionsModifier
public SupportsMultipleConnectionsModifier()
-
-
Method Details
-
initialise
Description copied from interface:ConnectionModifier
Initialise the modifier.- Specified by:
initialise
in interfaceConnectionModifier
- Returns:
- the database name to use.
-
createXid
Description copied from interface:XAModifier
Given an Arjuna xid, create a local driver representation. Some drivers expect their own implementations to be used, despite the fact that the JTA does not mention this!- Specified by:
createXid
in interfaceXAModifier
- Throws:
SQLException
NotImplementedException
-
getConnection
Description copied from interface:ConnectionModifier
Return a new connection.- Specified by:
getConnection
in interfaceConnectionModifier
- Throws:
SQLException
NotImplementedException
-
supportsMultipleConnections
Description copied from interface:ConnectionModifier
Does their JDBC driver support multiple connections in a single transaction?- Specified by:
supportsMultipleConnections
in interfaceConnectionModifier
- Throws:
SQLException
NotImplementedException
-
setIsolationLevel
public void setIsolationLevel(Connection conn, int level) throws SQLException, NotImplementedException - Specified by:
setIsolationLevel
in interfaceConnectionModifier
- Throws:
SQLException
NotImplementedException
-
xaStartParameters
Description copied from interface:XAModifier
Return the xa_start parameters for this level.- Specified by:
xaStartParameters
in interfaceXAModifier
- Throws:
SQLException
NotImplementedException
-
requiresSameRMOverride
public boolean requiresSameRMOverride()Description copied from interface:ConnectionModifier
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.- Specified by:
requiresSameRMOverride
in interfaceConnectionModifier
-