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 deleteSecGroupInclude(ICFSecuritySecGroupIncludeObj Obj) {
   ICFSecuritySecGroupIncludeObj obj = Obj;
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableSecGroupInclude()
       .deleteSecGroupInclude(schema.getAuthorization(), obj.getSecGroupIncludeBuff());
   obj.forget(true);
 }
 public ICFSecuritySecGroupIncludeObj readSecGroupIncludeByUIncludeIdx(
     long ClusterId, int SecGroupId, int IncludeGroupId, boolean forceRead) {
   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 ((!forceRead) && indexByUIncludeIdx.containsKey(key)) {
     obj = indexByUIncludeIdx.get(key);
   } else {
     CFSecuritySecGroupIncludeBuff buff =
         ((ICFInternetSchema) schema.getBackingStore())
             .getTableSecGroupInclude()
             .readDerivedByUIncludeIdx(
                 schema.getAuthorization(), ClusterId, SecGroupId, IncludeGroupId);
     if (buff != null) {
       obj = schema.getSecGroupIncludeTableObj().newInstance();
       obj.setPKey(
           ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey());
       obj.setBuff(buff);
       obj = (ICFSecuritySecGroupIncludeObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       indexByUIncludeIdx.put(key, null);
     }
   }
   return (obj);
 }
 public ICFSecuritySecGroupIncludeObj readSecGroupInclude(
     CFSecuritySecGroupIncludePKey pkey, boolean forceRead) {
   ICFSecuritySecGroupIncludeObj obj = null;
   if ((!forceRead) && members.containsKey(pkey)) {
     obj = members.get(pkey);
   } else {
     CFSecuritySecGroupIncludeBuff readBuff =
         ((ICFInternetSchema) schema.getBackingStore())
             .getTableSecGroupInclude()
             .readDerivedByIdIdx(
                 schema.getAuthorization(),
                 pkey.getRequiredClusterId(),
                 pkey.getRequiredSecGroupIncludeId());
     if (readBuff != null) {
       obj = schema.getSecGroupIncludeTableObj().newInstance();
       obj.setPKey(
           ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey());
       obj.setBuff(readBuff);
       obj = (ICFSecuritySecGroupIncludeObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       members.put(pkey, null);
     }
   }
   return (obj);
 }
 public void deleteISOCountry(ICFSecurityISOCountryObj Obj) {
   ICFSecurityISOCountryObj obj = Obj;
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableISOCountry()
       .deleteISOCountry(schema.getAuthorization(), obj.getISOCountryBuff());
   obj.forget(true);
 }
 public ICFSecurityISOCountryObj readISOCountryByNameIdx(String Name, boolean forceRead) {
   if (indexByNameIdx == null) {
     indexByNameIdx = new HashMap<CFSecurityISOCountryByNameIdxKey, ICFSecurityISOCountryObj>();
   }
   CFSecurityISOCountryByNameIdxKey key =
       ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newNameIdxKey();
   key.setRequiredName(Name);
   ICFSecurityISOCountryObj obj = null;
   if ((!forceRead) && indexByNameIdx.containsKey(key)) {
     obj = indexByNameIdx.get(key);
   } else {
     CFSecurityISOCountryBuff buff =
         ((ICFInternetSchema) schema.getBackingStore())
             .getTableISOCountry()
             .readDerivedByNameIdx(schema.getAuthorization(), Name);
     if (buff != null) {
       obj = schema.getISOCountryTableObj().newInstance();
       obj.setPKey(
           ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newPKey());
       obj.setBuff(buff);
       obj = (ICFSecurityISOCountryObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       indexByNameIdx.put(key, null);
     }
   }
   return (obj);
 }
 public ICFSecuritySecGroupIncludeObj updateSecGroupInclude(ICFSecuritySecGroupIncludeObj Obj) {
   ICFSecuritySecGroupIncludeObj obj = Obj;
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableSecGroupInclude()
       .updateSecGroupInclude(schema.getAuthorization(), Obj.getSecGroupIncludeBuff());
   obj = (ICFSecuritySecGroupIncludeObj) Obj.realize();
   return (obj);
 }
 public ICFSecurityISOCountryObj updateISOCountry(ICFSecurityISOCountryObj Obj) {
   ICFSecurityISOCountryObj obj = Obj;
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableISOCountry()
       .updateISOCountry(schema.getAuthorization(), Obj.getISOCountryBuff());
   obj = (ICFSecurityISOCountryObj) Obj.realize();
   return (obj);
 }
 public ICFSecuritySecGroupIncludeObj createSecGroupInclude(ICFSecuritySecGroupIncludeObj Obj) {
   ICFSecuritySecGroupIncludeObj obj = Obj;
   CFSecuritySecGroupIncludeBuff buff = obj.getSecGroupIncludeBuff();
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableSecGroupInclude()
       .createSecGroupInclude(schema.getAuthorization(), buff);
   obj.copyBuffToPKey();
   obj = obj.realize();
   return (obj);
 }
 public ICFSecurityISOCountryObj createISOCountry(ICFSecurityISOCountryObj Obj) {
   ICFSecurityISOCountryObj obj = Obj;
   CFSecurityISOCountryBuff buff = obj.getISOCountryBuff();
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableISOCountry()
       .createISOCountry(schema.getAuthorization(), buff);
   obj.copyBuffToPKey();
   obj = obj.realize();
   return (obj);
 }
 public void deleteISOCountryByNameIdx(String Name) {
   if (indexByNameIdx == null) {
     indexByNameIdx = new HashMap<CFSecurityISOCountryByNameIdxKey, ICFSecurityISOCountryObj>();
   }
   CFSecurityISOCountryByNameIdxKey key =
       ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newNameIdxKey();
   key.setRequiredName(Name);
   ICFSecurityISOCountryObj obj = null;
   if (indexByNameIdx.containsKey(key)) {
     obj = indexByNameIdx.get(key);
     ((ICFInternetSchema) schema.getBackingStore())
         .getTableISOCountry()
         .deleteISOCountryByNameIdx(schema.getAuthorization(), Name);
     obj.forget(true);
   } else {
     ((ICFInternetSchema) schema.getBackingStore())
         .getTableISOCountry()
         .deleteISOCountryByNameIdx(schema.getAuthorization(), Name);
   }
 }
 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);
   }
 }
 public ICFSecuritySecGroupIncludeObj lockSecGroupInclude(CFSecuritySecGroupIncludePKey pkey) {
   ICFSecuritySecGroupIncludeObj locked = null;
   CFSecuritySecGroupIncludeBuff lockBuff =
       ((ICFInternetSchema) schema.getBackingStore())
           .getTableSecGroupInclude()
           .lockDerived(schema.getAuthorization(), pkey);
   if (lockBuff != null) {
     locked = schema.getSecGroupIncludeTableObj().newInstance();
     locked.setPKey(
         ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey());
     locked.setBuff(lockBuff);
     locked = (ICFSecuritySecGroupIncludeObj) locked.realize();
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newCollisionDetectedException(getClass(), "lockSecGroupInclude", pkey);
   }
   return (locked);
 }
 public List<ICFSecuritySecGroupIncludeObj> readSecGroupIncludeByIncludeIdx(
     long ClusterId, int IncludeGroupId, boolean forceRead) {
   final String S_ProcName = "readSecGroupIncludeByIncludeIdx";
   CFSecuritySecGroupIncludeByIncludeIdxKey key =
       ((ICFInternetSchema) schema.getBackingStore())
           .getFactorySecGroupInclude()
           .newIncludeIdxKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredIncludeGroupId(IncludeGroupId);
   Map<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj> dict;
   if (indexByIncludeIdx == null) {
     indexByIncludeIdx =
         new HashMap<
             CFSecuritySecGroupIncludeByIncludeIdxKey,
             Map<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj>>();
   }
   if ((!forceRead) && indexByIncludeIdx.containsKey(key)) {
     dict = indexByIncludeIdx.get(key);
   } else {
     dict = new HashMap<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj>();
     // Allow other threads to dirty-read while we're loading
     indexByIncludeIdx.put(key, dict);
     ICFSecuritySecGroupIncludeObj obj;
     CFSecuritySecGroupIncludeBuff[] buffList =
         ((ICFInternetSchema) schema.getBackingStore())
             .getTableSecGroupInclude()
             .readDerivedByIncludeIdx(schema.getAuthorization(), ClusterId, IncludeGroupId);
     CFSecuritySecGroupIncludeBuff buff;
     for (int idx = 0; idx < buffList.length; idx++) {
       buff = buffList[idx];
       obj = schema.getSecGroupIncludeTableObj().newInstance();
       obj.setPKey(
           ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey());
       obj.setBuff(buff);
       ICFSecuritySecGroupIncludeObj realized = (ICFSecuritySecGroupIncludeObj) obj.realize();
     }
   }
   Comparator<ICFSecuritySecGroupIncludeObj> cmp =
       new Comparator<ICFSecuritySecGroupIncludeObj>() {
         public int compare(ICFSecuritySecGroupIncludeObj lhs, ICFSecuritySecGroupIncludeObj rhs) {
           if (lhs == null) {
             if (rhs == null) {
               return (0);
             } else {
               return (-1);
             }
           } else if (rhs == null) {
             return (1);
           } else {
             CFSecuritySecGroupIncludePKey lhsPKey = lhs.getPKey();
             CFSecuritySecGroupIncludePKey rhsPKey = rhs.getPKey();
             int ret = lhsPKey.compareTo(rhsPKey);
             return (ret);
           }
         }
       };
   int len = dict.size();
   ICFSecuritySecGroupIncludeObj arr[] = new ICFSecuritySecGroupIncludeObj[len];
   Iterator<ICFSecuritySecGroupIncludeObj> valIter = dict.values().iterator();
   int idx = 0;
   while ((idx < len) && valIter.hasNext()) {
     arr[idx++] = valIter.next();
   }
   if (idx < len) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentUnderflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   } else if (valIter.hasNext()) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentOverflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   }
   Arrays.sort(arr, cmp);
   ArrayList<ICFSecuritySecGroupIncludeObj> arrayList =
       new ArrayList<ICFSecuritySecGroupIncludeObj>(len);
   for (idx = 0; idx < len; idx++) {
     arrayList.add(arr[idx]);
   }
   List<ICFSecuritySecGroupIncludeObj> sortedList = arrayList;
   return (sortedList);
 }
 public List<ICFSecuritySecGroupIncludeObj> readAllSecGroupInclude(boolean forceRead) {
   final String S_ProcName = "readAllSecGroupInclude";
   if ((allSecGroupInclude == null) || forceRead) {
     Map<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj> map =
         new HashMap<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj>();
     allSecGroupInclude = map;
     CFSecuritySecGroupIncludeBuff[] buffList =
         ((ICFInternetSchema) schema.getBackingStore())
             .getTableSecGroupInclude()
             .readAllDerived(schema.getAuthorization());
     CFSecuritySecGroupIncludeBuff buff;
     ICFSecuritySecGroupIncludeObj obj;
     for (int idx = 0; idx < buffList.length; idx++) {
       buff = buffList[idx];
       obj = newInstance();
       obj.setPKey(
           ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey());
       obj.setBuff(buff);
       ICFSecuritySecGroupIncludeObj realized = (ICFSecuritySecGroupIncludeObj) obj.realize();
     }
   }
   Comparator<ICFSecuritySecGroupIncludeObj> cmp =
       new Comparator<ICFSecuritySecGroupIncludeObj>() {
         public int compare(ICFSecuritySecGroupIncludeObj lhs, ICFSecuritySecGroupIncludeObj rhs) {
           if (lhs == null) {
             if (rhs == null) {
               return (0);
             } else {
               return (-1);
             }
           } else if (rhs == null) {
             return (1);
           } else {
             CFSecuritySecGroupIncludePKey lhsPKey = lhs.getPKey();
             CFSecuritySecGroupIncludePKey rhsPKey = rhs.getPKey();
             int ret = lhsPKey.compareTo(rhsPKey);
             return (ret);
           }
         }
       };
   int len = allSecGroupInclude.size();
   ICFSecuritySecGroupIncludeObj arr[] = new ICFSecuritySecGroupIncludeObj[len];
   Iterator<ICFSecuritySecGroupIncludeObj> valIter = allSecGroupInclude.values().iterator();
   int idx = 0;
   while ((idx < len) && valIter.hasNext()) {
     arr[idx++] = valIter.next();
   }
   if (idx < len) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentUnderflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   } else if (valIter.hasNext()) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentOverflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   }
   Arrays.sort(arr, cmp);
   ArrayList<ICFSecuritySecGroupIncludeObj> arrayList =
       new ArrayList<ICFSecuritySecGroupIncludeObj>(len);
   for (idx = 0; idx < len; idx++) {
     arrayList.add(arr[idx]);
   }
   List<ICFSecuritySecGroupIncludeObj> sortedList = arrayList;
   return (sortedList);
 }