public void updateDocCategroupRel(Number categoryId) { CmsDocCategoryRelTVOImpl docCategoryRelVO = this.getCmsDocCategoryRelTVO(); Row row = docCategoryRelVO.getCurrentRow(); if (row != null) { CmsDocCategoryRelTVORowImpl docCategoryRelNewRow = (CmsDocCategoryRelTVORowImpl) row; docCategoryRelNewRow.setCategoryId(categoryId); } }
private void preDocCategroupRel(String mode, Number docId, Number categoryId) { CmsDocCategoryRelTVOImpl docCategoryRelVO = this.getCmsDocCategoryRelTVO(); if ("CREATE".equals(mode)) { CmsDocCategoryRelTVORowImpl docCategoryRelNewRow = (CmsDocCategoryRelTVORowImpl) docCategoryRelVO.createRow(); docCategoryRelNewRow.setDocId(docId); docCategoryRelNewRow.setCategoryGroupType("BY_CATEGORY"); docCategoryRelNewRow.setCategoryId(categoryId); docCategoryRelVO.insertRow(docCategoryRelNewRow); docCategoryRelVO.setCurrentRow(docCategoryRelNewRow); } else { docCategoryRelVO.setbvDocId(docId); docCategoryRelVO.executeQuery(); Row row = docCategoryRelVO.first(); if (row != null) { docCategoryRelVO.setCurrentRow(row); } } }