public CFGenKbISOCountryCurrencyBuff[] readAllDerived(CFGenKbAuthorization Authorization) { final String S_ProcName = "CFGenKbRamISOCountryCurrency.readAllDerived() "; CFGenKbISOCountryCurrencyBuff[] retList = new CFGenKbISOCountryCurrencyBuff[dictByPKey.values().size()]; Iterator<CFGenKbISOCountryCurrencyBuff> iter = dictByPKey.values().iterator(); int idx = 0; while (iter.hasNext()) { retList[idx++] = iter.next(); } return (retList); }
public CFGenKbISOCountryCurrencyBuff[] readDerivedByCurrencyIdx( CFGenKbAuthorization Authorization, short ISOCurrencyId) { final String S_ProcName = "CFGenKbRamISOCountryCurrency.readDerivedByCurrencyIdx() "; CFGenKbISOCountryCurrencyByCurrencyIdxKey key = schema.getFactoryISOCountryCurrency().newCurrencyIdxKey(); key.setRequiredISOCurrencyId(ISOCurrencyId); CFGenKbISOCountryCurrencyBuff[] recArray; if (dictByCurrencyIdx.containsKey(key)) { Map<CFGenKbISOCountryCurrencyPKey, CFGenKbISOCountryCurrencyBuff> subdictCurrencyIdx = dictByCurrencyIdx.get(key); recArray = new CFGenKbISOCountryCurrencyBuff[subdictCurrencyIdx.size()]; Iterator<CFGenKbISOCountryCurrencyBuff> iter = subdictCurrencyIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { Map<CFGenKbISOCountryCurrencyPKey, CFGenKbISOCountryCurrencyBuff> subdictCurrencyIdx = new HashMap<CFGenKbISOCountryCurrencyPKey, CFGenKbISOCountryCurrencyBuff>(); dictByCurrencyIdx.put(key, subdictCurrencyIdx); recArray = new CFGenKbISOCountryCurrencyBuff[0]; } return (recArray); }
public void deleteISOCountryCurrencyByCurrencyIdx( CFGenKbAuthorization Authorization, CFGenKbISOCountryCurrencyByCurrencyIdxKey argKey) { CFGenKbISOCountryCurrencyBuff cur; LinkedList<CFGenKbISOCountryCurrencyBuff> matchSet = new LinkedList<CFGenKbISOCountryCurrencyBuff>(); Iterator<CFGenKbISOCountryCurrencyBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFGenKbISOCountryCurrencyBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteISOCountryCurrency(Authorization, cur); } }
public CFGenKbCursor openISOCountryCurrencyCursorByCountryIdx( CFGenKbAuthorization Authorization, short ISOCountryId) { CFGenKbCursor cursor; CFGenKbISOCountryCurrencyByCountryIdxKey key = schema.getFactoryISOCountryCurrency().newCountryIdxKey(); key.setRequiredISOCountryId(ISOCountryId); if (dictByCountryIdx.containsKey(key)) { Map<CFGenKbISOCountryCurrencyPKey, CFGenKbISOCountryCurrencyBuff> subdictCountryIdx = dictByCountryIdx.get(key); cursor = new CFGenKbRamISOCountryCurrencyCursor(Authorization, schema, subdictCountryIdx.values()); } else { cursor = new CFGenKbRamISOCountryCurrencyCursor( Authorization, schema, new ArrayList<CFGenKbISOCountryCurrencyBuff>()); } return (cursor); }
public CFGenKbCursor openISOCountryCurrencyCursorAll(CFGenKbAuthorization Authorization) { CFGenKbCursor cursor = new CFGenKbRamISOCountryCurrencyCursor(Authorization, schema, dictByPKey.values()); return (cursor); }