Class AtomikosDataSourceBean

java.lang.Object
com.atomikos.jdbc.internal.AbstractDataSourceBean
com.atomikos.jdbc.AtomikosDataSourceBean
com.atomikos.spring.AtomikosDataSourceBean
All Implemented Interfaces:
com.atomikos.datasource.pool.ConnectionPoolProperties, com.atomikos.icatch.OrderedLifecycleComponent, Serializable, Wrapper, Referenceable, CommonDataSource, DataSource, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

@ConfigurationProperties(prefix="spring.jta.atomikos.datasource") public class AtomikosDataSourceBean extends com.atomikos.jdbc.AtomikosDataSourceBean implements org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Spring friendly version of AtomikosDataSourceBean.
See Also:
  • Field Summary

    Fields inherited from interface com.atomikos.datasource.pool.ConnectionPoolProperties

    DEFAULT_BORROW_CONNECTION_TIMEOUT, DEFAULT_ISOLATION_LEVEL_UNSET, DEFAULT_MAINTENANCE_INTERVAL, DEFAULT_MAX_IDLE_TIME, DEFAULT_MAX_LIFETIME, DEFAULT_POOL_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
     

    Methods inherited from class com.atomikos.jdbc.AtomikosDataSourceBean

    doClose, doInit, getIgnoreJtaTransactions, getLocalTransactionMode, getXaDataSource, getXaDataSourceClassName, getXaProperties, isAssignableFromWrappedVendorClass, setLocalTransactionMode, setXaDataSource, setXaDataSourceClassName, setXaProperties, unwrapVendorInstance

    Methods inherited from class com.atomikos.jdbc.internal.AbstractDataSourceBean

    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, unwrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface javax.sql.CommonDataSource

    createShardingKeyBuilder

    Methods inherited from interface javax.sql.DataSource

    createConnectionBuilder
  • Constructor Details

    • AtomikosDataSourceBean

      public AtomikosDataSourceBean()
  • Method Details

    • setBeanName

      public void setBeanName(String name)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception