public CFSecuritySecGroupMemberBuff[] readDerivedByGroupIdx(
      CFSecurityAuthorization Authorization, long ClusterId, int SecGroupId) {
    final String S_ProcName = "CFFreeSwitchRamSecGroupMember.readDerivedByGroupIdx";
    CFSecuritySecGroupMemberByGroupIdxKey key = schema.getFactorySecGroupMember().newGroupIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredSecGroupId(SecGroupId);

    CFSecuritySecGroupMemberBuff[] recArray;
    if (dictByGroupIdx.containsKey(key)) {
      Map<CFSecuritySecGroupMemberPKey, CFSecuritySecGroupMemberBuff> subdictGroupIdx =
          dictByGroupIdx.get(key);
      recArray = new CFSecuritySecGroupMemberBuff[subdictGroupIdx.size()];
      Iterator<CFSecuritySecGroupMemberBuff> iter = subdictGroupIdx.values().iterator();
      int idx = 0;
      while (iter.hasNext()) {
        recArray[idx++] = iter.next();
      }
    } else {
      Map<CFSecuritySecGroupMemberPKey, CFSecuritySecGroupMemberBuff> subdictGroupIdx =
          new HashMap<CFSecuritySecGroupMemberPKey, CFSecuritySecGroupMemberBuff>();
      dictByGroupIdx.put(key, subdictGroupIdx);
      recArray = new CFSecuritySecGroupMemberBuff[0];
    }
    return (recArray);
  }
 public CFSecuritySecGroupMemberBuff[] readAllDerived(CFSecurityAuthorization Authorization) {
   final String S_ProcName = "CFFreeSwitchRamSecGroupMember.readAllDerived";
   CFSecuritySecGroupMemberBuff[] retList =
       new CFSecuritySecGroupMemberBuff[dictByPKey.values().size()];
   Iterator<CFSecuritySecGroupMemberBuff> iter = dictByPKey.values().iterator();
   int idx = 0;
   while (iter.hasNext()) {
     retList[idx++] = iter.next();
   }
   return (retList);
 }
  public CFSecurityCursor openSecGroupMemberCursorByUserIdx(
      CFSecurityAuthorization Authorization, UUID SecUserId) {
    CFSecurityCursor cursor;
    CFSecuritySecGroupMemberByUserIdxKey key = schema.getFactorySecGroupMember().newUserIdxKey();
    key.setRequiredSecUserId(SecUserId);

    if (dictByUserIdx.containsKey(key)) {
      Map<CFSecuritySecGroupMemberPKey, CFSecuritySecGroupMemberBuff> subdictUserIdx =
          dictByUserIdx.get(key);
      cursor =
          new CFFreeSwitchRamSecGroupMemberCursor(Authorization, schema, subdictUserIdx.values());
    } else {
      cursor =
          new CFFreeSwitchRamSecGroupMemberCursor(
              Authorization, schema, new ArrayList<CFSecuritySecGroupMemberBuff>());
    }
    return (cursor);
  }
 public void deleteSecGroupMemberByUUserIdx(
     CFSecurityAuthorization Authorization, CFSecuritySecGroupMemberByUUserIdxKey argKey) {
   CFSecuritySecGroupMemberBuff cur;
   LinkedList<CFSecuritySecGroupMemberBuff> matchSet =
       new LinkedList<CFSecuritySecGroupMemberBuff>();
   Iterator<CFSecuritySecGroupMemberBuff> values = dictByPKey.values().iterator();
   while (values.hasNext()) {
     cur = values.next();
     if (argKey.equals(cur)) {
       matchSet.add(cur);
     }
   }
   Iterator<CFSecuritySecGroupMemberBuff> iterMatch = matchSet.iterator();
   while (iterMatch.hasNext()) {
     cur = iterMatch.next();
     deleteSecGroupMember(Authorization, cur);
   }
 }
 public CFSecurityCursor openSecGroupMemberCursorAll(CFSecurityAuthorization Authorization) {
   CFSecurityCursor cursor =
       new CFFreeSwitchRamSecGroupMemberCursor(Authorization, schema, dictByPKey.values());
   return (cursor);
 }