Interface PageExtensionAssembler<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 PageExtensionAssembler<T extends Serializable> extends Serializable

Transfer Object Assembler for lazy loading additional data needed for a search results page that a base record list finder (instance of ListFinder) does not find.

T
Record type.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Attaches additional data to each record for a requested page that the base record list finder did not load.
    default boolean
    Returns true if finder eager loads any optional detail extensions of each item.
  • Method Details

    • assemblePageExtensions

      void assemblePageExtensions(Collection<T> items) throws Exception
      Attaches additional data to each record for a requested page that the base record list finder did not load.
      Throws:
      Exception
    • getLoadsDetails

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