public void deleteSecAppByIdIdx(long ClusterId, int SecAppId) {
   CFSecuritySecAppPKey pkey =
       ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newPKey();
   pkey.setRequiredClusterId(ClusterId);
   pkey.setRequiredSecAppId(SecAppId);
   ICFSecuritySecAppObj obj = readSecApp(pkey);
   if (obj != null) {
     ICFSecuritySecAppEditObj editObj = (ICFSecuritySecAppEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecuritySecAppEditObj) 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 ICFSecuritySecAppObj readSecAppByIdIdx(long ClusterId, int SecAppId, boolean forceRead) {
   CFSecuritySecAppPKey pkey =
       ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newPKey();
   pkey.setRequiredClusterId(ClusterId);
   pkey.setRequiredSecAppId(SecAppId);
   ICFSecuritySecAppObj obj = readSecApp(pkey, forceRead);
   return (obj);
 }
 public void forgetSecAppByIdIdx(long ClusterId, int SecAppId) {
   if (members == null) {
     return;
   }
   CFSecuritySecAppPKey key =
       ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newPKey();
   key.setRequiredClusterId(ClusterId);
   key.setRequiredSecAppId(SecAppId);
   if (members.containsKey(key)) {
     ICFSecuritySecAppObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
 public ICFSecuritySecAppObj readSecApp(CFSecuritySecAppPKey pkey, boolean forceRead) {
   ICFSecuritySecAppObj obj = null;
   if ((!forceRead) && members.containsKey(pkey)) {
     obj = members.get(pkey);
   } else {
     CFSecuritySecAppBuff readBuff =
         ((ICFCrmSchema) schema.getBackingStore())
             .getTableSecApp()
             .readDerivedByIdIdx(
                 schema.getAuthorization(),
                 pkey.getRequiredClusterId(),
                 pkey.getRequiredSecAppId());
     if (readBuff != null) {
       obj = schema.getSecAppTableObj().newInstance();
       obj.setPKey(((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newPKey());
       obj.setBuff(readBuff);
       obj = (ICFSecuritySecAppObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       members.put(pkey, null);
     }
   }
   return (obj);
 }