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:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware
public class R2dbcRepositoryFactory
extends org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
Factory to create
R2dbcRepository instances.- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionR2dbcRepositoryFactory(R2dbcEntityOperations operations) Creates a newR2dbcRepositoryFactorygivenR2dbcEntityOperations.R2dbcRepositoryFactory(org.springframework.r2dbc.core.DatabaseClient databaseClient, ReactiveDataAccessStrategy dataAccessStrategy) -
Method Summary
Modifier and TypeMethodDescription<T,ID> RelationalEntityInformation<T, ID> getEntityInformation(Class<T> domainClass) protected Optional<org.springframework.data.repository.query.QueryLookupStrategy>getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) protected Class<?>getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) protected ObjectgetTargetRepository(org.springframework.data.repository.core.RepositoryInformation information) Methods inherited from class org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
setEvaluationContextProvider, validateMethods 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(org.springframework.r2dbc.core.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
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) - Specified by:
getRepositoryBaseClassin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getTargetRepository
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation information) - Specified by:
getTargetRepositoryin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy(@Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) - Overrides:
getQueryLookupStrategyin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getEntityInformation
- Specified by:
getEntityInformationin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-