类 ResultsetRowsStreaming<T extends ProtocolEntity>

  • 类型参数:
    T - ProtocolEntity type
    所有已实现的接口:
    ProtocolEntity, ResultsetRows, RowList, Iterator<Row>

    public class ResultsetRowsStreaming<T extends ProtocolEntity>
    extends AbstractResultsetRows
    implements ResultsetRows
    Provides streaming of Resultset rows. Each next row is consumed from the input stream only on next() call. Consumed rows are not cached thus we only stream result sets when they are forward-only, read-only, and the fetch size has been set to Integer.MIN_VALUE (rows are read one by one).
    • 构造器详细资料

    • 方法详细资料

      • isAfterLast

        public boolean isAfterLast()
        从接口复制的说明: ResultsetRows
        Returns true if we got the last element.
        指定者:
        isAfterLast 在接口中 ResultsetRows
        返回:
        true if after last row
      • isBeforeFirst

        public boolean isBeforeFirst()
        从接口复制的说明: ResultsetRows
        Returns if iteration has not occured yet.
        指定者:
        isBeforeFirst 在接口中 ResultsetRows
        返回:
        true if before first row
      • isEmpty

        public boolean isEmpty()
        从接口复制的说明: ResultsetRows
        Has no records.
        指定者:
        isEmpty 在接口中 ResultsetRows
        返回:
        true if no records
      • isFirst

        public boolean isFirst()
        从接口复制的说明: ResultsetRows
        Are we on the first row of the result set?
        指定者:
        isFirst 在接口中 ResultsetRows
        返回:
        true if on first row
      • isLast

        public boolean isLast()
        从接口复制的说明: ResultsetRows
        Are we on the last row of the result set?
        指定者:
        isLast 在接口中 ResultsetRows
        返回:
        true if on last row
      • getPosition

        public int getPosition()
        从接口复制的说明: RowList
        Returns the current position.
        指定者:
        getPosition 在接口中 RowList
        返回:
        the current row number
      • moveRowRelative

        public void moveRowRelative​(int rows)
        从接口复制的说明: ResultsetRows
        Moves the current position relative 'rows' from the current position.
        指定者:
        moveRowRelative 在接口中 ResultsetRows
        参数:
        rows - the relative number of rows to move
      • setCurrentRow

        public void setCurrentRow​(int rowNumber)
        从接口复制的说明: ResultsetRows
        Moves the current position in the result set to the given row number.
        指定者:
        setCurrentRow 在接口中 ResultsetRows
        参数:
        rowNumber - row to move to