接口 ResultsetRows

    • 方法详细资料

      • addRow

        default void addRow​(Row row)
        Adds a row.
        参数:
        row - the row to add
      • afterLast

        default void afterLast()
        Moves to after last.
      • beforeFirst

        default void beforeFirst()
        Moves to before first.
      • beforeLast

        default void beforeLast()
        Moves to before last.
      • close

        default void close()
        We're done.
      • isAfterLast

        boolean isAfterLast()
        Returns true if we got the last element.
        返回:
        true if after last row
      • isBeforeFirst

        boolean isBeforeFirst()
        Returns if iteration has not occured yet.
        返回:
        true if before first row
      • isDynamic

        default boolean isDynamic()
        Returns true if the result set is dynamic. This means that move back and move forward won't work because we do not hold on to the records.
        返回:
        true if this result set is streaming from the server
      • isEmpty

        default boolean isEmpty()
        Has no records.
        返回:
        true if no records
      • isFirst

        default boolean isFirst()
        Are we on the first row of the result set?
        返回:
        true if on first row
      • isLast

        default boolean isLast()
        Are we on the last row of the result set?
        返回:
        true if on last row
      • moveRowRelative

        default void moveRowRelative​(int rows)
        Moves the current position relative 'rows' from the current position.
        参数:
        rows - the relative number of rows to move
      • setCurrentRow

        default void setCurrentRow​(int rowNumber)
        Moves the current position in the result set to the given row number.
        参数:
        rowNumber - row to move to
      • setOwner

        void setOwner​(ResultsetRowsOwner rs)
        Set the result set that 'owns' this RowData
        参数:
        rs - the result set that 'owns' this RowData
      • wasEmpty

        boolean wasEmpty()
        Did this result set have no rows?
        返回:
        true if the result set did not have rows
      • setMetadata

        void setMetadata​(ColumnDefinition columnDefinition)
        Sometimes the driver doesn't have metadata until after the statement has the result set in-hand (because it's cached), so it can call this to set it after the fact.
        参数:
        columnDefinition - field-level metadata for the result set