}
}
void replaceAllRecords(int records) {
RecordIterator newRecords = new RecordIterator(records);
try {
connection.createStatement().execute("delete from " + table());
} catch (SQLException sqlx) {
dealWithSQLException(sqlx, "deleting all records from " + table());
}
while (newRecords.hasNext()) {
insert(newRecords.next());
}
try {
connection.commit();
} catch (SQLException sqlx) {