public class JpaRepositoryFactory extends RepositoryFactorySupport
RepositoryFactorySupport.ImplementationMethodExecutionInterceptor, RepositoryFactorySupport.QueryExecutorMethodInterceptor| Constructor and Description |
|---|
JpaRepositoryFactory(javax.persistence.EntityManager entityManager)
Creates a new
JpaRepositoryFactory. |
| Modifier and Type | Method and Description |
|---|---|
<T,ID> JpaEntityInformation<T,ID> |
getEntityInformation(Class<T> domainClass) |
protected ProjectionFactory |
getProjectionFactory(ClassLoader classLoader,
BeanFactory beanFactory) |
protected Optional<QueryLookupStrategy> |
getQueryLookupStrategy(QueryLookupStrategy.Key key,
EvaluationContextProvider evaluationContextProvider) |
protected Class<?> |
getRepositoryBaseClass(RepositoryMetadata metadata) |
protected Object |
getTargetRepository(RepositoryInformation information) |
protected SimpleJpaRepository<?,?> |
getTargetRepository(RepositoryInformation information,
javax.persistence.EntityManager entityManager)
Callback to create a
JpaRepository instance with the given EntityManager |
void |
setBeanClassLoader(ClassLoader classLoader) |
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validatepublic JpaRepositoryFactory(javax.persistence.EntityManager entityManager)
JpaRepositoryFactory.entityManager - must not be nullpublic void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface BeanClassLoaderAwaresetBeanClassLoader in class RepositoryFactorySupportprotected Object getTargetRepository(RepositoryInformation information)
getTargetRepository in class RepositoryFactorySupportprotected SimpleJpaRepository<?,?> getTargetRepository(RepositoryInformation information, javax.persistence.EntityManager entityManager)
JpaRepository instance with the given EntityManagerT - ID - entityManager - protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
getRepositoryBaseClass in class RepositoryFactorySupportprotected ProjectionFactory getProjectionFactory(ClassLoader classLoader, BeanFactory beanFactory)
getProjectionFactory in class RepositoryFactorySupportprotected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, EvaluationContextProvider evaluationContextProvider)
getQueryLookupStrategy in class RepositoryFactorySupportpublic <T,ID> JpaEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation in class RepositoryFactorySupportCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.