T
- the domain classID
- the type of the Id of the domain classN
- the type of the revisionpublic class EnversSearchRepositoryImpl<T,ID extends Serializable,N extends Number & Comparable<N>> extends SearchRepositoryImpl<T,ID> implements EnversSearchRepository<T,ID,N>
EnversSearchRepository
implementation.EnversSearchRepository
implementations:
<repositories base-class="org.appng.persistence.repository.EnversSearchRepositoryImpl">See 4.6.2. Adding custom behavior to all repositories from the reference Documentation for further details.
domainClass, entityManager
Constructor and Description |
---|
EnversSearchRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,ID> entityInformation,
javax.persistence.EntityManager entityManager) |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.history.Revision<N,T> |
findLastChangeRevision(ID id) |
org.springframework.data.history.Revision<N,T> |
findRevision(ID id,
N revisionNumber) |
org.springframework.data.history.Revisions<N,T> |
findRevisions(ID id) |
org.springframework.data.domain.Page<org.springframework.data.history.Revision<N,T>> |
findRevisions(ID id,
org.springframework.data.domain.Pageable pageable) |
protected Class<?> |
getRevisionEntity()
Can be overwritten by extending class to support alternative RevisionEntity implementations
|
createSearchQuery, detach, findAll, getHistory, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search, search
count, count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, exists, 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, setEscapeCharacter, setRepositoryMethodMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSearchQuery, detach, getHistory, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search, search
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
findAll
count, delete, delete, delete, deleteAll, exists, findOne, save
protected Class<?> getRevisionEntity()
public org.springframework.data.history.Revision<N,T> findRevision(ID id, N revisionNumber)
findRevision
in interface org.springframework.data.repository.history.RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
public org.springframework.data.history.Revision<N,T> findLastChangeRevision(ID id)
findLastChangeRevision
in interface org.springframework.data.repository.history.RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
public org.springframework.data.domain.Page<org.springframework.data.history.Revision<N,T>> findRevisions(ID id, org.springframework.data.domain.Pageable pageable)
findRevisions
in interface org.springframework.data.repository.history.RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
public org.springframework.data.history.Revisions<N,T> findRevisions(ID id)
findRevisions
in interface org.springframework.data.repository.history.RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
Copyright © 2011–2020 aiticon GmbH. All rights reserved.