Class LocalXADataSource
java.lang.Object
org.wso2.carbon.ndatasource.datasources.LocalXADataSource
- All Implemented Interfaces:
CommonDataSource,XADataSource
This class represents an
XADataSource implementation which uses a local transaction
for its operations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassLocalConnectionimplementation.classThis class represents anXAConnectionimplementation which is backed by a normal JDBCConnection.classThis class represents anXAResourceimplementation based on the local transaction model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetUrl()getXAConnection(String user, String password) voidinitConn()voidsetDriverClassName(String driverClassName) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) voidsetPassword(String password) voidvoidsetUsername(String username) voidsetValidationQuery(String validationQuery) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.XADataSource
createXAConnectionBuilder
-
Constructor Details
-
LocalXADataSource
public LocalXADataSource()
-
-
Method Details
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceXADataSource- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceXADataSource- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceXADataSource- Throws:
SQLException
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceXADataSource- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-
getXAConnection
- Specified by:
getXAConnectionin interfaceXADataSource- Throws:
SQLException
-
getXAConnection
- Specified by:
getXAConnectionin interfaceXADataSource- Throws:
SQLException
-
getUrl
-
setUrl
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getDriverClassName
-
setDriverClassName
-
initConn
- Throws:
SQLException
-
getValidationQuery
-
setValidationQuery
-