Package | Description |
---|---|
org.springframework.data.history |
Basic interfaces and value objects for histography API.
|
org.springframework.data.repository.history |
API for repositories using historiography.
|
Modifier and Type | Method and Description |
---|---|
Revision<N,T> |
Revisions.getLatestRevision()
Returns the latest revision of the revisions backing the wrapper independently of the order.
|
static <N extends Number & Comparable<N>,T> |
Revision.of(RevisionMetadata<N> metadata,
T entity)
Creates a new
Revision for the given RevisionMetadata and entity. |
Modifier and Type | Method and Description |
---|---|
List<Revision<N,T>> |
Revisions.getContent()
Returns the content of the
Revisions instance. |
Iterator<Revision<N,T>> |
Revisions.iterator() |
Modifier and Type | Method and Description |
---|---|
int |
Revision.compareTo(Revision<N,?> that) |
Modifier and Type | Method and Description |
---|---|
static <N extends Number & Comparable<N>,T> |
Revisions.of(List<? extends Revision<N,T>> revisions)
|
Modifier and Type | Method and Description |
---|---|
Optional<Revision<N,T>> |
RevisionRepository.findLastChangeRevision(ID id)
Returns the revision of the entity it was last changed in.
|
Optional<Revision<N,T>> |
RevisionRepository.findRevision(ID id,
N revisionNumber)
Returns the entity with the given ID in the given revision number.
|
Page<Revision<N,T>> |
RevisionRepository.findRevisions(ID id,
Pageable pageable)
Returns a
Page of revisions for the entity with the given id. |
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.