Package org.jdbi.v3.spring
Class JdbiRepositoryFactoryBean
java.lang.Object
org.jdbi.v3.spring.JdbiRepositoryFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.FactoryBean<Object>,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidVerifies that the object type has been setClass<?> voidsetApplicationContext(org.springframework.context.ApplicationContext context) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetJdbiQualifier(String jdbiQualifier) Set the jdbi qualifier.voidsetObjectType(Class<?> objectType) The object type of the repository.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
JdbiRepositoryFactoryBean
public JdbiRepositoryFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<Object>
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<Object>
-
setObjectType
The object type of the repository. -
setJdbiQualifier
Set the jdbi qualifier.- Parameters:
jdbiQualifier- The name of the jdbi bean to bind the repository to. ifnullthen no name will be specified during resolution.
-
afterPropertiesSet
public void afterPropertiesSet()Verifies that the object type has been set- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware
-