类 ResultsetRowsCursor

  • 所有已实现的接口:
    ProtocolEntity, ResultsetRows, RowList, Iterator<Row>

    public class ResultsetRowsCursor
    extends AbstractResultsetRows
    implements ResultsetRows
    Model for result set data backed by a cursor (see http://dev.mysql.com/doc/refman/5.7/en/cursors.html and SERVER_STATUS_CURSOR_EXISTS flag description on http://dev.mysql.com/doc/internals/en/status-flags.html). Only works for forward-only result sets (but still works with updatable concurrency).
    • 构造器详细资料

      • ResultsetRowsCursor

        public ResultsetRowsCursor​(NativeProtocol ioChannel,
                                   ColumnDefinition columnDefinition)
        Creates a new cursor-backed row provider.
        参数:
        ioChannel - connection to the server.
        columnDefinition - field-level metadata for the results that this cursor covers.
    • 方法详细资料

      • 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
      • getPosition

        public int getPosition()
        从接口复制的说明: RowList
        Returns the current position.
        指定者:
        getPosition 在接口中 RowList
        返回:
        the current row number
      • 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
      • 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