statement.setString(1, businessKey.toString());
int listSize = nameList.size();
for (int nameID = 0; nameID < listSize; nameID++)
{
Name name = (Name) nameList.elementAt(nameID);
statement.setInt(2, nameID);
statement.setString(3, name.getLanguageCode());
statement.setString(4, name.getValue());
if (log.isDebugEnabled()) {
log.debug(
"insert into " + tablePrefix + "BUSINESS_NAME table:\n\n\t"
+ insertSQL
+ "\n\t BUSINESS_KEY="
+ businessKey.toString()
+ "\n\t BUSINESS_NAME_ID="
+ nameID
+ "\n\t LANG_CODE="
+ name.getLanguageCode()
+ "\n\t NAME="
+ name.getValue()
+ "\n");
}
statement.executeUpdate();
}