public void deleteServiceTypeByIdIdx(int ServiceTypeId) {
   CFSecurityServiceTypePKey pkey =
       ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newPKey();
   pkey.setRequiredServiceTypeId(ServiceTypeId);
   ICFSecurityServiceTypeObj obj = readServiceType(pkey);
   if (obj != null) {
     ICFSecurityServiceTypeEditObj editObj = (ICFSecurityServiceTypeEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecurityServiceTypeEditObj) 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 ICFSecurityServiceTypeObj readServiceTypeByIdIdx(int ServiceTypeId, boolean forceRead) {
   CFSecurityServiceTypePKey pkey =
       ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newPKey();
   pkey.setRequiredServiceTypeId(ServiceTypeId);
   ICFSecurityServiceTypeObj obj = readServiceType(pkey, forceRead);
   return (obj);
 }
 public void forgetServiceTypeByIdIdx(int ServiceTypeId) {
   if (members == null) {
     return;
   }
   CFSecurityServiceTypePKey key =
       ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newPKey();
   key.setRequiredServiceTypeId(ServiceTypeId);
   if (members.containsKey(key)) {
     ICFSecurityServiceTypeObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
 public ICFSecurityServiceTypeObj readServiceType(
     CFSecurityServiceTypePKey pkey, boolean forceRead) {
   ICFSecurityServiceTypeObj obj = null;
   if ((!forceRead) && members.containsKey(pkey)) {
     obj = members.get(pkey);
   } else {
     CFSecurityServiceTypeBuff readBuff =
         ((ICFAccSchema) schema.getBackingStore())
             .getTableServiceType()
             .readDerivedByIdIdx(schema.getAuthorization(), pkey.getRequiredServiceTypeId());
     if (readBuff != null) {
       obj = schema.getServiceTypeTableObj().newInstance();
       obj.setPKey(((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newPKey());
       obj.setBuff(readBuff);
       obj = (ICFSecurityServiceTypeObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       members.put(pkey, null);
     }
   }
   return (obj);
 }