public static String formatSecGroupPKeyAttributes(String separator, CFSecuritySecGroupPKey pkey) {
   String retval =
       CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", pkey.getRequiredClusterId())
           + CFLibXmlUtil.formatRequiredInt32(
               separator, "SecGroupId", pkey.getRequiredSecGroupId());
   return (retval);
 }
 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);
     }
   }
 }
 public ICFSecuritySecGroupObj readSecGroup(CFSecuritySecGroupPKey pkey, boolean forceRead) {
   ICFSecuritySecGroupObj obj = null;
   if ((!forceRead) && members.containsKey(pkey)) {
     obj = members.get(pkey);
   } else {
     CFSecuritySecGroupBuff readBuff =
         ((ICFSecuritySchema) schema.getBackingStore())
             .getTableSecGroup()
             .readDerivedByIdIdx(
                 schema.getAuthorization(),
                 pkey.getRequiredClusterId(),
                 pkey.getRequiredSecGroupId());
     if (readBuff != null) {
       obj = schema.getSecGroupTableObj().newInstance();
       obj.setPKey(((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newPKey());
       obj.setBuff(readBuff);
       obj = (ICFSecuritySecGroupObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       members.put(pkey, null);
     }
   }
   return (obj);
 }