private void openRows(){
  String statement="select * from " + currentTable.getEntityType();
  try {
    currentStatement=connection.prepareStatement(statement,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    currentRow=currentStatement.executeQuery();
    if (!currentRow.first()) {
      nextTable();
    }
  }
 catch (  SQLException e) {
    closeRows();
    logger.error("Error in statement " + statement);
    throw new RuntimeException(e);
  }
}

private void openRows ( ) { String statement = "select * from " + currentTable . getEntityType ( ) ; try { currentStatement = connection . prepareStatement ( statement , ResultSet . TYPE_SCROLL_INSENSITIVE , ResultSet . CONCUR_UPDATABLE ) ; currentRow = currentStatement . executeQuery ( ) ; if ( ! currentRow . first ( ) ) { nextTable ( ) ; } } catch ( SQLException e ) { closeRows ( ) ; logger . error ( "Error in statement " + statement ) ; throw new RuntimeException ( e ) ; } }
open connection to the current table . query for table rows and maintain the statement and result set in memory .
