public void deleteISOCountryCurrencyByIdIdx(short ISOCountryId, short ISOCurrencyId) {
   CFSecurityISOCountryCurrencyPKey pkey =
       ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountryCurrency().newPKey();
   pkey.setRequiredISOCountryId(ISOCountryId);
   pkey.setRequiredISOCurrencyId(ISOCurrencyId);
   ICFSecurityISOCountryCurrencyObj obj = readISOCountryCurrency(pkey);
   if (obj != null) {
     ICFSecurityISOCountryCurrencyEditObj editObj =
         (ICFSecurityISOCountryCurrencyEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecurityISOCountryCurrencyEditObj) 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 minimizeMemory() {
   allISOCountryCurrency = null;
   indexByCountryIdx = null;
   indexByCurrencyIdx = null;
   List<ICFSecurityISOCountryCurrencyObj> toForget =
       new LinkedList<ICFSecurityISOCountryCurrencyObj>();
   ICFSecurityISOCountryCurrencyObj cur = null;
   Iterator<ICFSecurityISOCountryCurrencyObj> iter = members.values().iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     if (cur.getEdit() == null) {
       toForget.add(cur);
     }
   }
   iter = toForget.iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     cur.forget();
   }
 }