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, EnvironmentAware, EnvironmentCapable
Factory to create
R2dbcRepository instances.- Author:
- Mark Paluch, Jens Schauder, Marcin Grzejszczak
-
Constructor Summary
ConstructorsConstructorDescriptionR2dbcRepositoryFactory(R2dbcEntityOperations operations) Creates a newR2dbcRepositoryFactorygivenR2dbcEntityOperations.R2dbcRepositoryFactory(DatabaseClient databaseClient, ReactiveDataAccessStrategy dataAccessStrategy) -
Method Summary
Modifier and TypeMethodDescriptiongetEntityInformation(RepositoryMetadata metadata) protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, ValueExpressionDelegate valueExpressionDelegate) protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata) protected ObjectgetTargetRepository(RepositoryInformation information) Methods inherited from class ReactiveRepositoryFactorySupport
validateMethods inherited from class RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getEntityInformation, getEnvironment, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEnvironment, setEvaluationContextProvider, setExposeMetadata, 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 newR2dbcRepositoryFactorygivenR2dbcEntityOperations.- Parameters:
operations- must not be null.- Since:
- 1.1.3
-
-
Method Details
-
getRepositoryBaseClass
- Specified by:
getRepositoryBaseClassin classRepositoryFactorySupport
-
getTargetRepository
- Specified by:
getTargetRepositoryin classRepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, ValueExpressionDelegate valueExpressionDelegate) - Overrides:
getQueryLookupStrategyin classReactiveRepositoryFactorySupport
-
getEntityInformation
- Overrides:
getEntityInformationin classRepositoryFactorySupport
-