public String processRequest(String strActionValue) throws ProcessingException { FrameworkDefaultLogger.debug("Inside S_FrameWork_Query_OperationWorkerBean::processRequest()."); String sReturnValue = null; javax.transaction.UserTransaction userTransaction = UserTransactionService.getUserTransaction(); try { userTransaction.begin(); sReturnValue = callProcessRequest(strActionValue); userTransaction.commit(); } catch (Exception exc) { try { userTransaction.rollback(); } catch (Exception ex) { sReturnValue = "DATA_VALIDATION_ERROR"; FrameworkDefaultLogger.error( "Inside S_FrameWork_Query_OperationWorkerBean:" + ErrorService.errorStackToString(ex)); } FrameworkDefaultLogger.error( "Inside S_FrameWork_Query_OperationWorkerBean:" + ErrorService.errorStackToString(exc)); throw new ProcessingException( "S_FrameWork_Query_OperationWorkerBean:processRequest() - " + exc); } return sReturnValue; }
/** * Loads all S_FrameWork_Query_OperationValueObjects through the business facade using information * in the HttpServletRequest. * * @return String as result * @exception ProcessingException */ public String loadAllS_FrameWork_Query_Operations() throws ProcessingException { String sReturnValue = null; FrameworkDefaultLogger.debug( "Inside S_FrameWork_Query_OperationWorkerBean::loadAllS_FrameWork_Query_Operations"); try { // load the PADJBValueObject // Collection coll = S_FrameWork_Query_OperationProxy.getS_FrameWork_Query_Operations(); Collection coll = S_FrameWork_Query_OperationProxy.getS_FrameWork_Query_OperationsInSelectSql( "select * from S_FrameWork_Query_Operation", null); ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM(); objectManager.setS_FrameWork_Query_Operations(coll); } catch (Exception exc) { FrameworkDefaultLogger.error( "Inside S_FrameWork_Query_OperationWorkerBean:loadS_FrameWork_Query_Operations() - " + ErrorService.errorStackToString(exc)); throw new ProcessingException( "PADJBWorkerBean:loadAllS_FrameWork_Query_Operations() - successfully loaded all S_FrameWork_Query_OperationValueObjects - " + exc); } return (sReturnValue); }