インタフェース LazyResultSet<T>

型パラメータ:
T -
すべてのスーパーインタフェース:
AutoCloseable, Iterable<T>

public interface LazyResultSet<T> extends Iterable<T>, AutoCloseable
A object wraps ResultSet.
作成者:
nkjm
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    void
    Closes this result set.
    Returns the first row in the result set and close.
    Iterates all the rows of the result set.
    one()
    Returns the object of one row from query and close.
    Streams all the rows of the result set.
    Returns results in a List.
    toList(RowMapper<T> rowMapper)
    Returns the results converted by the given row mapper in a List.

    インタフェースから継承されたメソッド java.lang.Iterable

    forEach, spliterator
  • メソッドの詳細

    • close

      void close()
      Closes this result set. After call this method, operations to this object is invalid.
      定義:
      close インタフェース内 AutoCloseable
    • first

      T first()
      Returns the first row in the result set and close.
      戻り値:
    • iterator

      Iterator<T> iterator()
      Iterates all the rows of the result set. The Iterator must be closed to release database resources. The iterator is closed automatically if hasNext is false.
      定義:
      iterator インタフェース内 Iterable<T>
    • one

      T one()
      Returns the object of one row from query and close. If the row is not unique, Exception is thrown.
      戻り値:
    • stream

      Stream<T> stream()
      Streams all the rows of the result set. The stream must be closed to release database resources.
    • toList

      List<T> toList()
      Returns results in a List.
      戻り値:
    • toList

      List<T> toList(RowMapper<T> rowMapper)
      Returns the results converted by the given row mapper in a List.
      戻り値: