org.springframework.data.jpa.repository.support
Class JpaRepositoryFactory
java.lang.Object
org.springframework.data.repository.support.RepositoryFactorySupport
org.springframework.data.jpa.repository.support.JpaRepositoryFactory
public class JpaRepositoryFactory
- extends org.springframework.data.repository.support.RepositoryFactorySupport
JPA specific generic repository factory.
- Author:
- Oliver Gierke
| Nested classes/interfaces inherited from class org.springframework.data.repository.support.RepositoryFactorySupport |
org.springframework.data.repository.support.RepositoryFactorySupport.QueryExecuterMethodInterceptor |
|
Method Summary |
protected org.springframework.data.repository.query.QueryLookupStrategy |
getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
|
protected Class<? extends org.springframework.data.repository.support.RepositorySupport> |
getRepositoryClass(Class<?> repositoryInterface)
|
protected
<T,ID extends Serializable>
org.springframework.data.repository.support.RepositorySupport<T,ID> |
|
getTargetRepository(Class<T> domainClass,
Class<?> repositoryInterface)
|
protected
<T,ID extends Serializable>
org.springframework.data.repository.support.RepositorySupport<T,ID> |
|
getTargetRepository(Class<T> domainClass,
Class<?> repositoryInterface,
javax.persistence.EntityManager entityManager)
Callback to create a RepositorySupport instance with the given
EntityManager |
| Methods inherited from class org.springframework.data.repository.support.RepositoryFactorySupport |
addRepositoryProxyPostProcessor, getRepository, getRepository, setQueryLookupStrategyKey, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaRepositoryFactory
public JpaRepositoryFactory(javax.persistence.EntityManager entityManager)
- Creates a new
JpaRepositoryFactory.
- Parameters:
entityManager - must not be null
getTargetRepository
protected <T,ID extends Serializable> org.springframework.data.repository.support.RepositorySupport<T,ID> getTargetRepository(Class<T> domainClass,
Class<?> repositoryInterface)
- Specified by:
getTargetRepository in class org.springframework.data.repository.support.RepositoryFactorySupport
getTargetRepository
protected <T,ID extends Serializable> org.springframework.data.repository.support.RepositorySupport<T,ID> getTargetRepository(Class<T> domainClass,
Class<?> repositoryInterface,
javax.persistence.EntityManager entityManager)
- Callback to create a
RepositorySupport instance with the given
EntityManager
- Type Parameters:
T - ID - - Parameters:
domainClass - entityManager -
- Returns:
- See Also:
getTargetRepository(Class, Class)
getRepositoryClass
protected Class<? extends org.springframework.data.repository.support.RepositorySupport> getRepositoryClass(Class<?> repositoryInterface)
- Specified by:
getRepositoryClass in class org.springframework.data.repository.support.RepositoryFactorySupport
getQueryLookupStrategy
protected org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
- Specified by:
getQueryLookupStrategy in class org.springframework.data.repository.support.RepositoryFactorySupport
Copyright © 2011 SpringSource. All Rights Reserved.