public void forgetSecGroupIncludeByIncludeIdx(long ClusterId, int IncludeGroupId) {
    if (indexByIncludeIdx == null) {
      return;
    }
    CFGenKbSecGroupIncludeByIncludeIdxKey key =
        schema.getBackingStore().getFactorySecGroupInclude().newIncludeIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredIncludeGroupId(IncludeGroupId);
    if (indexByIncludeIdx.containsKey(key)) {
      Map<CFGenKbSecGroupIncludePKey, ICFGenKbSecGroupIncludeObj> mapIncludeIdx =
          indexByIncludeIdx.get(key);
      if (mapIncludeIdx != null) {
        List<ICFGenKbSecGroupIncludeObj> toForget = new LinkedList<ICFGenKbSecGroupIncludeObj>();
        ICFGenKbSecGroupIncludeObj cur = null;
        Iterator<ICFGenKbSecGroupIncludeObj> iter = mapIncludeIdx.values().iterator();
        while (iter.hasNext()) {
          cur = iter.next();
          toForget.add(cur);
        }
        iter = toForget.iterator();
        while (iter.hasNext()) {
          cur = iter.next();
          cur.forget(true);
        }
      }

      indexByIncludeIdx.remove(key);
    }
  }
 public void deleteSecGroupIncludeByIdIdx(long ClusterId, long SecGroupIncludeId) {
   CFGenKbSecGroupIncludePKey pkey =
       schema.getBackingStore().getFactorySecGroupInclude().newPKey();
   pkey.setRequiredClusterId(ClusterId);
   pkey.setRequiredSecGroupIncludeId(SecGroupIncludeId);
   ICFGenKbSecGroupIncludeObj obj = readSecGroupInclude(pkey);
   if (obj != null) {
     ICFGenKbSecGroupIncludeEditObj editObj = (ICFGenKbSecGroupIncludeEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFGenKbSecGroupIncludeEditObj) obj.beginEdit();
       if (editObj != null) {
         editStarted = true;
       } else {
         editStarted = false;
       }
     } else {
       editStarted = false;
     }
     if (editObj != null) {
       editObj.delete();
       if (editStarted) {
         editObj.endEdit();
       }
     }
     obj.forget(true);
   }
 }
 public void deleteSecGroupIncludeByUIncludeIdx(
     long ClusterId, int SecGroupId, int IncludeGroupId) {
   if (indexByUIncludeIdx == null) {
     indexByUIncludeIdx =
         new HashMap<CFGenKbSecGroupIncludeByUIncludeIdxKey, ICFGenKbSecGroupIncludeObj>();
   }
   CFGenKbSecGroupIncludeByUIncludeIdxKey key =
       schema.getBackingStore().getFactorySecGroupInclude().newUIncludeIdxKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredSecGroupId(SecGroupId);
   key.setRequiredIncludeGroupId(IncludeGroupId);
   ICFGenKbSecGroupIncludeObj obj = null;
   if (indexByUIncludeIdx.containsKey(key)) {
     obj = indexByUIncludeIdx.get(key);
     schema
         .getBackingStore()
         .getTableSecGroupInclude()
         .deleteSecGroupIncludeByUIncludeIdx(
             schema.getAuthorization(), ClusterId, SecGroupId, IncludeGroupId);
     obj.forget(true);
   } else {
     schema
         .getBackingStore()
         .getTableSecGroupInclude()
         .deleteSecGroupIncludeByUIncludeIdx(
             schema.getAuthorization(), ClusterId, SecGroupId, IncludeGroupId);
   }
 }
 public void deleteSecGroupInclude(ICFGenKbSecGroupIncludeObj Obj) {
   ICFGenKbSecGroupIncludeObj obj = Obj;
   schema
       .getBackingStore()
       .getTableSecGroupInclude()
       .deleteSecGroupInclude(schema.getAuthorization(), obj.getSecGroupIncludeBuff());
   obj.forget(true);
 }
 public void forgetSecGroupIncludeByIdIdx(long ClusterId, long SecGroupIncludeId) {
   if (members == null) {
     return;
   }
   CFGenKbSecGroupIncludePKey key = schema.getBackingStore().getFactorySecGroupInclude().newPKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredSecGroupIncludeId(SecGroupIncludeId);
   if (members.containsKey(key)) {
     ICFGenKbSecGroupIncludeObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
  public void forgetSecGroupIncludeByUIncludeIdx(
      long ClusterId, int SecGroupId, int IncludeGroupId) {
    if (indexByUIncludeIdx == null) {
      return;
    }
    CFGenKbSecGroupIncludeByUIncludeIdxKey key =
        schema.getBackingStore().getFactorySecGroupInclude().newUIncludeIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredSecGroupId(SecGroupId);
    key.setRequiredIncludeGroupId(IncludeGroupId);
    if (indexByUIncludeIdx.containsKey(key)) {
      ICFGenKbSecGroupIncludeObj probed = indexByUIncludeIdx.get(key);
      if (probed != null) {
        probed.forget(true);
      }

      indexByUIncludeIdx.remove(key);
    }
  }
 public void minimizeMemory() {
   allSecGroupInclude = null;
   indexByClusterIdx = null;
   indexByGroupIdx = null;
   indexByIncludeIdx = null;
   indexByUIncludeIdx = null;
   List<ICFGenKbSecGroupIncludeObj> toForget = new LinkedList<ICFGenKbSecGroupIncludeObj>();
   ICFGenKbSecGroupIncludeObj cur = null;
   Iterator<ICFGenKbSecGroupIncludeObj> iter = members.values().iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     if (cur.getEdit() == null) {
       toForget.add(cur);
     }
   }
   iter = toForget.iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     cur.forget();
   }
 }
 public void deleteSecGroupIncludeByGroupIdx(long ClusterId, int SecGroupId) {
   CFGenKbSecGroupIncludeByGroupIdxKey key =
       schema.getBackingStore().getFactorySecGroupInclude().newGroupIdxKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredSecGroupId(SecGroupId);
   if (indexByGroupIdx == null) {
     indexByGroupIdx =
         new HashMap<
             CFGenKbSecGroupIncludeByGroupIdxKey,
             Map<CFGenKbSecGroupIncludePKey, ICFGenKbSecGroupIncludeObj>>();
   }
   if (indexByGroupIdx.containsKey(key)) {
     Map<CFGenKbSecGroupIncludePKey, ICFGenKbSecGroupIncludeObj> dict = indexByGroupIdx.get(key);
     schema
         .getBackingStore()
         .getTableSecGroupInclude()
         .deleteSecGroupIncludeByGroupIdx(schema.getAuthorization(), ClusterId, SecGroupId);
     Iterator<ICFGenKbSecGroupIncludeObj> iter = dict.values().iterator();
     ICFGenKbSecGroupIncludeObj obj;
     List<ICFGenKbSecGroupIncludeObj> toForget = new LinkedList<ICFGenKbSecGroupIncludeObj>();
     while (iter.hasNext()) {
       obj = iter.next();
       toForget.add(obj);
     }
     iter = toForget.iterator();
     while (iter.hasNext()) {
       obj = iter.next();
       obj.forget(true);
     }
     indexByGroupIdx.remove(key);
   } else {
     schema
         .getBackingStore()
         .getTableSecGroupInclude()
         .deleteSecGroupIncludeByGroupIdx(schema.getAuthorization(), ClusterId, SecGroupId);
   }
 }