public void deleteSecGroupByIdIdx(long ClusterId, int SecGroupId) {
   CFSecuritySecGroupPKey pkey =
       ((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newPKey();
   pkey.setRequiredClusterId(ClusterId);
   pkey.setRequiredSecGroupId(SecGroupId);
   ICFSecuritySecGroupObj obj = readSecGroup(pkey);
   if (obj != null) {
     ICFSecuritySecGroupEditObj editObj = (ICFSecuritySecGroupEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecuritySecGroupEditObj) 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 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 void forgetSecGroupByIdIdx(long ClusterId, int SecGroupId) {
   if (members == null) {
     return;
   }
   CFSecuritySecGroupPKey key =
       ((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newPKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredSecGroupId(SecGroupId);
   if (members.containsKey(key)) {
     ICFSecuritySecGroupObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }