public void deleteNumberDefByNextIdx(
     CFSecurityAuthorization Authorization, CFDbTestValueByNextIdxKey argKey) {
   final String S_ProcName = "deleteNumberDefByNextIdx";
   CFDbTestNumberDefBuff cur;
   LinkedList<CFDbTestNumberDefBuff> matchSet = new LinkedList<CFDbTestNumberDefBuff>();
   Iterator<CFDbTestNumberDefBuff> values = dictByPKey.values().iterator();
   while (values.hasNext()) {
     cur = values.next();
     if (argKey.equals(cur)) {
       matchSet.add(cur);
     }
   }
   Iterator<CFDbTestNumberDefBuff> iterMatch = matchSet.iterator();
   while (iterMatch.hasNext()) {
     cur = iterMatch.next();
     String subClassCode = cur.getClassCode();
     if ("NUMD".equals(subClassCode)) {
       schema.getTableNumberDef().deleteNumberDef(Authorization, cur);
     } else if ("NUMC".equals(subClassCode)) {
       schema.getTableNumberCol().deleteNumberCol(Authorization, (CFDbTestNumberColBuff) cur);
     } else if ("NUMT".equals(subClassCode)) {
       schema.getTableNumberType().deleteNumberType(Authorization, (CFDbTestNumberTypeBuff) cur);
     } else {
       throw CFLib.getDefaultExceptionFactory()
           .newUnsupportedClassException(
               getClass(),
               S_ProcName,
               "subClassCode",
               cur,
               "Instance of or subclass of NumberDef must not be \"" + subClassCode + "\"");
     }
   }
 }
 public CFDbTestNumberDefBuff[] readAllDerived(CFSecurityAuthorization Authorization) {
   final String S_ProcName = "CFDbTestRamNumberDef.readAllDerived";
   CFDbTestNumberDefBuff[] retList = new CFDbTestNumberDefBuff[dictByPKey.values().size()];
   Iterator<CFDbTestNumberDefBuff> iter = dictByPKey.values().iterator();
   int idx = 0;
   while (iter.hasNext()) {
     retList[idx++] = iter.next();
   }
   return (retList);
 }
 public void deleteReqMinMaxValueByTenantIdx(
     CFSecurityAuthorization Authorization, CFDbTestReqMinMaxValueByTenantIdxKey argKey) {
   CFDbTestReqMinMaxValueBuff cur;
   LinkedList<CFDbTestReqMinMaxValueBuff> matchSet = new LinkedList<CFDbTestReqMinMaxValueBuff>();
   Iterator<CFDbTestReqMinMaxValueBuff> values = dictByPKey.values().iterator();
   while (values.hasNext()) {
     cur = values.next();
     if (argKey.equals(cur)) {
       matchSet.add(cur);
     }
   }
   Iterator<CFDbTestReqMinMaxValueBuff> iterMatch = matchSet.iterator();
   while (iterMatch.hasNext()) {
     cur = iterMatch.next();
     deleteReqMinMaxValue(Authorization, cur);
   }
 }
  public CFSecurityCursor openReqMinMaxValueCursorByTenantIdx(
      CFSecurityAuthorization Authorization, long TenantId) {
    CFSecurityCursor cursor;
    CFDbTestReqMinMaxValueByTenantIdxKey key = schema.getFactoryReqMinMaxValue().newTenantIdxKey();
    key.setRequiredTenantId(TenantId);

    if (dictByTenantIdx.containsKey(key)) {
      Map<CFDbTestReqMinMaxValuePKey, CFDbTestReqMinMaxValueBuff> subdictTenantIdx =
          dictByTenantIdx.get(key);
      cursor =
          new CFDbTestRamReqMinMaxValueCursor(Authorization, schema, subdictTenantIdx.values());
    } else {
      cursor =
          new CFDbTestRamReqMinMaxValueCursor(
              Authorization, schema, new ArrayList<CFDbTestReqMinMaxValueBuff>());
    }
    return (cursor);
  }
  public CFDbTestReqMinMaxValueBuff[] readDerivedByTenantIdx(
      CFSecurityAuthorization Authorization, long TenantId) {
    final String S_ProcName = "CFDbTestRamReqMinMaxValue.readDerivedByTenantIdx";
    CFDbTestReqMinMaxValueByTenantIdxKey key = schema.getFactoryReqMinMaxValue().newTenantIdxKey();
    key.setRequiredTenantId(TenantId);

    CFDbTestReqMinMaxValueBuff[] recArray;
    if (dictByTenantIdx.containsKey(key)) {
      Map<CFDbTestReqMinMaxValuePKey, CFDbTestReqMinMaxValueBuff> subdictTenantIdx =
          dictByTenantIdx.get(key);
      recArray = new CFDbTestReqMinMaxValueBuff[subdictTenantIdx.size()];
      Iterator<CFDbTestReqMinMaxValueBuff> iter = subdictTenantIdx.values().iterator();
      int idx = 0;
      while (iter.hasNext()) {
        recArray[idx++] = iter.next();
      }
    } else {
      Map<CFDbTestReqMinMaxValuePKey, CFDbTestReqMinMaxValueBuff> subdictTenantIdx =
          new HashMap<CFDbTestReqMinMaxValuePKey, CFDbTestReqMinMaxValueBuff>();
      dictByTenantIdx.put(key, subdictTenantIdx);
      recArray = new CFDbTestReqMinMaxValueBuff[0];
    }
    return (recArray);
  }
 public CFSecurityCursor openReqMinMaxValueCursorAll(CFSecurityAuthorization Authorization) {
   CFSecurityCursor cursor =
       new CFDbTestRamReqMinMaxValueCursor(Authorization, schema, dictByPKey.values());
   return (cursor);
 }
 public CFSecurityCursor openNumberDefCursorAll(CFSecurityAuthorization Authorization) {
   CFSecurityCursor cursor =
       new CFDbTestRamNumberDefCursor(Authorization, schema, dictByPKey.values());
   return (cursor);
 }