public void deleteSecGroupIncludeByIdIdx(long ClusterId, long SecGroupIncludeId) {
   CFSecuritySecGroupIncludePKey pkey =
       ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey();
   pkey.setRequiredClusterId(ClusterId);
   pkey.setRequiredSecGroupIncludeId(SecGroupIncludeId);
   ICFSecuritySecGroupIncludeObj obj = readSecGroupInclude(pkey);
   if (obj != null) {
     ICFSecuritySecGroupIncludeEditObj editObj = (ICFSecuritySecGroupIncludeEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecuritySecGroupIncludeEditObj) 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 forgetSecGroupIncludeByIncludeIdx(long ClusterId, int IncludeGroupId) {
    if (indexByIncludeIdx == null) {
      return;
    }
    CFSecuritySecGroupIncludeByIncludeIdxKey key =
        ((ICFInternetSchema) schema.getBackingStore())
            .getFactorySecGroupInclude()
            .newIncludeIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredIncludeGroupId(IncludeGroupId);
    if (indexByIncludeIdx.containsKey(key)) {
      Map<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj> mapIncludeIdx =
          indexByIncludeIdx.get(key);
      if (mapIncludeIdx != null) {
        List<ICFSecuritySecGroupIncludeObj> toForget =
            new LinkedList<ICFSecuritySecGroupIncludeObj>();
        ICFSecuritySecGroupIncludeObj cur = null;
        Iterator<ICFSecuritySecGroupIncludeObj> 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 deleteSecGroupInclude(ICFSecuritySecGroupIncludeObj Obj) {
   ICFSecuritySecGroupIncludeObj obj = Obj;
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableSecGroupInclude()
       .deleteSecGroupInclude(schema.getAuthorization(), obj.getSecGroupIncludeBuff());
   obj.forget(true);
 }
 public void deleteSecGroupIncludeByUIncludeIdx(
     long ClusterId, int SecGroupId, int IncludeGroupId) {
   if (indexByUIncludeIdx == null) {
     indexByUIncludeIdx =
         new HashMap<CFSecuritySecGroupIncludeByUIncludeIdxKey, ICFSecuritySecGroupIncludeObj>();
   }
   CFSecuritySecGroupIncludeByUIncludeIdxKey key =
       ((ICFInternetSchema) schema.getBackingStore())
           .getFactorySecGroupInclude()
           .newUIncludeIdxKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredSecGroupId(SecGroupId);
   key.setRequiredIncludeGroupId(IncludeGroupId);
   ICFSecuritySecGroupIncludeObj obj = null;
   if (indexByUIncludeIdx.containsKey(key)) {
     obj = indexByUIncludeIdx.get(key);
     ((ICFInternetSchema) schema.getBackingStore())
         .getTableSecGroupInclude()
         .deleteSecGroupIncludeByUIncludeIdx(
             schema.getAuthorization(), ClusterId, SecGroupId, IncludeGroupId);
     obj.forget(true);
   } else {
     ((ICFInternetSchema) schema.getBackingStore())
         .getTableSecGroupInclude()
         .deleteSecGroupIncludeByUIncludeIdx(
             schema.getAuthorization(), ClusterId, SecGroupId, IncludeGroupId);
   }
 }
 public void forgetSecGroupIncludeByIdIdx(long ClusterId, long SecGroupIncludeId) {
   if (members == null) {
     return;
   }
   CFSecuritySecGroupIncludePKey key =
       ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredSecGroupIncludeId(SecGroupIncludeId);
   if (members.containsKey(key)) {
     ICFSecuritySecGroupIncludeObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
 public void minimizeMemory() {
   allSecGroupInclude = null;
   indexByClusterIdx = null;
   indexByGroupIdx = null;
   indexByIncludeIdx = null;
   indexByUIncludeIdx = null;
   List<ICFSecuritySecGroupIncludeObj> toForget = new LinkedList<ICFSecuritySecGroupIncludeObj>();
   ICFSecuritySecGroupIncludeObj cur = null;
   Iterator<ICFSecuritySecGroupIncludeObj> 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 forgetSecGroupIncludeByUIncludeIdx(
      long ClusterId, int SecGroupId, int IncludeGroupId) {
    if (indexByUIncludeIdx == null) {
      return;
    }
    CFSecuritySecGroupIncludeByUIncludeIdxKey key =
        ((ICFInternetSchema) schema.getBackingStore())
            .getFactorySecGroupInclude()
            .newUIncludeIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredSecGroupId(SecGroupId);
    key.setRequiredIncludeGroupId(IncludeGroupId);
    if (indexByUIncludeIdx.containsKey(key)) {
      ICFSecuritySecGroupIncludeObj probed = indexByUIncludeIdx.get(key);
      if (probed != null) {
        probed.forget(true);
      }

      indexByUIncludeIdx.remove(key);
    }
  }
 public void deleteSecGroupIncludeByIncludeIdx(long ClusterId, int IncludeGroupId) {
   CFSecuritySecGroupIncludeByIncludeIdxKey key =
       ((ICFInternetSchema) schema.getBackingStore())
           .getFactorySecGroupInclude()
           .newIncludeIdxKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredIncludeGroupId(IncludeGroupId);
   if (indexByIncludeIdx == null) {
     indexByIncludeIdx =
         new HashMap<
             CFSecuritySecGroupIncludeByIncludeIdxKey,
             Map<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj>>();
   }
   if (indexByIncludeIdx.containsKey(key)) {
     Map<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj> dict =
         indexByIncludeIdx.get(key);
     ((ICFInternetSchema) schema.getBackingStore())
         .getTableSecGroupInclude()
         .deleteSecGroupIncludeByIncludeIdx(schema.getAuthorization(), ClusterId, IncludeGroupId);
     Iterator<ICFSecuritySecGroupIncludeObj> iter = dict.values().iterator();
     ICFSecuritySecGroupIncludeObj obj;
     List<ICFSecuritySecGroupIncludeObj> toForget =
         new LinkedList<ICFSecuritySecGroupIncludeObj>();
     while (iter.hasNext()) {
       obj = iter.next();
       toForget.add(obj);
     }
     iter = toForget.iterator();
     while (iter.hasNext()) {
       obj = iter.next();
       obj.forget(true);
     }
     indexByIncludeIdx.remove(key);
   } else {
     ((ICFInternetSchema) schema.getBackingStore())
         .getTableSecGroupInclude()
         .deleteSecGroupIncludeByIncludeIdx(schema.getAuthorization(), ClusterId, IncludeGroupId);
   }
 }