コード例 #1
0
  public List getReferenceDocs() {
    List refDocs = new ArrayList(9);
    NCIBC4JUtil bc4jUtil = new NCIBC4JUtil();

    try {
      oracle.jbo.ViewObject rdView =
          getViewObject().getApplicationModule().findViewObject("ReferenceDocumentsView");

      ViewObjectImpl rdView1 = (ReferenceDocumentsViewImpl) bc4jUtil.cloneViewObject(rdView);
      rdView1.setWhereClause("AC_IDSEQ='" + getDeIdseq() + "'");
      rdView1.executeQuery();

      while (rdView1.hasNext()) {
        refDocs.add(new ReferenceDocValueObject((ReferenceDocumentsViewRowImpl) rdView1.next()));
      }
    } // end try
    catch (Exception e) {
      log.error("Error in getReferenceDocs(): ", e);
    }

    return refDocs;
  }
コード例 #2
0
  public List getDesignations() {
    List designations = new ArrayList(9);
    NCIBC4JUtil bc4jUtil = new NCIBC4JUtil();

    try {
      oracle.jbo.ViewObject desView =
          getViewObject().getApplicationModule().findViewObject("DesignationsView");

      /*ViewObjectImpl desView1 = (DesignationsViewImpl)
      bc4jUtil.cloneViewObject(desView);*/
      desView.setWhereClause("AC_IDSEQ='" + getDeIdseq() + "'");
      desView.executeQuery();

      while (desView.hasNext()) {
        designations.add(
            new BC4JDesignationTransferObject((DesignationsViewRowImpl) desView.next()));
      }
    } catch (Exception e) {
      log.error("Error in getDesignations(): ", e);
    }

    return designations;
  }