public class JpaRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.RepositoryFactorySupport.ImplementationMethodExecutionInterceptor, org.springframework.data.repository.core.support.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 Optional<org.springframework.data.repository.query.QueryLookupStrategy> |
getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key,
org.springframework.data.repository.query.EvaluationContextProvider evaluationContextProvider) |
protected Class<?> |
getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) |
protected Object |
getTargetRepository(org.springframework.data.repository.core.RepositoryInformation information) |
protected <T,ID extends Serializable> |
getTargetRepository(org.springframework.data.repository.core.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 org.springframework.beans.factory.BeanClassLoaderAwaresetBeanClassLoader in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation information)
getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected <T,ID extends Serializable> SimpleJpaRepository<?,?> getTargetRepository(org.springframework.data.repository.core.RepositoryInformation information, javax.persistence.EntityManager entityManager)
JpaRepository instance with the given EntityManagerT - ID - entityManager - protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy(@Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.EvaluationContextProvider evaluationContextProvider)
getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupportpublic <T,ID> JpaEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupportCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.