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);
   }
 }