+ "DeadlineCond, ExceptionName, Execution, State) "
+ "VALUES (?, ?, ?, ?, ?, ?, ?)",
new String[] {"Activity", "Entry"});
int entry = 0;
for (Iterator i = dls.iterator(); i.hasNext();) {
Deadline dl = (Deadline)i.next ();
int offset = 1;
prepStmt.setLong(offset++, pk.longValue());
prepStmt.setLong(offset++, ak.longValue());
prepStmt.setInt(offset++, entry++);
prepStmt.setLargeString(offset++, dl.getCondition());
prepStmt.setString (offset++, dl.getExceptionName());
prepStmt.setInt(offset++, dl.getExecution());
prepStmt.setInt(offset++, dl.getState());
prepStmt.executeUpdate();
}
}
} finally {
JDBCUtil.closeAll (null, prepStmt, null);