statement.setInt(3,addressID);
int listSize = lineList.size();
for (int lineID=0; lineID<listSize; lineID++)
{
AddressLine line = (AddressLine)lineList.elementAt(lineID);
statement.setInt(4,lineID);
statement.setString(5,line.getLineValue());
statement.setString(6,line.getKeyName());
statement.setString(7,line.getKeyValue());
if (log.isDebugEnabled()) {
log.debug("insert into "+ tablePrefix + "ADDRESS_LINE table:\n\n\t" + insertSQL +
"\n\t BUSINESS_KEY=" + businessKey.toString() +
"\n\t CONTACT_ID=" + contactID +
"\n\t ADDRESS_ID=" + addressID +
"\n\t ADDRESS_LINE_ID=" + lineID +
"\n\t LINE=" + line.getLineValue() +
"\n\t KEY_NAME=" + line.getKeyName() +
"\n\t KEY_VALUE=" + line.getKeyValue() + "\n");
}
statement.executeUpdate();
}
}