Package com.arjuna.ats.jdbc
Class TransactionalDriver
- java.lang.Object
-
- com.arjuna.ats.jdbc.TransactionalDriver
-
- All Implemented Interfaces:
Driver
public class TransactionalDriver extends Object implements Driver
Transactional JDBC 2.0 driver. This returns transactional JDBC connections when required. We try to make this look as much like a standard JDBC driver as possible.- Since:
- JTS 2.0.
- Version:
- $Id: TransactionalDriver.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringarjunaDriverstatic StringcreateDbstatic StringdynamicClassstatic Stringjdbcstatic StringmaxConnectionsstatic Stringpasswordstatic StringpoolConnectionsstatic StringuserNamestatic ObjectXADataSource
-
Constructor Summary
Constructors Constructor Description TransactionalDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsURL(String url)Connectionconnect(String url, Properties info)intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()DriverPropertyInfo[]getPropertyInfo(String url, Properties info)booleanjdbcCompliant()
-
-
-
Field Detail
-
arjunaDriver
public static final String arjunaDriver
- See Also:
- Constant Field Values
-
jdbc
public static final String jdbc
- See Also:
- Constant Field Values
-
userName
public static final String userName
- See Also:
- Constant Field Values
-
password
public static final String password
- See Also:
- Constant Field Values
-
dynamicClass
public static final String dynamicClass
- See Also:
- Constant Field Values
-
createDb
public static final String createDb
- See Also:
- Constant Field Values
-
poolConnections
public static final String poolConnections
- See Also:
- Constant Field Values
-
XADataSource
public static final Object XADataSource
-
maxConnections
public static final String maxConnections
- See Also:
- Constant Field Values
-
-
Method Detail
-
connect
public Connection connect(String url, Properties info) throws SQLException
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
acceptsURL
public boolean acceptsURL(String url) throws SQLException
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
-