Interface ListFinder<M 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 ListFinder<M extends Serializable,T extends Serializable>
extends Serializable
Strategy for finding a sorted list. Items are usually Data Transfer Objects describing a record.
- M
- Record type of master list or NA if finding for the master list.
- T
- Record type returned by this finder.
-
Method Summary
Modifier and TypeMethodDescriptionReturns list, sorted if needed, of Value Objects.default boolean
Returns true if finder eager loads any optional details of each item.
-
Method Details
-
getList
Returns list, sorted if needed, of Value Objects. For slave lists, these are related to the currently selected record of the master list. Null may be returned if nothing found.- Parameters:
selectedMaster
- Selected record in master list or null for loading master list.- 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.
-