Package bitronix.tm.resource.jdbc.lrc
Class LrcXADataSource
java.lang.Object
bitronix.tm.resource.jdbc.lrc.LrcXADataSource
- All Implemented Interfaces:
CommonDataSource,XADataSource
XADataSource implementation for a non-XA JDBC resource emulating XA with Last Resource Commit.
- Author:
- lorban, brettw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetUrl()getUser()getXAConnection(String user, String password) voidsetDriverClassName(String driverClassName) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) voidsetPassword(String password) voidvoidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.XADataSource
createXAConnectionBuilder
-
Constructor Details
-
LrcXADataSource
public LrcXADataSource()
-
-
Method Details
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceXADataSource- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceXADataSource- Throws:
SQLException
-
getDriverClassName
-
setDriverClassName
-
getUrl
-
setUrl
-
getUser
-
setUser
-
getPassword
-
setPassword
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceXADataSource- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceXADataSource- Throws:
SQLException
-
getXAConnection
- Specified by:
getXAConnectionin interfaceXADataSource- Throws:
SQLException
-
getXAConnection
- Specified by:
getXAConnectionin interfaceXADataSource- Throws:
SQLException
-
toString
-