Interface PageByIdsFinder<K extends Serializable,T 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 PageByIdsFinder<K extends Serializable,T extends Serializable> extends Serializable

Strategy for lazy loading a page of records to display from their ids (or other unique key), typically found by a paired IdListFinder instance.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns items from their ids.
    default boolean
    Returns true if finder eager loads any optional details of each item.
  • Method Details

    • getItems

      Collection<T> getItems(Collection<K> keys) throws Exception
      Returns items from their ids. If any records are missing, the successfully retrieved ones must still be returned. No item should ever be null.
      Throws:
      Exception
    • getLoadsDetails

      default boolean getLoadsDetails()
      Returns true if finder eager loads any optional details of each item. This is usually false as loading details results in poor performance or there are no optional details.