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 readISOCountryCurrency( CFSecurityISOCountryCurrencyPKey pkey, boolean forceRead) { ICFSecurityISOCountryCurrencyObj obj = null; if ((!forceRead) && members.containsKey(pkey)) { obj = members.get(pkey); } else { CFSecurityISOCountryCurrencyBuff readBuff = ((ICFInternetSchema) schema.getBackingStore()) .getTableISOCountryCurrency() .readDerivedByIdIdx( schema.getAuthorization(), pkey.getRequiredISOCountryId(), pkey.getRequiredISOCurrencyId()); if (readBuff != null) { obj = schema.getISOCountryCurrencyTableObj().newInstance(); obj.setPKey( ((ICFInternetSchema) schema.getBackingStore()) .getFactoryISOCountryCurrency() .newPKey()); obj.setBuff(readBuff); obj = (ICFSecurityISOCountryCurrencyObj) obj.realize(); } else if (schema.getCacheMisses()) { members.put(pkey, null); } } return (obj); }
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); } } }