private void ensureRowCorrect() throws SQLException {
  if (row != resultSet.getRow()) {
    throw new RuntimeException("DatabaseDataRow: ResultSet was modified since creation of row!");
  }
}

private void ensureRowCorrect ( ) throws SQLException { if ( row != resultSet . getRow ( ) ) { throw new RuntimeException ( "DatabaseDataRow: ResultSet was modified since creation of row!" ) ; } }
ensures that the current row is the current row of the result set .
