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 RepositoryFactorySupport
JPA specific generic repository factory.
- Author:
- Oliver Gierke
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(RepositoryMetadata metadata)
- Specified by:
getTargetRepository
in class RepositoryFactorySupport
getTargetRepository
protected <T,ID extends Serializable> JpaRepository<?,?> getTargetRepository(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(RepositoryMetadata metadata)
- Specified by:
getRepositoryBaseClass
in class RepositoryFactorySupport
getQueryLookupStrategy
protected QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key)
- Overrides:
getQueryLookupStrategy
in class RepositoryFactorySupport
getEntityInformation
public <T,ID extends Serializable> JpaEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
- Specified by:
getEntityInformation
in class RepositoryFactorySupport
Copyright © 2011-2012 SpringSource. All Rights Reserved.