Package org.jdbi.v3.spring5
Class JdbiRepositoryFactoryBean
java.lang.Object
org.jdbi.v3.spring5.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Verifies that the object type has been setClass<?>
void
setApplicationContext
(org.springframework.context.ApplicationContext context) void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) void
setJdbiQualifier
(String jdbiQualifier) Set the jdbi qualifier.void
setObjectType
(Class<?> objectType) The object type of the repository.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
JdbiRepositoryFactoryBean
public JdbiRepositoryFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<Object>
-
getObjectType
- Specified by:
getObjectType
in 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. ifnull
then no name will be specified during resolution.
-
afterPropertiesSet
public void afterPropertiesSet()Verifies that the object type has been set- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
-