Class SwitchableXADataSource
- java.lang.Object
-
- org.omnifaces.persistence.datasource.CommonDataSourceWrapper
-
- org.omnifaces.persistence.datasource.SwitchableCommonDataSource
-
- org.omnifaces.persistence.datasource.SwitchableXADataSource
-
- All Implemented Interfaces:
CommonDataSource
,XADataSource
public class SwitchableXADataSource extends SwitchableCommonDataSource implements XADataSource
-
-
Constructor Summary
Constructors Constructor Description SwitchableXADataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XADataSource
getWrapped()
XAConnection
getXAConnection()
XAConnection
getXAConnection(String user, String password)
-
Methods inherited from class org.omnifaces.persistence.datasource.SwitchableCommonDataSource
doInit, get, getConfigFile, set, setConfigFile
-
Methods inherited from class org.omnifaces.persistence.datasource.CommonDataSourceWrapper
getApplicationName, getBinaryTransfer, getBinaryTransferDisable, getBinaryTransferEnable, getCompatible, getDatabaseName, getLoginTimeout, getLogLevel, getLogWriter, getParentLogger, getPassword, getPortNumber, getPrepareThreshold, getProtocolVersion, getServerName, getSocketTimeout, getSsl, getSslfactory, getTcpKeepAlive, getUnknownLength, getUser, initDataSource, setApplicationName, setBinaryTransfer, setBinaryTransferDisable, setBinaryTransferEnable, setCompatible, setDatabaseName, setLoginTimeout, setLogLevel, setLogWriter, setPassword, setPortNumber, setPortNumber, setPrepareThreshold, setProtocolVersion, setReceiveBufferSize, setSendBufferSize, setServerName, setSocketTimeout, setSsl, setSslfactory, setTcpKeepAlive, setUnknownLength, setUser, setWithConversion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
-
Methods inherited from interface javax.sql.XADataSource
createXAConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
-
-
-
Method Detail
-
getWrapped
public XADataSource getWrapped()
- Overrides:
getWrapped
in classCommonDataSourceWrapper
-
getXAConnection
public XAConnection getXAConnection() throws SQLException
- Specified by:
getXAConnection
in interfaceXADataSource
- Throws:
SQLException
-
getXAConnection
public XAConnection getXAConnection(String user, String password) throws SQLException
- Specified by:
getXAConnection
in interfaceXADataSource
- Throws:
SQLException
-
-