/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public void loadBeforeImage(CreditInfoBObj bObj) throws DWLBaseException { logger.finest("ENTER loadBeforeImage(CreditInfoBObj bObj)"); if (bObj.BeforeImage() == null) { CreditInfoBObj beforeImage = null; DWLResponse response = null; try { response = getCreditInfo(bObj.getCreditInfopkId(), bObj.getControl()); beforeImage = (CreditInfoBObj) response.getData(); } catch (Exception e) { if (logger.isFinestEnabled()) { String infoForLogging = "Error: Exception " + e.getMessage() + " while updating a record "; logger.finest("loadBeforeImage(CreditInfoBObj bObj) " + infoForLogging); } DWLExceptionUtils.throwDWLBaseException( e, new DWLUpdateException(e.getMessage()), bObj.getStatus(), DWLStatus.FATAL, AdditionsComponentID.CREDIT_INFO_BOBJ, "DIERR", AdditionsErrorReasonCode.CREDITINFO_BEFORE_IMAGE_NOT_POPULATED, bObj.getControl(), errHandler); } if (beforeImage == null) { if (logger.isFinestEnabled()) { String infoForLogging = "Error: Before image for updating a record is null "; logger.finest("loadBeforeImage(CreditInfoBObj bObj) " + infoForLogging); } DWLExceptionUtils.throwDWLBaseException( new DWLUpdateException(), bObj.getStatus(), DWLStatus.FATAL, AdditionsComponentID.CREDIT_INFO_BOBJ, "DIERR", AdditionsErrorReasonCode.CREDITINFO_BEFORE_IMAGE_NOT_POPULATED, bObj.getControl(), errHandler); } bObj.setBeforeImage(beforeImage); } logger.finest("RETURN loadBeforeImage(CreditInfoBObj bObj)"); }