Interface IdListFinder<M extends Serializable,K extends Serializable>

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IdListFinder<M extends Serializable,K extends Serializable> extends Serializable

Strategy for finding list of ids or other primary keys. This is useful for pages using pagination with some instance of PageByIdsFinder lazy loading the current page.

M
Record type of master list or NA if finding for the master list.
K
Record primary key or id type returned by this finder.
  • Method Summary

    Modifier and Type
    Method
    Description
    getIds(M selectedMaster)
    Returns list of ids of record according to implementing search criteria.
  • Method Details

    • getIds

      List<K> getIds(M selectedMaster) throws Exception
      Returns list of ids of record according to implementing search criteria. Null may be returned if nothing found.
      Parameters:
      selectedMaster - Selected record in master list or null for loading master list.
      Throws:
      Exception