Class PgResultSet.CurrentRow

java.lang.Object
org.postgresql.jdbc.PgResultSet.CurrentRow
Enclosing class:
PgResultSet

protected static final class PgResultSet.CurrentRow extends Object
A wrapper that contains the current row and its fields. It is useful if we want the ResultSet to switch parsing a new row on top of the current one.
  • Field Details

  • Constructor Details

    • CurrentRow

      CurrentRow(Field[] fields)
  • Method Details

    • switchTo

      Switch to a new row.
      Note: make sure to call consume() after you are done.
      Parameters:
      fields - the fields of the new row
      row - the data of new row
    • consume

      void consume()
      Consumes the row at the top of the stack if more than one is present.
    • fields

      Field[] fields()
    • setRow

      void setRow(Tuple row)
    • row

      Optional<Tuple> row()