public CFBamISOCurrencyBuff readBuffByCcyNmIdx(CFBamAuthorization Authorization, String Name) { final String S_ProcName = "CFBamRamISOCurrency.readBuffByCcyNmIdx() "; CFBamISOCurrencyBuff buff = readDerivedByCcyNmIdx(Authorization, Name); if ((buff != null) && buff.getClassCode().equals("ISCY")) { return ((CFBamISOCurrencyBuff) buff); } else { return (null); } }
public CFBamISOCurrencyBuff lockBuff( CFBamAuthorization Authorization, CFBamISOCurrencyPKey PKey) { final String S_ProcName = "CFBamRamISOCurrency.readBuff() "; CFBamISOCurrencyBuff buff = readDerived(Authorization, PKey); if ((buff != null) && (!buff.getClassCode().equals("ISCY"))) { buff = null; } return (buff); }
public CFBamISOCurrencyBuff[] readAllBuff(CFBamAuthorization Authorization) { final String S_ProcName = "CFBamRamISOCurrency.readAllBuff() "; CFBamISOCurrencyBuff buff; ArrayList<CFBamISOCurrencyBuff> filteredList = new ArrayList<CFBamISOCurrencyBuff>(); CFBamISOCurrencyBuff[] buffList = readAllDerived(Authorization); for (int idx = 0; idx < buffList.length; idx++) { buff = buffList[idx]; if ((buff != null) && buff.getClassCode().equals("ISCY")) { filteredList.add(buff); } } return (filteredList.toArray(new CFBamISOCurrencyBuff[0])); }