Spring Data Commons

org.springframework.data.repository.history
Interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>


@NoRepositoryBean
public interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>

A repository which can access entities held in a variety of Revisions.

Author:
Oliver Gierke, Philipp Huegelmeyer

Method Summary
 Revision<N,T> findLastChangeRevision(ID id)
          Returns the revision of the entity it was last changed in.
 Revisions<N,T> findRevisions(ID id)
          Returns all Revisions of an entity with the given id.
 Page<Revision<N,T>> findRevisions(ID id, Pageable pageable)
          Returns a Page of revisions for the entity with the given id.
 

Method Detail

findLastChangeRevision

Revision<N,T> findLastChangeRevision(ID id)
Returns the revision of the entity it was last changed in.

Parameters:
id - must not be null.
Returns:

findRevisions

Revisions<N,T> findRevisions(ID id)
Returns all Revisions of an entity with the given id.

Parameters:
id - must not be null.
Returns:

findRevisions

Page<Revision<N,T>> findRevisions(ID id,
                                  Pageable pageable)
Returns a Page of revisions for the entity with the given id.

Parameters:
id - must not be null.
pageable -
Returns:

Spring Data Commons

Copyright © 2012. All Rights Reserved.