Package com.ocs.dynamo.envers.dao
Interface VersionedEntityDao<ID,T extends AbstractEntity<ID>,U extends VersionedEntity<ID,T>>
-
- Type Parameters:
ID- the type of the ID of the base entityT- the type of the base entityU- the type of the versioned entity
- All Superinterfaces:
BaseDao<RevisionKey<ID>,U>
- All Known Implementing Classes:
VersionedEntityDaoImpl
public interface VersionedEntityDao<ID,T extends AbstractEntity<ID>,U extends VersionedEntity<ID,T>> extends BaseDao<RevisionKey<ID>,U>
Interface for Data Access Object for versioned entity- Author:
- bas.rutten
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NumberfindRevisionNumber(LocalDateTime ldt)Finds the revision number corresponding to a certain dateList<U>findRevisions(ID id)Returns a list of revisions for an entity-
Methods inherited from interface com.ocs.dynamo.dao.BaseDao
count, count, delete, delete, fetch, fetch, fetch, fetchById, fetchByIds, fetchByIds, fetchByUniqueProperty, find, find, findAll, findAll, findById, findByUniqueProperty, findDistinct, findDistinctInCollectionTable, findIds, findIds, findSelect, findSelect, flushAndClear, getEntityClass, save, save
-
-
-
-
Method Detail
-
findRevisions
List<U> findRevisions(ID id)
Returns a list of revisions for an entity- Parameters:
id- the ID of the original entity- Returns:
- a list of revisions of the entity
-
findRevisionNumber
Number findRevisionNumber(LocalDateTime ldt)
Finds the revision number corresponding to a certain date- Parameters:
ldt- the date- Returns:
-
-