Code example for ResultSet

Methods: getRow, last

0
      return rowCount;
    } 
 
    try 
    { 
      if (resultset.last())
      { 
        rowCount = resultset.getRow();
        if (rowCount == -1)
        { 
          rowCount = 0;
        } 
      } 
      else 
      { 
        rowCount = 0;
      } 
    } 
    catch (SQLException sqle)
    { 
      //Log.debug ("GetRowCount failed, returning 0 rows", sqle);