Interface QueryResultLoader<T>

Type Parameters:
T - Type of the result
All Known Implementing Classes:
BaseEntityQueryResultLoader, NonEntityQueryResultLoader

public interface QueryResultLoader<T>
Loads result from a query result row.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<T>
    If the loader performs any aggregation, use this to method to get the last pending result.
    loadResult(ResultRow resultRow)
    Loads the result from the given result row.
  • Method Details

    • loadResult

      Optional<T> loadResult(ResultRow resultRow)
      Loads the result from the given result row.
      Parameters:
      resultRow - Result row to load from
      Returns:
      Loaded value, if present
    • loadLastPending

      default Optional<T> loadLastPending()
      If the loader performs any aggregation, use this to method to get the last pending result.
      Returns:
      Last pending value