Class R2dbcRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
org.springframework.data.r2dbc.repository.support.R2dbcRepositoryFactory
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
Factory to create
R2dbcRepository
instances.- Author:
- Mark Paluch
-
Constructor Summary
ConstructorDescriptionR2dbcRepositoryFactory
(R2dbcEntityOperations operations) Creates a newR2dbcRepositoryFactory
givenR2dbcEntityOperations
.R2dbcRepositoryFactory
(DatabaseClient databaseClient, ReactiveDataAccessStrategy dataAccessStrategy) -
Method Summary
Modifier and TypeMethodDescription<T,
ID> RelationalEntityInformation<T, ID> getEntityInformation
(Class<T> domainClass) protected Optional<QueryLookupStrategy>
getQueryLookupStrategy
(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider) protected Class<?>
getRepositoryBaseClass
(RepositoryMetadata metadata) protected Object
getTargetRepository
(RepositoryInformation information) Methods inherited from class org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
setEvaluationContextProvider, validate
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass
-
Constructor Details
-
R2dbcRepositoryFactory
public R2dbcRepositoryFactory(DatabaseClient databaseClient, ReactiveDataAccessStrategy dataAccessStrategy) - Parameters:
databaseClient
- must not be null.dataAccessStrategy
- must not be null.
-
R2dbcRepositoryFactory
Creates a newR2dbcRepositoryFactory
givenR2dbcEntityOperations
.- Parameters:
operations
- must not be null.- Since:
- 1.1.3
-
-
Method Details
-
getRepositoryBaseClass
- Specified by:
getRepositoryBaseClass
in classRepositoryFactorySupport
-
getTargetRepository
- Specified by:
getTargetRepository
in classRepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider) - Overrides:
getQueryLookupStrategy
in classRepositoryFactorySupport
-
getEntityInformation
- Specified by:
getEntityInformation
in classRepositoryFactorySupport
-