public void deleteNumberDefByPrevIdx(
     CFSecurityAuthorization Authorization, CFDbTestValueByPrevIdxKey argKey) {
   final String S_ProcName = "deleteNumberDefByPrevIdx";
   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 void deleteNumberDefByPrevIdx(
     CFSecurityAuthorization Authorization, Long argPrevTenantId, Long argPrevId) {
   CFDbTestValueByPrevIdxKey key = schema.getFactoryValue().newPrevIdxKey();
   key.setOptionalPrevTenantId(argPrevTenantId);
   key.setOptionalPrevId(argPrevId);
   deleteNumberDefByPrevIdx(Authorization, key);
 }