Module io.ebean.api
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 Detail

      • findOne

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

        Optional<T> findOneOrEmpty()
        Return the single value that is optional.
      • findList

        List<T> findList()
        Return the list of values.
      • findEach

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