public void deleteISOCountryByIdIdx(short Id) {
   CFSecurityISOCountryPKey pkey =
       ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newPKey();
   pkey.setRequiredId(Id);
   ICFSecurityISOCountryObj obj = readISOCountry(pkey);
   if (obj != null) {
     ICFSecurityISOCountryEditObj editObj = (ICFSecurityISOCountryEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecurityISOCountryEditObj) 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 copyPKeyToBuff() {
   if (buff != null) {
     buff.setRequiredISOCountryId(getPKey().getRequiredISOCountryId());
   }
   if (edit != null) {
     edit.copyPKeyToBuff();
   }
 }