JDBCAccessorHelper.setStringValue(pstmt, 1, projectName);
JDBCAccessorHelper.setStringValue(pstmt, 2, deviceName);
Iterator it = tacs.iterator();
while (it.hasNext()) {
TACValue tac = (TACValue) it.next();
pstmt.setLong(3, tac.getLongTAC());
if (logger.isDebugEnabled()) {
logger.debug("Inserting into "
+ resolvedDeviceTACsTableName
+ " NAME: " + deviceName
+ " TAC: " + tac.getLongTAC());
}
pstmt.executeUpdate();
}
// Close the statement and set it to null to prevent the finally clause