接口 FetchResult<T>

    • 方法详细资料

      • hasData

        default boolean hasData()
        Does this result have data? This indicates that the result was produced from a data-returning query. It does not indicate whether there are more than 0 rows in the result.
        返回:
        true if has data
      • fetchOne

        default T fetchOne()
        Fetch the next element.
        返回:
        element of type T
      • iterator

        default Iterator<T> iterator()
        Create an iterator over all elements of the result.
        指定者:
        iterator 在接口中 Iterable<T>
        返回:
        iterator over result items
      • count

        long count()
        How many items are in this result? This method forces internal buffering of the entire result.
        返回:
        number of elements in result
      • fetchAll

        List<T> fetchAll()
        Create a list of all elements in the result forcing internal buffering.
        返回:
        list of result elements