public class EnversRevisionRepositoryImpl<T,ID extends Serializable,N extends Number & Comparable<N>> extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID> implements EnversRevisionRepository<T,ID,N>
Constructor and Description |
---|
EnversRevisionRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> entityInformation,
RevisionEntityInformation revisionEntityInformation,
javax.persistence.EntityManager entityManager)
Creates a new
EnversRevisionRepositoryImpl using the given JpaEntityInformation ,
RevisionEntityInformation and EntityManager . |
Modifier and Type | Method and Description |
---|---|
Revision<N,T> |
findLastChangeRevision(ID id) |
Revision<N,T> |
findRevision(ID id,
N revisionNumber)
Returns the entity with the given ID in the given revision number.
|
Revisions<N,T> |
findRevisions(ID id) |
Page<Revision<N,T>> |
findRevisions(ID id,
Pageable pageable) |
count, count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, exists, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, save, saveAndFlush, setRepositoryMethodMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
findAll
count, delete, delete, delete, deleteAll, exists, findOne, save
count, exists, findAll, findOne
public EnversRevisionRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> entityInformation, RevisionEntityInformation revisionEntityInformation, javax.persistence.EntityManager entityManager)
EnversRevisionRepositoryImpl
using the given JpaEntityInformation
,
RevisionEntityInformation
and EntityManager
.entityInformation
- must not be null.revisionEntityInformation
- must not be null.entityManager
- must not be null.public Revision<N,T> findLastChangeRevision(ID id)
findLastChangeRevision
in interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
public Revision<N,T> findRevision(ID id, N revisionNumber)
EnversRevisionRepository
findRevision
in interface EnversRevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
findRevision
in interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
id
- must not be null.revisionNumber
- must not be null.public Revisions<N,T> findRevisions(ID id)
findRevisions
in interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
public Page<Revision<N,T>> findRevisions(ID id, Pageable pageable)
findRevisions
in interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.