public class JdbcRepositoryFactory extends RepositoryFactorySupport
RepositoryFactorySupport.ImplementationMethodExecutionInterceptor
Constructor and Description |
---|
JdbcRepositoryFactory(DataAccessStrategy dataAccessStrategy,
RelationalMappingContext context,
JdbcConverter converter,
ApplicationEventPublisher publisher,
NamedParameterJdbcOperations operations)
Creates a new
JdbcRepositoryFactory for the given DataAccessStrategy ,
RelationalMappingContext and ApplicationEventPublisher . |
Modifier and Type | Method and Description |
---|---|
<T,ID> EntityInformation<T,ID> |
getEntityInformation(Class<T> aClass) |
protected Optional<QueryLookupStrategy> |
getQueryLookupStrategy(QueryLookupStrategy.Key key,
QueryMethodEvaluationContextProvider evaluationContextProvider) |
protected Class<?> |
getRepositoryBaseClass(RepositoryMetadata repositoryMetadata) |
protected Object |
getTargetRepository(RepositoryInformation repositoryInformation) |
void |
setEntityCallbacks(EntityCallbacks entityCallbacks) |
void |
setQueryMappingConfiguration(QueryMappingConfiguration queryMappingConfiguration) |
void |
setRowMapperMap(RowMapperMap rowMapperMap)
Deprecated.
|
addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
public JdbcRepositoryFactory(DataAccessStrategy dataAccessStrategy, RelationalMappingContext context, JdbcConverter converter, 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.publisher
- must not be null.operations
- must not be null.public void setQueryMappingConfiguration(QueryMappingConfiguration queryMappingConfiguration)
queryMappingConfiguration
- must not be null consider QueryMappingConfiguration.EMPTY
instead.@Deprecated public void setRowMapperMap(RowMapperMap rowMapperMap)
setQueryMappingConfiguration(QueryMappingConfiguration)
insteadrowMapperMap
- must not be null consider RowMapperMap.EMPTY
instead.public <T,ID> EntityInformation<T,ID> getEntityInformation(Class<T> aClass)
getEntityInformation
in class RepositoryFactorySupport
protected Object getTargetRepository(RepositoryInformation repositoryInformation)
getTargetRepository
in class RepositoryFactorySupport
protected Class<?> getRepositoryBaseClass(RepositoryMetadata repositoryMetadata)
getRepositoryBaseClass
in class RepositoryFactorySupport
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider)
getQueryLookupStrategy
in class RepositoryFactorySupport
public void setEntityCallbacks(EntityCallbacks entityCallbacks)
entityCallbacks
- Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.