public class JdbiFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<Jdbi>
Jdbi instance which can conveniently
participate in Spring's transaction management system.| Constructor and Description |
|---|
JdbiFactoryBean() |
JdbiFactoryBean(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Verifies that a dataSource has been set
|
protected Jdbi |
createInstance() |
Class<Jdbi> |
getObjectType()
See
FactoryBean.getObjectType() |
JdbiFactoryBean |
setAutoInstallPlugins(boolean autoInstallPlugins)
Sets whether to install plugins automatically from the classpath, using
ServiceLoader manifests. |
JdbiFactoryBean |
setDataSource(DataSource dataSource)
The datasource, which should be managed by spring's transaction system, from which
the
Jdbi will obtain connections |
void |
setGlobalDefines(Map<String,Object> defines) |
JdbiFactoryBean |
setPlugins(Collection<JdbiPlugin> plugins)
Installs the given plugins which will be installed into the
Jdbi. |
public JdbiFactoryBean()
public JdbiFactoryBean(DataSource dataSource)
public JdbiFactoryBean setDataSource(DataSource dataSource)
Jdbi will obtain connectionsdataSource - the data source.@Autowired(required=false) public JdbiFactoryBean setPlugins(Collection<JdbiPlugin> plugins)
Jdbi.plugins - collection of Jdbi plugins to install.public JdbiFactoryBean setAutoInstallPlugins(boolean autoInstallPlugins)
ServiceLoader manifests.autoInstallPlugins - whether to install plugins automatically from
the classpath.for detailpublic void afterPropertiesSet()
throws Exception
Copyright © 2019. All rights reserved.