public class JpaRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
| 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 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 <T,ID extends Serializable> |
getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata,
javax.persistence.EntityManager entityManager)
Callback to create a
JpaRepository instance with the given EntityManager |
public JpaRepositoryFactory(javax.persistence.EntityManager entityManager)
JpaRepositoryFactory.entityManager - must not be nullprotected Object getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)
getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected <T,ID extends Serializable> JpaRepository<?,?> getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata, javax.persistence.EntityManager entityManager)
JpaRepository instance with the given EntityManagerT - ID - entityManager - getTargetRepository(RepositoryMetadata)protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupportpublic <T,ID extends Serializable> JpaEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupportCopyright © 2011-2012-2012 SpringSource. All Rights Reserved.