public CFBamDelSubDep3Buff[] readDerivedByContDelDep2Idx( CFBamAuthorization Authorization, long ContTenantId, long ContDelDep2Id) { final String S_ProcName = "CFBamRamDelSubDep3.readDerivedByContDelDep2Idx() "; CFBamDelSubDep3ByContDelDep2IdxKey key = schema.getFactoryDelSubDep3().newContDelDep2IdxKey(); key.setRequiredContTenantId(ContTenantId); key.setRequiredContDelDep2Id(ContDelDep2Id); CFBamDelSubDep3Buff[] recArray; if (dictByContDelDep2Idx.containsKey(key)) { Map<CFBamScopePKey, CFBamDelSubDep3Buff> subdictContDelDep2Idx = dictByContDelDep2Idx.get(key); recArray = new CFBamDelSubDep3Buff[subdictContDelDep2Idx.size()]; Iterator<CFBamDelSubDep3Buff> iter = subdictContDelDep2Idx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { Map<CFBamScopePKey, CFBamDelSubDep3Buff> subdictContDelDep2Idx = new HashMap<CFBamScopePKey, CFBamDelSubDep3Buff>(); dictByContDelDep2Idx.put(key, subdictContDelDep2Idx); recArray = new CFBamDelSubDep3Buff[0]; } return (recArray); }
public CFBamISOCurrencyBuff[] readAllDerived(CFBamAuthorization Authorization) { final String S_ProcName = "CFBamRamISOCurrency.readAllDerived() "; CFBamISOCurrencyBuff[] retList = new CFBamISOCurrencyBuff[dictByPKey.values().size()]; Iterator<CFBamISOCurrencyBuff> iter = dictByPKey.values().iterator(); int idx = 0; while (iter.hasNext()) { retList[idx++] = iter.next(); } return (retList); }
public void deleteDelSubDep3ByIdIdx(CFBamAuthorization Authorization, CFBamScopePKey argKey) { CFBamDelSubDep3Buff cur; LinkedList<CFBamDelSubDep3Buff> matchSet = new LinkedList<CFBamDelSubDep3Buff>(); Iterator<CFBamDelSubDep3Buff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFBamDelSubDep3Buff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteDelSubDep3(Authorization, cur); } }
public void deleteISOCurrencyByCcyNmIdx( CFBamAuthorization Authorization, CFBamISOCurrencyByCcyNmIdxKey argKey) { CFBamISOCurrencyBuff cur; LinkedList<CFBamISOCurrencyBuff> matchSet = new LinkedList<CFBamISOCurrencyBuff>(); Iterator<CFBamISOCurrencyBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFBamISOCurrencyBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteISOCurrency(Authorization, cur); } }