public class JdbcRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
Constructor and Description |
---|
JdbcRepositoryFactory(DataAccessStrategy dataAccessStrategy,
RelationalMappingContext context,
JdbcConverter converter,
Dialect dialect,
ApplicationEventPublisher publisher,
NamedParameterJdbcOperations operations)
Creates a new
JdbcRepositoryFactory for the given DataAccessStrategy ,
RelationalMappingContext and ApplicationEventPublisher . |
Modifier and Type | Method and Description |
---|---|
<T,ID> org.springframework.data.repository.core.EntityInformation<T,ID> |
getEntityInformation(Class<T> aClass) |
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 repositoryMetadata) |
protected Object |
getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setEntityCallbacks(org.springframework.data.mapping.callback.EntityCallbacks entityCallbacks) |
void |
setQueryMappingConfiguration(QueryMappingConfiguration queryMappingConfiguration) |
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
public JdbcRepositoryFactory(DataAccessStrategy dataAccessStrategy, RelationalMappingContext context, JdbcConverter converter, Dialect dialect, ApplicationEventPublisher publisher, NamedParameterJdbcOperations operations)
JdbcRepositoryFactory
for the given DataAccessStrategy
,
RelationalMappingContext
and ApplicationEventPublisher
.dataAccessStrategy
- must not be null.context
- must not be null.converter
- must not be null.dialect
- must not be null.publisher
- must not be null.operations
- must not be null.public void setQueryMappingConfiguration(QueryMappingConfiguration queryMappingConfiguration)
queryMappingConfiguration
- must not be null consider QueryMappingConfiguration.EMPTY
instead.public <T,ID> org.springframework.data.repository.core.EntityInformation<T,ID> getEntityInformation(Class<T> aClass)
getEntityInformation
in class org.springframework.data.repository.core.support.RepositoryFactorySupport
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation)
getTargetRepository
in class org.springframework.data.repository.core.support.RepositoryFactorySupport
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata)
getRepositoryBaseClass
in class org.springframework.data.repository.core.support.RepositoryFactorySupport
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)
getQueryLookupStrategy
in class org.springframework.data.repository.core.support.RepositoryFactorySupport
public void setEntityCallbacks(org.springframework.data.mapping.callback.EntityCallbacks entityCallbacks)
entityCallbacks
- public void setBeanFactory(@Nullable BeanFactory beanFactory)
setBeanFactory
in interface BeanFactoryAware
setBeanFactory
in class org.springframework.data.repository.core.support.RepositoryFactorySupport
beanFactory
- the BeanFactory
used for looking up RowMapper
and
ResultSetExtractor
beans.Copyright © 2017–2023 Pivotal Software, Inc.. All rights reserved.