Class DataSourceProvider


  • public class DataSourceProvider
    extends Object
    Provides access to a ThreadLocal JDBC DataSource object.
    • Constructor Detail

      • DataSourceProvider

        public DataSourceProvider()
    • Method Detail

      • getDataSource

        public static DataSource getDataSource()
        Return a ThreadLocal DataSource object.
        Returns:
        a ThreadLocal DataSource object.
      • setDataSource

        public static void setDataSource​(DataSource dataSource)
        Sets a ThreadLocal DataSource object.
        Parameters:
        dataSource - set the ThreadLocal data source object.