public String saveAction() { String batchFlag = (String) this.resolveExpression("#{pageFlowScope.batchFlag}"); if ("Y".equals(batchFlag)) { CommonUtil.getEntryAM() .batchEditEncyclopediasEntry((String) this.resolveExpression("#{pageFlowScope.docId}")); CommonUtil.getEntryAM().getDBTransaction().commit(); return "toReturn"; } else { try { if (!itemValidator()) { return null; } } catch (Exception e) { e.printStackTrace(); } CommonUtil.getEntryAM().getDBTransaction().commit(); this.appendScript("saveExtendAttrs()"); return null; } }
public void preEditEncyclopediasEntry() { if (CommonUtil.getEntryAM().getDBTransaction().isDirty()) { CommonUtil.getEntryAM().getDBTransaction().rollback(); } String batchFlag = (String) this.resolveExpression("#{pageFlowScope.batchFlag}"); if (batchFlag == null || "N".equals(batchFlag)) { oracle.jbo.domain.Number docId = null; docId = (oracle.jbo.domain.Number) this.resolveExpression("#{pageFlowScope.docId}"); Number newDocId = CommonUtil.getEntryAM().preEditEncyclopediasEntry(docId); this.setExpressionValue("#{pageFlowScope.docId}", newDocId); } else { // CommonUtil.getEntryAM().initEncyclopediasEntryEditVO(); } CommonUtil.getWorkAM() .findCategory4Pick( CommonUtil.getCompCode(), CommonUtil.getLibCode(), CommonUtil.getLibTypeCode()); }
public void cancelEncyclopediasEntryActionListener(ActionEvent actionEvent) { System.out.println("cancleEncyclopediasEntry"); CommonUtil.getEntryAM().rollBack(); }