org.springframework.data.jpa.repository.support
Class JpaRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.jpa.repository.support.JpaRepositoryFactory
public class JpaRepositoryFactory
- extends org.springframework.data.repository.core.support.RepositoryFactorySupport
JPA specific generic repository factory.
- Author:
- Oliver Gierke
| Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport |
org.springframework.data.repository.core.support.RepositoryFactorySupport.QueryExecutorMethodInterceptor |
|
Method Summary |
|
getEntityInformation(Class<T> domainClass)
|
protected org.springframework.data.repository.query.QueryLookupStrategy |
getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
|
protected Class<?> |
getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
|
protected Object |
getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)
|
protected
|
getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata,
javax.persistence.EntityManager entityManager)
Callback to create a JpaRepository instance with the given EntityManager |
| Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport |
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryMethods, getRepository, getRepository, getRepositoryInformation, setNamedQueries, 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 Object getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)
- Specified by:
getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupport
getTargetRepository
protected <T,ID extends Serializable> JpaRepository<?,?> getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata,
javax.persistence.EntityManager entityManager)
- Callback to create a
JpaRepository instance with the given EntityManager
- Type Parameters:
T - ID - - Parameters:
entityManager -
- Returns:
- See Also:
getTargetRepository(RepositoryMetadata)
getRepositoryBaseClass
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
- Specified by:
getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupport
getQueryLookupStrategy
protected org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
- Overrides:
getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupport
getEntityInformation
public <T,ID extends Serializable> JpaEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
- Specified by:
getEntityInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupport
Copyright © 2011-2012-2013 SpringSource. All Rights Reserved.