Connection conn = null;
try {
if (this.conn==null) conn = getConn(); else conn = this.conn;
PaymentTypeVO oldVO = null;
PaymentTypeVO newVO = null;
Response res = null;
HashSet pkAttrs = new HashSet();
pkAttrs.add("companyCodeSys01REG11");
pkAttrs.add("paymentTypeCodeREG11");
HashMap attr2dbFields = new HashMap();
attr2dbFields.put("companyCodeSys01REG11","COMPANY_CODE_SYS01");
attr2dbFields.put("paymentTypeCodeREG11","PAYMENT_TYPE_CODE");
attr2dbFields.put("progressiveSys10REG11","PROGRESSIVE_SYS10");
attr2dbFields.put("enabledREG11","ENABLED");
attr2dbFields.put("accountCodeAcc02REG11","ACCOUNT_CODE_ACC02");
for(int i=0;i<oldVOs.size();i++) {
oldVO = (PaymentTypeVO)oldVOs.get(i);
newVO = (PaymentTypeVO)newVOs.get(i);
// update SYS10 table...
CompanyTranslationUtils.updateTranslation(newVO.getCompanyCodeSys01REG11(),oldVO.getDescriptionSYS10(),newVO.getDescriptionSYS10(),newVO.getProgressiveSys10REG11(),serverLanguageId,username,conn);
res = new CustomizeQueryUtil().updateTable(
conn,
new UserSessionParameters(username),
pkAttrs,