接口 FetchResult<T>
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 longcount()How many items are in this result?List<T>fetchAll()Create a list of all elements in the result forcing internal buffering.default TfetchOne()Fetch the next element.default booleanhasData()Does this result have data?default Iterator<T>iterator()Create an iterator over all elements of the result.-
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
从接口继承的方法 java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
方法详细资料
-
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
-
count
long count()
How many items are in this result? This method forces internal buffering of the entire result.- 返回:
- number of elements in result
-
-