类 SqlMultiResult

    • 构造器详细资料

      • SqlMultiResult

        public SqlMultiResult​(java.util.function.Supplier<SqlResult> resultStream)
        Constructor.
        参数:
        resultStream - Supplies the result stream depending on query type. Could be SqlSingleResult, SqlUpdateResult etc.
    • 方法详细资料

      • nextResult

        public boolean nextResult()
        从接口复制的说明: SqlResult
        Move to the next result. This method has no effect after returning false for the first time.
        指定者:
        nextResult 在接口中 SqlResult
        返回:
        was there a next result that we moved to?
      • finishStreaming

        public void finishStreaming()
        从接口复制的说明: ResultStreamer
        Finish the result streaming. This happens if a new command is started or the warnings/etc are requested. This is safe to call multiple times and only has an effect the first time.
        指定者:
        finishStreaming 在接口中 ResultStreamer
      • hasData

        public boolean hasData()
        从接口复制的说明: FetchResult
        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.
        指定者:
        hasData 在接口中 FetchResult<Row>
        返回:
        true if has data
      • getAffectedItemsCount

        public long getAffectedItemsCount()
        从接口复制的说明: Result
        Get the count of affected items from manipulation statements. This method forces internal buffering of the result.
        指定者:
        getAffectedItemsCount 在接口中 Result
        返回:
        count
      • getWarningsCount

        public int getWarningsCount()
        从接口复制的说明: Result
        Get the number of warnings generated during statement execution. This method forces internal buffering of the result.
        指定者:
        getWarningsCount 在接口中 Result
        返回:
        number of warnings
      • getWarnings

        public Iterator<Warning> getWarnings()
        从接口复制的说明: Result
        Get warnings generated during statement execution. This method forces internal buffering of the result.
        指定者:
        getWarnings 在接口中 Result
        返回:
        iterator over warnings
      • getColumnCount

        public int getColumnCount()
        从接口复制的说明: RowResult
        Count of columns.
        指定者:
        getColumnCount 在接口中 RowResult
        返回:
        count
      • count

        public long count()
        从接口复制的说明: FetchResult
        How many items are in this result? This method forces internal buffering of the entire result.
        指定者:
        count 在接口中 FetchResult<Row>
        返回:
        number of elements in result
      • fetchAll

        public List<Row> fetchAll()
        从接口复制的说明: FetchResult
        Create a list of all elements in the result forcing internal buffering.
        指定者:
        fetchAll 在接口中 FetchResult<Row>
        返回:
        list of result elements