コード例 #1
0
 public void setOrderInvestigarionID(
     ims.ocrr.orderingresults.vo.OrderInvestigationRefVoCollection value) {
   if (value != null) {
     for (int x = 0; x < value.size(); x++) {
       if (value.get(x) != null
           && (value.get(x).getBoId() == null || value.get(x).getBoId().intValue() < 1))
         throw new ims.framework.exceptions.CodingRuntimeException(
             "Invalid domain object id found in 'OrderInvestigarionID' RefVoCollection context variable.");
     }
   }
   if (value == null) cxl_OrderInvestigarionID.setValue(context, null);
   else {
     ims.ocrr.orderingresults.vo.OrderInvestigationRefVoCollection copy =
         new ims.ocrr.orderingresults.vo.OrderInvestigationRefVoCollection();
     for (int x = 0; x < value.size(); x++) {
       copy.add(value.get(x));
     }
     value.clear();
     for (int x = 0; x < copy.size(); x++) {
       if (copy.get(x) == null) value.add(null);
       else
         value.add(
             new ims.ocrr.orderingresults.vo.OrderInvestigationRefVo(
                 copy.get(x).getBoId(), copy.get(x).getBoVersion()));
     }
     cxl_OrderInvestigarionID.setValue(context, value);
   }
 }
 public ims.ocrr.orderingresults.vo.OrderInvestigationRefVoCollection toRefVoCollection() {
   ims.ocrr.orderingresults.vo.OrderInvestigationRefVoCollection result =
       new ims.ocrr.orderingresults.vo.OrderInvestigationRefVoCollection();
   for (int x = 0; x < this.col.size(); x++) {
     result.add(this.col.get(x));
   }
   return result;
 }