パッケージ org.nkjmlab.sorm4j.result

インタフェース LazyResultSet<T>

  • 型パラメータ:
    T -

    public interface LazyResultSet<T>
    A object wraps ResultSet.
    作成者:
    nkjm
    • メソッドの詳細

      • one

        T one()
        Returns the row in the result set and close. If the row is not unique, Exception is thrown.
        戻り値:
      • first

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

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

        Map<String,​Object> firstMap()
        Returns the first row in the result set and close.
        戻り値:
      • toMapList

        List<Map<String,​Object>> toMapList()
        Returns results in a List of Map<String, Object>.
        戻り値:
      • 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.
      • stream

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

        void close()