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 void deleteServiceType(ICFSecurityServiceTypeObj Obj) {
   ICFSecurityServiceTypeObj obj = Obj;
   ((ICFAccSchema) schema.getBackingStore())
       .getTableServiceType()
       .deleteServiceType(schema.getAuthorization(), obj.getServiceTypeBuff());
   obj.forget(true);
 }
 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 void minimizeMemory() {
   allServiceType = null;
   indexByUDescrIdx = null;
   List<ICFSecurityServiceTypeObj> toForget = new LinkedList<ICFSecurityServiceTypeObj>();
   ICFSecurityServiceTypeObj cur = null;
   Iterator<ICFSecurityServiceTypeObj> iter = members.values().iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     toForget.add(cur);
   }
   iter = toForget.iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     cur.forget();
   }
 }
  public void forgetServiceTypeByUDescrIdx(String Description) {
    if (indexByUDescrIdx == null) {
      return;
    }
    CFSecurityServiceTypeByUDescrIdxKey key =
        ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newUDescrIdxKey();
    key.setRequiredDescription(Description);
    if (indexByUDescrIdx.containsKey(key)) {
      ICFSecurityServiceTypeObj probed = indexByUDescrIdx.get(key);
      if (probed != null) {
        probed.forget(true);
      }

      indexByUDescrIdx.remove(key);
    }
  }
 public void deleteServiceTypeByUDescrIdx(String Description) {
   if (indexByUDescrIdx == null) {
     indexByUDescrIdx =
         new HashMap<CFSecurityServiceTypeByUDescrIdxKey, ICFSecurityServiceTypeObj>();
   }
   CFSecurityServiceTypeByUDescrIdxKey key =
       ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newUDescrIdxKey();
   key.setRequiredDescription(Description);
   ICFSecurityServiceTypeObj obj = null;
   if (indexByUDescrIdx.containsKey(key)) {
     obj = indexByUDescrIdx.get(key);
     ((ICFAccSchema) schema.getBackingStore())
         .getTableServiceType()
         .deleteServiceTypeByUDescrIdx(schema.getAuthorization(), Description);
     obj.forget(true);
   } else {
     ((ICFAccSchema) schema.getBackingStore())
         .getTableServiceType()
         .deleteServiceTypeByUDescrIdx(schema.getAuthorization(), Description);
   }
 }