E - generic type of the managed entity.ID - generic type of the primary key
of the entity.public class GenericRevisionedRepositoryImpl<E,ID extends Serializable> extends GenericRepositoryImpl<E,ID> implements GenericRevisionedRepository<E,ID>
GenericRevisionedRepository.entityInformation, entityManager| Constructor and Description |
|---|
GenericRevisionedRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<E,ID> entityInformation,
javax.persistence.EntityManager entityManager)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
E |
find(ID id,
Number revision) |
RevisionMetadata |
getLastRevisionHistoryMetadata(ID id) |
List<RevisionMetadata> |
getRevisionHistoryMetadata(ID id,
boolean lazy) |
forceIncrementModificationCounter, getEntityClass, newDslAlias, newDslDeleteClause, newDslDeleteClause, newDslQuery, newDslQuerycount, count, count, delete, deleteAll, deleteAll, deleteAllInBatch, deleteById, deleteInBatch, exists, existsById, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findById, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, saveAll, saveAndFlush, setRepositoryMethodMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRevisionHistoryMetadatadeleteByIds, find, getEntityClassdeleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllcount, delete, deleteAll, deleteAll, deleteById, existsById, findById, savecount, exists, findAll, findOnenewDslAlias, newDslDeleteClause, newDslDeleteClause, newDslQuery, newDslQueryforceIncrementModificationCounterpublic GenericRevisionedRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<E,ID> entityInformation, javax.persistence.EntityManager entityManager)
entityInformation - the JpaEntityInformation.entityManager - the JPA EntityManager.public E find(ID id, Number revision)
find in interface GenericRevisionedRepository<E,ID extends Serializable>id - the primary key.revision - the revision of the requested entity.id and revision.GenericRepository.find(Serializable),
GenericRevisionedRepository.getRevisionHistoryMetadata(Serializable, boolean),
RevisionMetadata.getRevision(),
RevisionedEntity.getRevision()public List<RevisionMetadata> getRevisionHistoryMetadata(ID id, boolean lazy)
getRevisionHistoryMetadata in interface GenericRevisionedRepository<E,ID extends Serializable>id - the primary key.lazy - - true to load the RevisionMetadata lazily, false otherwise (eager loading).List of RevisionMetadata for the historic
revisions of the
entity with the given id. In case no such history exists, an empty
List is returned.public RevisionMetadata getLastRevisionHistoryMetadata(ID id)
getLastRevisionHistoryMetadata in interface GenericRevisionedRepository<E,ID extends Serializable>id - the primary key.RevisionMetadata of the last historic
revision of the
entity with the given id. Will be null if no such history exists.Copyright © 2014–2019 devon4j-Team. All rights reserved.