public void deleteSecGroupByClusterIdx(long ClusterId) {
   CFSecuritySecGroupByClusterIdxKey key =
       ((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newClusterIdxKey();
   key.setRequiredClusterId(ClusterId);
   if (indexByClusterIdx == null) {
     indexByClusterIdx =
         new HashMap<
             CFSecuritySecGroupByClusterIdxKey,
             Map<CFSecuritySecGroupPKey, ICFSecuritySecGroupObj>>();
   }
   if (indexByClusterIdx.containsKey(key)) {
     Map<CFSecuritySecGroupPKey, ICFSecuritySecGroupObj> dict = indexByClusterIdx.get(key);
     ((ICFSecuritySchema) schema.getBackingStore())
         .getTableSecGroup()
         .deleteSecGroupByClusterIdx(schema.getAuthorization(), ClusterId);
     Iterator<ICFSecuritySecGroupObj> iter = dict.values().iterator();
     ICFSecuritySecGroupObj obj;
     List<ICFSecuritySecGroupObj> toForget = new LinkedList<ICFSecuritySecGroupObj>();
     while (iter.hasNext()) {
       obj = iter.next();
       toForget.add(obj);
     }
     iter = toForget.iterator();
     while (iter.hasNext()) {
       obj = iter.next();
       obj.forget(true);
     }
     indexByClusterIdx.remove(key);
   } else {
     ((ICFSecuritySchema) schema.getBackingStore())
         .getTableSecGroup()
         .deleteSecGroupByClusterIdx(schema.getAuthorization(), ClusterId);
   }
 }
 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 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 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 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 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 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 deleteISOCountryByIdIdx(short Id) {
   CFSecurityISOCountryPKey pkey =
       ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newPKey();
   pkey.setRequiredId(Id);
   ICFSecurityISOCountryObj obj = readISOCountry(pkey);
   if (obj != null) {
     ICFSecurityISOCountryEditObj editObj = (ICFSecurityISOCountryEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecurityISOCountryEditObj) 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 ICFSecurityISOCountryObj readISOCountryByIdIdx(short Id, boolean forceRead) {
   CFSecurityISOCountryPKey pkey =
       ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newPKey();
   pkey.setRequiredId(Id);
   ICFSecurityISOCountryObj obj = readISOCountry(pkey, forceRead);
   return (obj);
 }
 public ICFSecuritySecGroupObj lockSecGroup(CFSecuritySecGroupPKey pkey) {
   ICFSecuritySecGroupObj locked = null;
   CFSecuritySecGroupBuff lockBuff =
       ((ICFSecuritySchema) schema.getBackingStore())
           .getTableSecGroup()
           .lockDerived(schema.getAuthorization(), pkey);
   if (lockBuff != null) {
     locked = schema.getSecGroupTableObj().newInstance();
     locked.setPKey(((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newPKey());
     locked.setBuff(lockBuff);
     locked = (ICFSecuritySecGroupObj) locked.realize();
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newCollisionDetectedException(getClass(), "lockSecGroup", pkey);
   }
   return (locked);
 }
 public ICFSecuritySecGroupObj readSecGroupByIdIdx(
     long ClusterId, int SecGroupId, boolean forceRead) {
   CFSecuritySecGroupPKey pkey =
       ((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newPKey();
   pkey.setRequiredClusterId(ClusterId);
   pkey.setRequiredSecGroupId(SecGroupId);
   ICFSecuritySecGroupObj obj = readSecGroup(pkey, forceRead);
   return (obj);
 }
 public ICFSecuritySecGroupIncludeObj readSecGroupIncludeByIdIdx(
     long ClusterId, long SecGroupIncludeId, boolean forceRead) {
   CFSecuritySecGroupIncludePKey pkey =
       ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey();
   pkey.setRequiredClusterId(ClusterId);
   pkey.setRequiredSecGroupIncludeId(SecGroupIncludeId);
   ICFSecuritySecGroupIncludeObj obj = readSecGroupInclude(pkey, forceRead);
   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 deleteSecGroupByUNameIdx(long ClusterId, String Name) {
   if (indexByUNameIdx == null) {
     indexByUNameIdx = new HashMap<CFSecuritySecGroupByUNameIdxKey, ICFSecuritySecGroupObj>();
   }
   CFSecuritySecGroupByUNameIdxKey key =
       ((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newUNameIdxKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredName(Name);
   ICFSecuritySecGroupObj obj = null;
   if (indexByUNameIdx.containsKey(key)) {
     obj = indexByUNameIdx.get(key);
     ((ICFSecuritySchema) schema.getBackingStore())
         .getTableSecGroup()
         .deleteSecGroupByUNameIdx(schema.getAuthorization(), ClusterId, Name);
     obj.forget(true);
   } else {
     ((ICFSecuritySchema) schema.getBackingStore())
         .getTableSecGroup()
         .deleteSecGroupByUNameIdx(schema.getAuthorization(), ClusterId, Name);
   }
 }
 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 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 void forgetISOCountryByIdIdx(short Id) {
   if (members == null) {
     return;
   }
   CFSecurityISOCountryPKey key =
       ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newPKey();
   key.setRequiredId(Id);
   if (members.containsKey(key)) {
     ICFSecurityISOCountryObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
  public void forgetISOCountry(ICFSecurityISOCountryObj Obj, boolean forgetSubObjects) {
    ICFSecurityISOCountryObj obj = Obj;
    CFSecurityISOCountryPKey pkey = obj.getPKey();
    if (members.containsKey(pkey)) {
      ICFSecurityISOCountryObj keepObj = members.get(pkey);
      // Detach object from alternate, duplicate, all and PKey indexes

      if (indexByISOCodeIdx != null) {
        CFSecurityISOCountryByISOCodeIdxKey keyISOCodeIdx =
            ((ICFInternetSchema) schema.getBackingStore())
                .getFactoryISOCountry()
                .newISOCodeIdxKey();
        keyISOCodeIdx.setRequiredISOCode(keepObj.getRequiredISOCode());
        indexByISOCodeIdx.remove(keyISOCodeIdx);
      }

      if (indexByNameIdx != null) {
        CFSecurityISOCountryByNameIdxKey keyNameIdx =
            ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newNameIdxKey();
        keyNameIdx.setRequiredName(keepObj.getRequiredName());
        indexByNameIdx.remove(keyNameIdx);
      }

      if (allISOCountry != null) {
        allISOCountry.remove(keepObj.getPKey());
      }
      members.remove(pkey);
      if (forgetSubObjects) {
        ((ICFSecuritySchemaObj) schema)
            .getISOCountryCurrencyTableObj()
            .forgetISOCountryCurrencyByCountryIdx(keepObj.getRequiredId());
        ((ICFSecuritySchemaObj) schema)
            .getISOCountryLanguageTableObj()
            .forgetISOCountryLanguageByCountryIdx(keepObj.getRequiredId());
      }
    }
  }
 public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   Container cont;
   JDesktopPane desktop;
   ICFSecuritySchemaObj schemaObj = swingSchema.getSchema();
   ICFSecuritySecAppObj focus = getSwingFocusAsSecApp();
   ICFSecuritySecAppEditObj editObj = (ICFSecuritySecAppEditObj) focus.getEdit();
   if (editObj != null) {
     focus = editObj;
   }
   ICFSecurityClusterObj referencedObj =
       (ICFSecurityClusterObj) focus.getRequiredContainerCluster(swingIsInitializing);
   java.util.List<ICFSecurityClusterObj> listOfCluster = null;
   listOfCluster = schemaObj.getClusterTableObj().readAllCluster();
   if (listOfCluster == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "listOfCluster");
   }
   Collection<ICFSecurityClusterObj> cltn = listOfCluster;
   JInternalFrame frame =
       swingSchema
           .getClusterFactory()
           .newPickerJInternalFrame(
               referencedObj, null, cltn, new CallbackSecAppClusterChosen());
   ((ICFSecuritySwingClusterJPanelCommon) frame).setPanelMode(CFJPanel.PanelMode.View);
   cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     JInternalFrame myInternalFrame = (JInternalFrame) cont;
     myInternalFrame.getDesktopPane().add(frame);
     frame.setVisible(true);
     frame.show();
   }
 }
 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 forgetISOCountryByNameIdx(String Name) {
    if (indexByNameIdx == null) {
      return;
    }
    CFSecurityISOCountryByNameIdxKey key =
        ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newNameIdxKey();
    key.setRequiredName(Name);
    if (indexByNameIdx.containsKey(key)) {
      ICFSecurityISOCountryObj probed = indexByNameIdx.get(key);
      if (probed != null) {
        probed.forget(true);
      }

      indexByNameIdx.remove(key);
    }
  }
  public void forgetSecGroupByUNameIdx(long ClusterId, String Name) {
    if (indexByUNameIdx == null) {
      return;
    }
    CFSecuritySecGroupByUNameIdxKey key =
        ((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newUNameIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredName(Name);
    if (indexByUNameIdx.containsKey(key)) {
      ICFSecuritySecGroupObj probed = indexByUNameIdx.get(key);
      if (probed != null) {
        probed.forget(true);
      }

      indexByUNameIdx.remove(key);
    }
  }
  public void forgetSecGroup(ICFSecuritySecGroupObj Obj, boolean forgetSubObjects) {
    ICFSecuritySecGroupObj obj = Obj;
    CFSecuritySecGroupPKey pkey = obj.getPKey();
    if (members.containsKey(pkey)) {
      ICFSecuritySecGroupObj keepObj = members.get(pkey);
      // Detach object from alternate, duplicate, all and PKey indexes

      if (indexByClusterIdx != null) {
        CFSecuritySecGroupByClusterIdxKey keyClusterIdx =
            ((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newClusterIdxKey();
        keyClusterIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        Map<CFSecuritySecGroupPKey, ICFSecuritySecGroupObj> mapClusterIdx =
            indexByClusterIdx.get(keyClusterIdx);
        if (mapClusterIdx != null) {
          mapClusterIdx.remove(keepObj.getPKey());
        }
      }

      if (indexByUNameIdx != null) {
        CFSecuritySecGroupByUNameIdxKey keyUNameIdx =
            ((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newUNameIdxKey();
        keyUNameIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        keyUNameIdx.setRequiredName(keepObj.getRequiredName());
        indexByUNameIdx.remove(keyUNameIdx);
      }

      if (allSecGroup != null) {
        allSecGroup.remove(keepObj.getPKey());
      }
      members.remove(pkey);
      if (forgetSubObjects) {
        ((ICFSecuritySchemaObj) schema)
            .getSecGroupIncludeTableObj()
            .forgetSecGroupIncludeByGroupIdx(
                keepObj.getRequiredClusterId(), keepObj.getRequiredSecGroupId());
        ((ICFSecuritySchemaObj) schema)
            .getSecGroupMemberTableObj()
            .forgetSecGroupMemberByGroupIdx(
                keepObj.getRequiredClusterId(), keepObj.getRequiredSecGroupId());
        ((ICFSecuritySchemaObj) schema)
            .getSecGroupIncludeTableObj()
            .forgetSecGroupIncludeByIncludeIdx(
                keepObj.getRequiredClusterId(), keepObj.getRequiredSecGroupId());
        ((ICFSecuritySchemaObj) schema)
            .getSecGroupFormTableObj()
            .forgetSecGroupFormByGroupIdx(
                keepObj.getRequiredClusterId(), keepObj.getRequiredSecGroupId());
      }
    }
  }
  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 startElement(String uri, String localName, String qName, Attributes attrs)
      throws SAXException {
    CFSecurityXMsgSchemaMessageFormatter schemaFormatter = null;
    try {
      // Common XML Attributes
      String attrId = null;
      String attrClusterId = null;
      String attrHostNodeId = null;
      // Attribute Extraction
      String attrLocalName;
      int numAttrs;
      int idxAttr;
      final String S_ProcName = "startElement";
      final String S_LocalName = "LocalName";

      assert qName.equals("RqstHostNodeDeleteByIdIdx");

      CFSecurityXMsgRqstHandler xmsgRqstHandler = (CFSecurityXMsgRqstHandler) getParser();
      if (xmsgRqstHandler == null) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "getParser()");
      }

      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();

      ICFSecuritySchemaObj schemaObj = xmsgRqstHandler.getSchemaObj();
      if (schemaObj == null) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "getParser().getSchemaObj()");
      }

      // Extract Attributes
      numAttrs = attrs.getLength();
      for (idxAttr = 0; idxAttr < numAttrs; idxAttr++) {
        attrLocalName = attrs.getLocalName(idxAttr);
        if (attrLocalName.equals("Id")) {
          if (attrId != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrId = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("ClusterId")) {
          if (attrClusterId != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrClusterId = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("HostNodeId")) {
          if (attrHostNodeId != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrHostNodeId = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("schemaLocation")) {
          // ignored
        } else {
          throw CFLib.getDefaultExceptionFactory()
              .newUnrecognizedAttributeException(
                  getClass(), S_ProcName, getParser().getLocationInfo(), attrLocalName);
        }
      }

      // Ensure that required attributes have values
      if ((attrClusterId == null) || (attrClusterId.length() <= 0)) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "ClusterId");
      }
      if ((attrHostNodeId == null) || (attrHostNodeId.length() <= 0)) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "HostNodeId");
      }

      // Save named attributes to context
      CFLibXmlCoreContext curContext = getParser().getCurContext();
      // Convert string attributes to native Java types

      long natClusterId;
      natClusterId = Long.parseLong(attrClusterId);

      long natHostNodeId;
      natHostNodeId = Long.parseLong(attrHostNodeId);

      // Delete the objects
      schemaObj.getHostNodeTableObj().deleteHostNodeByIdIdx(natClusterId, natHostNodeId);
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFSecurityXMsgHostNodeMessageFormatter.formatHostNodeRspnDeleted()
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      ((CFSecurityXMsgRqstHandler) getParser()).appendResponse(response);
    } catch (RuntimeException e) {
      CFSecurityXMsgRqstHandler xmsgRqstHandler = ((CFSecurityXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFSecurityXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    } catch (Error e) {
      CFSecurityXMsgRqstHandler xmsgRqstHandler = ((CFSecurityXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFSecurityXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    }
  }
  public void startElement(String uri, String localName, String qName, Attributes attrs)
      throws SAXException {
    CFSecurityXMsgSchemaMessageFormatter schemaFormatter = null;
    try {
      // Common XML Attributes
      String attrId = null;
      String attrRevision = null;
      // ISOCountryLanguage Attributes
      String attrISOCountryId = null;
      String attrISOLanguageId = null;
      String attrCreatedAt = null;
      String attrCreatedBy = null;
      String attrUpdatedAt = null;
      String attrUpdatedBy = null;
      // Attribute Extraction
      String attrLocalName;
      int numAttrs;
      int idxAttr;
      final String S_ProcName = "startElement";
      final String S_LocalName = "LocalName";

      assert qName.equals("RqstISOCountryLanguageCreate");

      CFSecurityXMsgRqstHandler xmsgRqstHandler = (CFSecurityXMsgRqstHandler) getParser();
      if (xmsgRqstHandler == null) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "getParser()");
      }

      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();

      ICFSecuritySchemaObj schemaObj = xmsgRqstHandler.getSchemaObj();
      if (schemaObj == null) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "getParser().getSchemaObj()");
      }

      // Instantiate an edit buffer for the parsed information
      ICFSecurityISOCountryLanguageEditObj editBuff =
          (ICFSecurityISOCountryLanguageEditObj)
              schemaObj.getISOCountryLanguageTableObj().newInstance().beginEdit();
      CFSecurityISOCountryLanguageBuff dataBuff =
          (CFSecurityISOCountryLanguageBuff) editBuff.getISOCountryLanguageBuff();
      // Extract Attributes
      numAttrs = attrs.getLength();
      for (idxAttr = 0; idxAttr < numAttrs; idxAttr++) {
        attrLocalName = attrs.getLocalName(idxAttr);
        if (attrLocalName.equals("Id")) {
          if (attrId != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrId = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("schemaLocation")) {
          // ignored
        } else if (attrLocalName.equals("Revision")) {
          if (attrRevision != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrRevision = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("CreatedAt")) {
          if (attrCreatedAt != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrCreatedAt = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("CreatedBy")) {
          if (attrCreatedBy != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrCreatedBy = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("UpdatedAt")) {
          if (attrUpdatedAt != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrUpdatedAt = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("UpdatedBy")) {
          if (attrUpdatedBy != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrUpdatedBy = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("ISOCountryId")) {
          if (attrISOCountryId != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrISOCountryId = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("ISOLanguageId")) {
          if (attrISOLanguageId != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrISOLanguageId = attrs.getValue(idxAttr);
        } else {
          throw CFLib.getDefaultExceptionFactory()
              .newUnrecognizedAttributeException(
                  getClass(), S_ProcName, getParser().getLocationInfo(), attrLocalName);
        }
      }

      // Ensure that required attributes have values
      if ((attrISOCountryId == null) || (attrISOCountryId.length() <= 0)) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "ISOCountryId");
      }
      if ((attrISOLanguageId == null) || (attrISOLanguageId.length() <= 0)) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "ISOLanguageId");
      }

      // Save named attributes to context
      CFLibXmlCoreContext curContext = getParser().getCurContext();

      // Convert string attributes to native Java types
      // and apply the converted attributes to the editBuff.
      short natISOCountryId = Short.parseShort(attrISOCountryId);

      dataBuff.setRequiredISOCountryId(natISOCountryId);

      short natISOLanguageId = Short.parseShort(attrISOLanguageId);

      dataBuff.setRequiredISOLanguageId(natISOLanguageId);

      UUID createdBy = null;
      if (attrCreatedBy != null) {
        createdBy = UUID.fromString(attrCreatedBy);
      }
      Calendar createdAt = null;
      if (attrCreatedAt != null) {
        createdAt = CFLibXmlUtil.parseTimestamp(attrCreatedAt);
      }
      UUID updatedBy = null;
      if (attrUpdatedBy != null) {
        updatedBy = UUID.fromString(attrUpdatedBy);
      }
      Calendar updatedAt = null;
      if (attrUpdatedAt != null) {
        updatedAt = CFLibXmlUtil.parseTimestamp(attrUpdatedAt);
      }
      if (createdBy != null) {
        dataBuff.setCreatedByUserId(createdBy);
      }
      if (createdAt != null) {
        dataBuff.setCreatedAt(createdAt);
      }
      if (updatedBy != null) {
        dataBuff.setUpdatedByUserId(updatedBy);
      }
      if (updatedAt != null) {
        dataBuff.setUpdatedAt(updatedAt);
      }
      //	Attempt the create
      editBuff.copyBuffToPKey(); // Allow for predefined ids
      ICFSecurityISOCountryLanguageObj created =
          (ICFSecurityISOCountryLanguageObj) editBuff.create();
      editBuff.endEdit();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFSecurityXMsgISOCountryLanguageMessageFormatter
                  .formatISOCountryLanguageRspnCreated(
                      "\n\t\t\t", created.getISOCountryLanguageBuff())
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      ((CFSecurityXMsgRqstHandler) getParser()).appendResponse(response);
    } catch (RuntimeException e) {
      CFSecurityXMsgRqstHandler xmsgRqstHandler = ((CFSecurityXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFSecurityXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    } catch (Error e) {
      CFSecurityXMsgRqstHandler xmsgRqstHandler = ((CFSecurityXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFSecurityXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    }
  }