Package io.ebean

Interface SqlQuery.TypeQuery<T>

Type Parameters:
T - The type of the scalar values
Enclosing interface:
SqlQuery

public static interface SqlQuery.TypeQuery<T>
Query mapping to single scalar values.
  • Method Summary

    Modifier and Type Method Description
    void findEach​(Consumer<T> consumer)
    Find streaming the result effectively consuming a row at a time.
    List<T> findList()
    Return the list of values.
    T findOne()
    Return the single value.
    Optional<T> findOneOrEmpty()
    Return the single value that is optional.
  • Method Details

    • findOne

      @Nullable T findOne()
      Return the single value.
    • findOneOrEmpty

      Return the single value that is optional.
    • findList

      Return the list of values.
    • findEach

      void findEach​(Consumer<T> consumer)
      Find streaming the result effectively consuming a row at a time.