public class JpaRepositoryFactory extends RepositoryFactorySupport
RepositoryFactorySupport.QueryExecutorMethodInterceptor| Constructor and Description |
|---|
JpaRepositoryFactory(javax.persistence.EntityManager entityManager)
Creates a new
JpaRepositoryFactory. |
| Modifier and Type | Method and Description |
|---|---|
<T,ID extends Serializable> |
getEntityInformation(Class<T> domainClass) |
protected ProjectionFactory |
getProjectionFactory(ClassLoader classLoader,
BeanFactory beanFactory) |
protected QueryLookupStrategy |
getQueryLookupStrategy(QueryLookupStrategy.Key key,
EvaluationContextProvider evaluationContextProvider) |
protected Class<?> |
getRepositoryBaseClass(RepositoryMetadata metadata) |
protected Object |
getTargetRepository(RepositoryInformation information) |
protected <T,ID extends Serializable> |
getTargetRepository(RepositoryInformation information,
javax.persistence.EntityManager entityManager)
Callback to create a
JpaRepository instance with the given EntityManager |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setEscapeCharacter(EscapeCharacter escapeCharacter)
Configures the escape character to be used for like-expressions created for derived queries.
|
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryLookupStrategy, getQueryMethods, getRepository, getRepository, getRepositoryInformation, getRepositoryMetadata, 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 RepositoryFactorySupportpublic void setEscapeCharacter(EscapeCharacter escapeCharacter)
escapeCharacter - a character used for escaping in certain like expressions.protected Object getTargetRepository(RepositoryInformation information)
getTargetRepository in class RepositoryFactorySupportprotected <T,ID extends Serializable> SimpleJpaRepository<?,?> getTargetRepository(RepositoryInformation information, javax.persistence.EntityManager entityManager)
JpaRepository instance with the given EntityManagerT - ID - entityManager - #getTargetRepository(RepositoryMetadata)protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
getRepositoryBaseClass in class RepositoryFactorySupportprotected ProjectionFactory getProjectionFactory(ClassLoader classLoader, BeanFactory beanFactory)
getProjectionFactory in class RepositoryFactorySupportprotected QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key, EvaluationContextProvider evaluationContextProvider)
getQueryLookupStrategy in class RepositoryFactorySupportpublic <T,ID extends Serializable> JpaEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation in class RepositoryFactorySupportCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.