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 ICFSecurityISOCountryCurrencyObj readISOCountryCurrencyByIdIdx( short ISOCountryId, short ISOCurrencyId, boolean forceRead) { CFSecurityISOCountryCurrencyPKey pkey = ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountryCurrency().newPKey(); pkey.setRequiredISOCountryId(ISOCountryId); pkey.setRequiredISOCurrencyId(ISOCurrencyId); ICFSecurityISOCountryCurrencyObj obj = readISOCountryCurrency(pkey, forceRead); return (obj); }
public void forgetISOCountryCurrencyByIdIdx(short ISOCountryId, short ISOCurrencyId) { if (members == null) { return; } CFSecurityISOCountryCurrencyPKey key = ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountryCurrency().newPKey(); key.setRequiredISOCountryId(ISOCountryId); key.setRequiredISOCurrencyId(ISOCurrencyId); if (members.containsKey(key)) { ICFSecurityISOCountryCurrencyObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }