ConcatenatingStringsForIUD iud = new ConcatenatingStringsForIUD();
String last_name = "O'Reilly";
String first_name = "Tim";
String middle_name = null;
Date birth_date = Date.valueOf("1971-03-17");
String mothers_maiden_name = "Oh! I don't know!";
iud.executeIUD(
"delete PERSON " +
"where last_name = " +
iud.formatWithTicks(last_name) + " " +
"and first_name = " +
iud.formatWithTicks(first_name));
iud.executeIUD(
"insert into PERSON " +
"(person_id, last_name, first_name, middle_name, " +
"birth_date, mothers_maiden_name) values " +
"(person_id.nextval, " +
iud.formatWithTicks(last_name) + ", " +
iud.formatWithTicks(first_name) + ", " +
iud.formatWithTicks(middle_name) + ", " +
iud.formatWithOracleDate(birth_date) + ", " +
iud.formatWithTicks(mothers_maiden_name) + ")");
birth_date = Date.valueOf("1972-03-17");
iud.executeIUD(
"update PERSON " +
"set birth_date = " +
iud.formatWithSql92Date(birth_date) + " " +
"where last_name = " +
iud.formatWithTicks(last_name) + " " +
"and first_name = " +
iud.formatWithTicks(first_name));