public class R2dbcRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable> extends RepositoryFactoryBeanSupport<T,S,ID> implements ApplicationContextAware
FactoryBean to create
R2dbcRepository instances. Can be either configured with
R2dbcEntityOperations or DatabaseClient with ReactiveDataAccessStrategy.ReactiveSortingRepositoryOBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
R2dbcRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
R2dbcRepositoryFactoryBean for the given repository interface. |
addRepositoryFactoryCustomizer, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentspublic R2dbcRepositoryFactoryBean(Class<? extends T> repositoryInterface)
R2dbcRepositoryFactoryBean for the given repository interface.repositoryInterface - must not be null.public void setDatabaseClient(DatabaseClient client)
DatabaseClient to be used.client - the client to setpublic void setDataAccessStrategy(ReactiveDataAccessStrategy dataAccessStrategy)
public void setEntityOperations(R2dbcEntityOperations operations)
operations - protected void setMappingContext(MappingContext<?,?> mappingContext)
setMappingContext in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>protected final RepositoryFactorySupport createRepositoryFactory()
createRepositoryFactory in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>protected Optional<QueryMethodEvaluationContextProvider> createDefaultQueryMethodEvaluationContextProvider(ListableBeanFactory beanFactory)
createDefaultQueryMethodEvaluationContextProvider in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>protected RepositoryFactorySupport getFactoryInstance(DatabaseClient client, ReactiveDataAccessStrategy dataAccessStrategy)
RepositoryFactorySupport instance.client - must not be null.dataAccessStrategy - must not be null.RepositoryFactorySupport.protected RepositoryFactorySupport getFactoryInstance(R2dbcEntityOperations operations)
RepositoryFactorySupport instance.operations - must not be null.RepositoryFactorySupport.public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.