Class JdbiFactoryBean

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<Jdbi>
org.jdbi.v3.spring5.JdbiFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<Jdbi>, org.springframework.beans.factory.InitializingBean

@Deprecated(forRemoval=true, since="3.47.0") public class JdbiFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<Jdbi>
Deprecated, for removal: This API element is subject to removal in a future version.
Use the org.jdbi.v3.spring module with Spring 6.x or newer.
Utility class which constructs an Jdbi instance which can conveniently participate in Spring's transaction management system.
  • Field Summary

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Verifies that a dataSource has been set
    Deprecated, for removal: This API element is subject to removal in a future version.
    See FactoryBean.getObjectType()
    setAutoInstallPlugins(boolean autoInstallPlugins)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets whether to install plugins automatically from the classpath, using ServiceLoader manifests.
    Deprecated, for removal: This API element is subject to removal in a future version.
    The datasource, which should be managed by spring's transaction system, from which the Jdbi will obtain connections
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Installs the given plugins which will be installed into the Jdbi.

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    destroy, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JdbiFactoryBean

      public JdbiFactoryBean()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • JdbiFactoryBean

      public JdbiFactoryBean(DataSource dataSource)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getObjectType

      public Class<Jdbi> getObjectType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      See FactoryBean.getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<Jdbi>
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<Jdbi>
    • setDataSource

      public JdbiFactoryBean setDataSource(DataSource dataSource)
      Deprecated, for removal: This API element is subject to removal in a future version.
      The datasource, which should be managed by spring's transaction system, from which the Jdbi will obtain connections
      Parameters:
      dataSource - the data source.
      Returns:
      this
    • setPlugins

      @Autowired(required=false) public JdbiFactoryBean setPlugins(Collection<JdbiPlugin> plugins)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Installs the given plugins which will be installed into the Jdbi.
      Parameters:
      plugins - collection of Jdbi plugins to install.
      Returns:
      this
    • setAutoInstallPlugins

      public JdbiFactoryBean setAutoInstallPlugins(boolean autoInstallPlugins)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets whether to install plugins automatically from the classpath, using ServiceLoader manifests.
      Parameters:
      autoInstallPlugins - whether to install plugins automatically from the classpath.
      Returns:
      this
      See Also:
    • setGlobalDefines

      public void setGlobalDefines(Map<String,Object> defines)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Verifies that a dataSource has been set
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class org.springframework.beans.factory.config.AbstractFactoryBean<Jdbi>
      Throws:
      Exception