statement.setInt(2, tModelInstanceInfoID);
int listSize = descList.size();
for (int descID = 0; descID < listSize; descID++)
{
Description desc = (Description) descList.elementAt(descID);
// okay, set the values to be inserted
statement.setInt(3, descID); // Sequence Number aka Desc ID
statement.setString(4, desc.getLanguageCode());
statement.setString(5, desc.getValue());
if (log.isDebugEnabled()) {
log.debug(
"insert into " + tablePrefix + "INSTANCE_DETAILS_DOC_DESCR table:\n\n\t"
+ insertSQL
+ "\n\t BINDING_KEY="
+ bindingKey.toString()
+ "\n\t TMODEL_INSTANCE_INFO_ID="
+ tModelInstanceInfoID
+ "\n\t INSTANCE_DETAILS_DOC_DESCR_ID="
+ descID
+ "\n\t LANG_CODE="
+ desc.getLanguageCode()
+ "\n\t DESCR="
+ desc.getValue()
+ "\n");
}
statement.executeUpdate();
}