Interface VersionedEntityDao<ID,​T extends AbstractEntity<ID>,​U extends VersionedEntity<ID,​T>>

  • Type Parameters:
    ID - the type of the ID of the base entity
    T - the type of the base entity
    U - 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 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: