public class AtomikosDataSourceBean extends AbstractDataSourceBean
DEFAULT_BORROW_CONNECTION_TIMEOUT, DEFAULT_ISOLATION_LEVEL_UNSET, DEFAULT_MAINTENANCE_INTERVAL, DEFAULT_MAX_IDLE_TIME, DEFAULT_MAX_LIFETIME, DEFAULT_POOL_SIZE| Constructor and Description |
|---|
AtomikosDataSourceBean() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
protected ConnectionFactory<Connection> |
doInit() |
boolean |
getIgnoreJtaTransactions() |
boolean |
getLocalTransactionMode()
Tests whether local transactions are allowed - defaults to false
for JDBC.
|
XADataSource |
getXaDataSource()
Gets the configured XADataSource (if any).
|
String |
getXaDataSourceClassName()
Get the XADataSource class name.
|
Properties |
getXaProperties()
Gets the properties used to
configure the XADataSource.
|
protected boolean |
isAssignableFromWrappedVendorClass(Class<?> iface) |
void |
setLocalTransactionMode(boolean localTransactionMode)
Sets localTransactionMode.
|
void |
setXaDataSource(XADataSource xaDataSource)
Sets the XADataSource directly - instead of providing the xaDataSourceClassName and xaProperties.
|
void |
setXaDataSourceClassName(String xaDataSourceClassName)
Sets the fully qualified underlying XADataSource class name.
|
void |
setXaProperties(Properties xaProperties)
Sets the properties (name,value pairs) used to
configure the XADataSource.
|
protected Object |
unwrapVendorInstance() |
close, getBorrowConnectionTimeout, getConcurrentConnectionValidation, getConnection, getConnection, getDefaultIsolationLevel, getLoginTimeout, getLogWriter, getMaintenanceInterval, getMaxIdleTime, getMaxLifetime, getMaxPoolSize, getMinPoolSize, getParentLogger, getReference, getTestQuery, getUniqueResourceName, init, isWrapperFor, poolAvailableSize, poolTotalSize, refreshPool, setBorrowConnectionTimeout, setConcurrentConnectionValidation, setDefaultIsolationLevel, setLoginTimeout, setLogWriter, setMaintenanceInterval, setMaxIdleTime, setMaxLifetime, setMaxPoolSize, setMinPoolSize, setPoolSize, setTestQuery, setUniqueResourceName, throwAtomikosSQLException, toString, unwrappublic Properties getXaProperties()
public void setXaProperties(Properties xaProperties)
xaProperties - public String getXaDataSourceClassName()
public void setXaDataSourceClassName(String xaDataSourceClassName)
xaDataSourceClassName - public XADataSource getXaDataSource()
public void setXaDataSource(XADataSource xaDataSource)
xaDataSource - public boolean getLocalTransactionMode()
AbstractDataSourceBeangetLocalTransactionMode in interface ConnectionPoolPropertiesgetLocalTransactionMode in class AbstractDataSourceBeanpublic void setLocalTransactionMode(boolean localTransactionMode)
localTransactionMode - If true, then (for historical reasons) this
datasource supports "hybrid" behaviour: if a JTA transaction is present then
XA will be used, if not then a regular JDBC connection with connection-level
commit/rollback will be returned.
For safety, this property is best left to false: that way, there is no
doubt about the transactional nature of your JDBC work.protected ConnectionFactory<Connection> doInit() throws Exception
doInit in class AbstractDataSourceBeanExceptionprotected void doClose()
doClose in class AbstractDataSourceBeanprotected boolean isAssignableFromWrappedVendorClass(Class<?> iface)
isAssignableFromWrappedVendorClass in class AbstractDataSourceBeanprotected Object unwrapVendorInstance()
unwrapVendorInstance in class AbstractDataSourceBeanpublic boolean getIgnoreJtaTransactions()
Copyright © 2023. All rights reserved.