private int count(Database conn) throws SQLException {
  Statement stmt=null;
  ResultSet res=null;
  int taskRows=0;
  try {
    stmt=conn.createStatement();
    res=stmt.executeQuery(allSeqnoQuery);
    while (res.next()) {
      taskRows++;
    }
  }
  finally {
    connectionManager.close(res);
    connectionManager.close(stmt);
  }
  return taskRows;
}

private int count ( Database conn ) throws SQLException { Statement stmt = null ; ResultSet res = null ; int taskRows = 0 ; try { stmt = conn . createStatement ( ) ; res = stmt . executeQuery ( allSeqnoQuery ) ; while ( res . next ( ) ) { taskRows ++ ; } } finally { connectionManager . close ( res ) ; connectionManager . close ( stmt ) ; } return taskRows ; }
returns the count of rows in the trep_commit_seqno table .
