org.springframework.data.jpa.repository.support
Class JpaRepositorySupport<T,ID extends Serializable>
java.lang.Object
org.springframework.data.repository.support.RepositorySupport<T,ID>
org.springframework.data.jpa.repository.support.JpaRepositorySupport<T,ID>
- All Implemented Interfaces:
- JpaRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>
- Direct Known Subclasses:
- SimpleJpaRepository
public abstract class JpaRepositorySupport<T,ID extends Serializable>
- extends org.springframework.data.repository.support.RepositorySupport<T,ID>
- implements JpaRepository<T,ID>
Base class to implement JPA CRUD repository implementations. Will use a
JpaAnnotationEntityInformation
by default but prefer a
PersistableEntityInformation
in case the type to be handled
implements Persistable
.
- Author:
- Oliver Gierke
Method Summary |
protected org.springframework.data.repository.support.IsNewAware |
createIsNewStrategy(Class<?> domainClass)
|
Methods inherited from class org.springframework.data.repository.support.RepositorySupport |
getDomainClass, getIsNewStrategy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository |
count, delete, delete, deleteAll, deleteInBatch, exists, findAll, findAll, findAll, findAll, findAll, findById, findOne, flush, save, save, saveAndFlush |
JpaRepositorySupport
public JpaRepositorySupport(Class<T> domainClass)
- Parameters:
domainClass
-
createIsNewStrategy
protected org.springframework.data.repository.support.IsNewAware createIsNewStrategy(Class<?> domainClass)
- Specified by:
createIsNewStrategy
in class org.springframework.data.repository.support.RepositorySupport<T,ID extends Serializable>
Copyright © 2011 SpringSource. All Rights Reserved.