public CFSecurityClusterBuff[] readAllDerived(CFSecurityAuthorization Authorization) {
   final String S_ProcName = "CFDbTestRamCluster.readAllDerived";
   CFSecurityClusterBuff[] retList = new CFSecurityClusterBuff[dictByPKey.values().size()];
   Iterator<CFSecurityClusterBuff> iter = dictByPKey.values().iterator();
   int idx = 0;
   while (iter.hasNext()) {
     retList[idx++] = iter.next();
   }
   return (retList);
 }
 public void deleteClusterByUDescrIdx(
     CFSecurityAuthorization Authorization, CFSecurityClusterByUDescrIdxKey argKey) {
   CFSecurityClusterBuff cur;
   LinkedList<CFSecurityClusterBuff> matchSet = new LinkedList<CFSecurityClusterBuff>();
   Iterator<CFSecurityClusterBuff> values = dictByPKey.values().iterator();
   while (values.hasNext()) {
     cur = values.next();
     if (argKey.equals(cur)) {
       matchSet.add(cur);
     }
   }
   Iterator<CFSecurityClusterBuff> iterMatch = matchSet.iterator();
   while (iterMatch.hasNext()) {
     cur = iterMatch.next();
     deleteCluster(Authorization, cur);
   }
 }
  public CFSecurityCursor openOptFullRangeCursorByTenantIdx(
      CFSecurityAuthorization Authorization, long TenantId) {
    CFSecurityCursor cursor;
    CFDbTestOptFullRangeByTenantIdxKey key = schema.getFactoryOptFullRange().newTenantIdxKey();
    key.setRequiredTenantId(TenantId);

    if (dictByTenantIdx.containsKey(key)) {
      Map<CFDbTestOptFullRangePKey, CFDbTestOptFullRangeBuff> subdictTenantIdx =
          dictByTenantIdx.get(key);
      cursor = new CFDbTestRamOptFullRangeCursor(Authorization, schema, subdictTenantIdx.values());
    } else {
      cursor =
          new CFDbTestRamOptFullRangeCursor(
              Authorization, schema, new ArrayList<CFDbTestOptFullRangeBuff>());
    }
    return (cursor);
  }
 public void deleteOptFullRangeByTenantIdx(
     CFSecurityAuthorization Authorization, CFDbTestOptFullRangeByTenantIdxKey argKey) {
   CFDbTestOptFullRangeBuff cur;
   LinkedList<CFDbTestOptFullRangeBuff> matchSet = new LinkedList<CFDbTestOptFullRangeBuff>();
   Iterator<CFDbTestOptFullRangeBuff> values = dictByPKey.values().iterator();
   while (values.hasNext()) {
     cur = values.next();
     if (argKey.equals(cur)) {
       matchSet.add(cur);
     }
   }
   Iterator<CFDbTestOptFullRangeBuff> iterMatch = matchSet.iterator();
   while (iterMatch.hasNext()) {
     cur = iterMatch.next();
     deleteOptFullRange(Authorization, cur);
   }
 }
  public CFDbTestOptFullRangeBuff[] readDerivedByTenantIdx(
      CFSecurityAuthorization Authorization, long TenantId) {
    final String S_ProcName = "CFDbTestRamOptFullRange.readDerivedByTenantIdx";
    CFDbTestOptFullRangeByTenantIdxKey key = schema.getFactoryOptFullRange().newTenantIdxKey();
    key.setRequiredTenantId(TenantId);

    CFDbTestOptFullRangeBuff[] recArray;
    if (dictByTenantIdx.containsKey(key)) {
      Map<CFDbTestOptFullRangePKey, CFDbTestOptFullRangeBuff> subdictTenantIdx =
          dictByTenantIdx.get(key);
      recArray = new CFDbTestOptFullRangeBuff[subdictTenantIdx.size()];
      Iterator<CFDbTestOptFullRangeBuff> iter = subdictTenantIdx.values().iterator();
      int idx = 0;
      while (iter.hasNext()) {
        recArray[idx++] = iter.next();
      }
    } else {
      Map<CFDbTestOptFullRangePKey, CFDbTestOptFullRangeBuff> subdictTenantIdx =
          new HashMap<CFDbTestOptFullRangePKey, CFDbTestOptFullRangeBuff>();
      dictByTenantIdx.put(key, subdictTenantIdx);
      recArray = new CFDbTestOptFullRangeBuff[0];
    }
    return (recArray);
  }
 public CFSecurityCursor openClusterCursorAll(CFSecurityAuthorization Authorization) {
   CFSecurityCursor cursor =
       new CFDbTestRamClusterCursor(Authorization, schema, dictByPKey.values());
   return (cursor);
 }
 public CFSecurityCursor openLoaderBehaviourCursorAll(CFSecurityAuthorization Authorization) {
   CFSecurityCursor cursor =
       new CFDbTestRamLoaderBehaviourCursor(Authorization, schema, dictByPKey.values());
   return (cursor);
 }