Example usage for javax.sql RowSet getRow

List of usage examples for javax.sql RowSet getRow

Introduction

In this page you can find the example usage for javax.sql RowSet getRow.

Prototype

int getRow() throws SQLException;

Source Link

Document

Retrieves the current row number.

Usage

From source file:Main.java

  static void displayRowSet(RowSet rs) throws SQLException {
  while (rs.next()) {
    System.out.println(rs.getRow() + " - " + rs.getString("col1") + ":" + rs.getInt("col2") + ":"
        + rs.getString("col3"));
  }/*from   w  ww  .  ja va2  s.c  o  m*/
}