E - generic type of the managed entity. Typically implementing
RevisionedPersistenceEntity.ID - generic type of the primary key of the entity.public interface GenericRevisionedRepository<E,ID extends Serializable> extends GenericRepository<E,ID>
GenericRepository with additional support for Audited| Modifier and Type | Method and Description |
|---|---|
E |
find(ID id,
Number revision) |
RevisionMetadata |
getLastRevisionHistoryMetadata(ID id) |
default List<RevisionMetadata> |
getRevisionHistoryMetadata(ID id) |
List<RevisionMetadata> |
getRevisionHistoryMetadata(ID id,
boolean lazy) |
deleteByIds, 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, newDslQueryforceIncrementModificationCounterE find(ID id, Number revision)
id - the primary key.revision - the revision of the requested entity.id and revision.GenericRepository.find(Serializable),
getRevisionHistoryMetadata(Serializable, boolean),
RevisionMetadata.getRevision(),
RevisionedEntity.getRevision()default List<RevisionMetadata> getRevisionHistoryMetadata(ID id)
id - the primary key.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.List<RevisionMetadata> getRevisionHistoryMetadata(ID id, boolean lazy)
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.RevisionMetadata getLastRevisionHistoryMetadata(ID id)
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.