public CFBamDelSubDep3Buff lockDerived(CFBamAuthorization Authorization, CFBamScopePKey PKey) { final String S_ProcName = "CFBamRamDelSubDep3.readDerived() "; CFBamScopePKey key = schema.getFactoryScope().newPKey(); key.setRequiredTenantId(PKey.getRequiredTenantId()); key.setRequiredId(PKey.getRequiredId()); CFBamDelSubDep3Buff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public ICFBamClearTopDepObj readClearTopDep(CFBamScopePKey pkey, boolean forceRead) { ICFBamClearTopDepObj obj = null; if ((!forceRead) && members.containsKey(pkey)) { obj = members.get(pkey); } else { CFBamClearTopDepBuff readBuff = schema .getBackingStore() .getTableClearTopDep() .readDerivedByIdIdx( schema.getAuthorization(), pkey.getRequiredTenantId(), pkey.getRequiredId()); if (readBuff != null) { obj = (ICFBamClearTopDepObj) schema.getScopeTableObj().constructByClassCode(readBuff.getClassCode()); obj.setPKey(schema.getBackingStore().getFactoryScope().newPKey()); obj.setBuff(readBuff); obj = (ICFBamClearTopDepObj) obj.realize(); } else if (schema.getCacheMisses()) { members.put(pkey, null); } } return (obj); }