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 ICFSecurityTSecGroupMemberObj readTSecGroupMemberByUUserIdx( long TenantId, int TSecGroupId, UUID SecUserId, boolean forceRead) { if (indexByUUserIdx == null) { indexByUUserIdx = new HashMap<CFSecurityTSecGroupMemberByUUserIdxKey, ICFSecurityTSecGroupMemberObj>(); } CFSecurityTSecGroupMemberByUUserIdxKey key = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newUUserIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredTSecGroupId(TSecGroupId); key.setRequiredSecUserId(SecUserId); ICFSecurityTSecGroupMemberObj obj = null; if ((!forceRead) && indexByUUserIdx.containsKey(key)) { obj = indexByUUserIdx.get(key); } else { CFSecurityTSecGroupMemberBuff buff = ((ICFBamSchema) schema.getBackingStore()) .getTableTSecGroupMember() .readDerivedByUUserIdx(schema.getAuthorization(), TenantId, TSecGroupId, SecUserId); if (buff != null) { obj = schema.getTSecGroupMemberTableObj().newInstance(); obj.setPKey( ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newPKey()); obj.setBuff(buff); obj = (ICFSecurityTSecGroupMemberObj) obj.realize(); } else if (schema.getCacheMisses()) { indexByUUserIdx.put(key, null); } } return (obj); }
public ICFBamClearTopDepObj readClearTopDepByUNameIdx( long TenantId, long ContTableId, String Name, boolean forceRead) { if (indexByUNameIdx == null) { indexByUNameIdx = new HashMap<CFBamClearTopDepByUNameIdxKey, ICFBamClearTopDepObj>(); } CFBamClearTopDepByUNameIdxKey key = schema.getBackingStore().getFactoryClearTopDep().newUNameIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredContTableId(ContTableId); key.setRequiredName(Name); ICFBamClearTopDepObj obj = null; if ((!forceRead) && indexByUNameIdx.containsKey(key)) { obj = indexByUNameIdx.get(key); } else { CFBamClearTopDepBuff buff = schema .getBackingStore() .getTableClearTopDep() .readDerivedByUNameIdx(schema.getAuthorization(), TenantId, ContTableId, Name); if (buff != null) { obj = (ICFBamClearTopDepObj) schema.getScopeTableObj().constructByClassCode(buff.getClassCode()); obj.setPKey(schema.getBackingStore().getFactoryScope().newPKey()); obj.setBuff(buff); obj = (ICFBamClearTopDepObj) obj.realize(); } else if (schema.getCacheMisses()) { indexByUNameIdx.put(key, null); } } return (obj); }
public ICFSecurityTSecGroupMemberObj readTSecGroupMember( CFSecurityTSecGroupMemberPKey pkey, boolean forceRead) { ICFSecurityTSecGroupMemberObj obj = null; if ((!forceRead) && members.containsKey(pkey)) { obj = members.get(pkey); } else { CFSecurityTSecGroupMemberBuff readBuff = ((ICFBamSchema) schema.getBackingStore()) .getTableTSecGroupMember() .readDerivedByIdIdx( schema.getAuthorization(), pkey.getRequiredTenantId(), pkey.getRequiredTSecGroupMemberId()); if (readBuff != null) { obj = schema.getTSecGroupMemberTableObj().newInstance(); obj.setPKey( ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newPKey()); obj.setBuff(readBuff); obj = (ICFSecurityTSecGroupMemberObj) obj.realize(); } else if (schema.getCacheMisses()) { members.put(pkey, null); } } return (obj); }
public ICFCrmMemoObj readMemoByUDescrIdx( long TenantId, long ContactId, String Description, boolean forceRead) { if (indexByUDescrIdx == null) { indexByUDescrIdx = new HashMap<CFCrmMemoByUDescrIdxKey, ICFCrmMemoObj>(); } CFCrmMemoByUDescrIdxKey key = ((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newUDescrIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredContactId(ContactId); key.setRequiredDescription(Description); ICFCrmMemoObj obj = null; if ((!forceRead) && indexByUDescrIdx.containsKey(key)) { obj = indexByUDescrIdx.get(key); } else { CFCrmMemoBuff buff = ((ICFAccSchema) schema.getBackingStore()) .getTableMemo() .readDerivedByUDescrIdx(schema.getAuthorization(), TenantId, ContactId, Description); if (buff != null) { obj = schema.getMemoTableObj().newInstance(); obj.setPKey(((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newPKey()); obj.setBuff(buff); obj = (ICFCrmMemoObj) obj.realize(); } else if (schema.getCacheMisses()) { indexByUDescrIdx.put(key, null); } } return (obj); }
public void deleteTSecGroupMemberByUUserIdx(long TenantId, int TSecGroupId, UUID SecUserId) { if (indexByUUserIdx == null) { indexByUUserIdx = new HashMap<CFSecurityTSecGroupMemberByUUserIdxKey, ICFSecurityTSecGroupMemberObj>(); } CFSecurityTSecGroupMemberByUUserIdxKey key = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newUUserIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredTSecGroupId(TSecGroupId); key.setRequiredSecUserId(SecUserId); ICFSecurityTSecGroupMemberObj obj = null; if (indexByUUserIdx.containsKey(key)) { obj = indexByUUserIdx.get(key); ((ICFBamSchema) schema.getBackingStore()) .getTableTSecGroupMember() .deleteTSecGroupMemberByUUserIdx( schema.getAuthorization(), TenantId, TSecGroupId, SecUserId); obj.forget(true); } else { ((ICFBamSchema) schema.getBackingStore()) .getTableTSecGroupMember() .deleteTSecGroupMemberByUUserIdx( schema.getAuthorization(), TenantId, TSecGroupId, SecUserId); } }
public void forgetTSecGroupMember(ICFSecurityTSecGroupMemberObj Obj, boolean forgetSubObjects) { ICFSecurityTSecGroupMemberObj obj = Obj; CFSecurityTSecGroupMemberPKey pkey = obj.getPKey(); if (members.containsKey(pkey)) { ICFSecurityTSecGroupMemberObj keepObj = members.get(pkey); // Detach object from alternate, duplicate, all and PKey indexes if (indexByTenantIdx != null) { CFSecurityTSecGroupMemberByTenantIdxKey keyTenantIdx = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newTenantIdxKey(); keyTenantIdx.setRequiredTenantId(keepObj.getRequiredTenantId()); Map<CFSecurityTSecGroupMemberPKey, ICFSecurityTSecGroupMemberObj> mapTenantIdx = indexByTenantIdx.get(keyTenantIdx); if (mapTenantIdx != null) { mapTenantIdx.remove(keepObj.getPKey()); } } if (indexByGroupIdx != null) { CFSecurityTSecGroupMemberByGroupIdxKey keyGroupIdx = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newGroupIdxKey(); keyGroupIdx.setRequiredTenantId(keepObj.getRequiredTenantId()); keyGroupIdx.setRequiredTSecGroupId(keepObj.getRequiredTSecGroupId()); Map<CFSecurityTSecGroupMemberPKey, ICFSecurityTSecGroupMemberObj> mapGroupIdx = indexByGroupIdx.get(keyGroupIdx); if (mapGroupIdx != null) { mapGroupIdx.remove(keepObj.getPKey()); } } if (indexByUserIdx != null) { CFSecurityTSecGroupMemberByUserIdxKey keyUserIdx = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newUserIdxKey(); keyUserIdx.setRequiredSecUserId(keepObj.getRequiredSecUserId()); Map<CFSecurityTSecGroupMemberPKey, ICFSecurityTSecGroupMemberObj> mapUserIdx = indexByUserIdx.get(keyUserIdx); if (mapUserIdx != null) { mapUserIdx.remove(keepObj.getPKey()); } } if (indexByUUserIdx != null) { CFSecurityTSecGroupMemberByUUserIdxKey keyUUserIdx = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newUUserIdxKey(); keyUUserIdx.setRequiredTenantId(keepObj.getRequiredTenantId()); keyUUserIdx.setRequiredTSecGroupId(keepObj.getRequiredTSecGroupId()); keyUUserIdx.setRequiredSecUserId(keepObj.getRequiredSecUserId()); indexByUUserIdx.remove(keyUUserIdx); } if (allTSecGroupMember != null) { allTSecGroupMember.remove(keepObj.getPKey()); } members.remove(pkey); if (forgetSubObjects) {} } }
public void createISOCurrency(CFBamAuthorization Authorization, CFBamISOCurrencyBuff Buff) { final String S_ProcName = "createISOCurrency"; CFBamISOCurrencyPKey pkey = schema.getFactoryISOCurrency().newPKey(); pkey.setRequiredId(Buff.getRequiredId()); Buff.setRequiredId(pkey.getRequiredId()); CFBamISOCurrencyByCcyCdIdxKey keyCcyCdIdx = schema.getFactoryISOCurrency().newCcyCdIdxKey(); keyCcyCdIdx.setRequiredISOCode(Buff.getRequiredISOCode()); CFBamISOCurrencyByCcyNmIdxKey keyCcyNmIdx = schema.getFactoryISOCurrency().newCcyNmIdxKey(); keyCcyNmIdx.setRequiredName(Buff.getRequiredName()); // Validate unique indexes if (dictByPKey.containsKey(pkey)) { throw CFLib.getDefaultExceptionFactory() .newPrimaryKeyNotNewException(getClass(), S_ProcName, pkey); } if (dictByCcyCdIdx.containsKey(keyCcyCdIdx)) { throw CFLib.getDefaultExceptionFactory() .newUniqueIndexViolationException( getClass(), S_ProcName, "ISOCurrencyCodeIdx", keyCcyCdIdx); } if (dictByCcyNmIdx.containsKey(keyCcyNmIdx)) { throw CFLib.getDefaultExceptionFactory() .newUniqueIndexViolationException( getClass(), S_ProcName, "ISOCurrencyNameIdx", keyCcyNmIdx); } // Validate foreign keys // Proceed with adding the new record dictByPKey.put(pkey, Buff); dictByCcyCdIdx.put(keyCcyCdIdx, Buff); dictByCcyNmIdx.put(keyCcyNmIdx, Buff); }
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 CFBamISOCurrencyBuff readDerivedByCcyNmIdx(CFBamAuthorization Authorization, String Name) { final String S_ProcName = "CFBamRamISOCurrency.readDerivedByCcyNmIdx() "; CFBamISOCurrencyByCcyNmIdxKey key = schema.getFactoryISOCurrency().newCcyNmIdxKey(); key.setRequiredName(Name); CFBamISOCurrencyBuff buff; if (dictByCcyNmIdx.containsKey(key)) { buff = dictByCcyNmIdx.get(key); } else { buff = null; } return (buff); }
public CFBamISOCurrencyBuff readDerivedByIdIdx(CFBamAuthorization Authorization, short Id) { final String S_ProcName = "CFBamRamISOCurrency.readDerivedByIdIdx() "; CFBamISOCurrencyPKey key = schema.getFactoryISOCurrency().newPKey(); key.setRequiredId(Id); CFBamISOCurrencyBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public void forgetMemoByIdIdx(long TenantId, long MemoId) { if (members == null) { return; } CFCrmMemoPKey key = ((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newPKey(); key.setRequiredTenantId(TenantId); key.setRequiredMemoId(MemoId); if (members.containsKey(key)) { ICFCrmMemoObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }
public void forgetClearTopDepByIdIdx(long TenantId, long Id) { if (members == null) { return; } CFBamScopePKey key = schema.getBackingStore().getFactoryScope().newPKey(); key.setRequiredTenantId(TenantId); key.setRequiredId(Id); if (members.containsKey(key)) { ICFBamClearTopDepObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }
public CFSecuritySecGroupFormBuff lockDerived( CFSecurityAuthorization Authorization, CFSecuritySecGroupFormPKey PKey) { final String S_ProcName = "CFInternetRamSecGroupForm.readDerived"; CFSecuritySecGroupFormPKey key = schema.getFactorySecGroupForm().newPKey(); key.setRequiredClusterId(PKey.getRequiredClusterId()); key.setRequiredSecGroupFormId(PKey.getRequiredSecGroupFormId()); CFSecuritySecGroupFormBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public CFSecurityHostNodeBuff lockDerived( CFSecurityAuthorization Authorization, CFSecurityHostNodePKey PKey) { final String S_ProcName = "CFAccRamHostNode.readDerived"; CFSecurityHostNodePKey key = schema.getFactoryHostNode().newPKey(); key.setRequiredClusterId(PKey.getRequiredClusterId()); key.setRequiredHostNodeId(PKey.getRequiredHostNodeId()); CFSecurityHostNodeBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public CFSecurityTSecGroupMemberBuff lockDerived( CFSecurityAuthorization Authorization, CFSecurityTSecGroupMemberPKey PKey) { final String S_ProcName = "CFSecurityRamTSecGroupMember.readDerived"; CFSecurityTSecGroupMemberPKey key = schema.getFactoryTSecGroupMember().newPKey(); key.setRequiredTenantId(PKey.getRequiredTenantId()); key.setRequiredTSecGroupMemberId(PKey.getRequiredTSecGroupMemberId()); CFSecurityTSecGroupMemberBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public CFDbTestReqMinMaxValueBuff lockDerived( CFSecurityAuthorization Authorization, CFDbTestReqMinMaxValuePKey PKey) { final String S_ProcName = "CFDbTestRamReqMinMaxValue.readDerived"; CFDbTestReqMinMaxValuePKey key = schema.getFactoryReqMinMaxValue().newPKey(); key.setRequiredTenantId(PKey.getRequiredTenantId()); key.setRequiredId(PKey.getRequiredId()); CFDbTestReqMinMaxValueBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public void forgetMemo(ICFCrmMemoObj Obj, boolean forgetSubObjects) { ICFCrmMemoObj obj = Obj; CFCrmMemoPKey pkey = obj.getPKey(); if (members.containsKey(pkey)) { ICFCrmMemoObj keepObj = members.get(pkey); // Detach object from alternate, duplicate, all and PKey indexes if (indexByTenantIdx != null) { CFCrmMemoByTenantIdxKey keyTenantIdx = ((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newTenantIdxKey(); keyTenantIdx.setRequiredTenantId(keepObj.getRequiredTenantId()); Map<CFCrmMemoPKey, ICFCrmMemoObj> mapTenantIdx = indexByTenantIdx.get(keyTenantIdx); if (mapTenantIdx != null) { mapTenantIdx.remove(keepObj.getPKey()); } } if (indexByMemoContactIdx != null) { CFCrmMemoByMemoContactIdxKey keyMemoContactIdx = ((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newMemoContactIdxKey(); keyMemoContactIdx.setRequiredTenantId(keepObj.getRequiredTenantId()); keyMemoContactIdx.setRequiredContactId(keepObj.getRequiredContactId()); Map<CFCrmMemoPKey, ICFCrmMemoObj> mapMemoContactIdx = indexByMemoContactIdx.get(keyMemoContactIdx); if (mapMemoContactIdx != null) { mapMemoContactIdx.remove(keepObj.getPKey()); } } if (indexByUDescrIdx != null) { CFCrmMemoByUDescrIdxKey keyUDescrIdx = ((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newUDescrIdxKey(); keyUDescrIdx.setRequiredTenantId(keepObj.getRequiredTenantId()); keyUDescrIdx.setRequiredContactId(keepObj.getRequiredContactId()); keyUDescrIdx.setRequiredDescription(keepObj.getRequiredDescription()); indexByUDescrIdx.remove(keyUDescrIdx); } if (allMemo != null) { allMemo.remove(keepObj.getPKey()); } members.remove(pkey); if (forgetSubObjects) { ((ICFCrmSchemaObj) schema) .getMemoTagTableObj() .forgetMemoTagByMemoIdx(keepObj.getRequiredTenantId(), keepObj.getRequiredMemoId()); } } }
public void forgetTSecGroupMemberByIdIdx(long TenantId, long TSecGroupMemberId) { if (members == null) { return; } CFSecurityTSecGroupMemberPKey key = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newPKey(); key.setRequiredTenantId(TenantId); key.setRequiredTSecGroupMemberId(TSecGroupMemberId); if (members.containsKey(key)) { ICFSecurityTSecGroupMemberObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }
public CFDbTestReqMinMaxValueBuff readDerivedByUDescrIdx( CFSecurityAuthorization Authorization, long TenantId, String Description) { final String S_ProcName = "CFDbTestRamReqMinMaxValue.readDerivedByUDescrIdx"; CFDbTestReqMinMaxValueByUDescrIdxKey key = schema.getFactoryReqMinMaxValue().newUDescrIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredDescription(Description); CFDbTestReqMinMaxValueBuff buff; if (dictByUDescrIdx.containsKey(key)) { buff = dictByUDescrIdx.get(key); } else { buff = null; } return (buff); }
public CFDbTestNumberDefBuff readDerivedByIdIdx( CFSecurityAuthorization Authorization, long TenantId, long Id) { final String S_ProcName = "CFDbTestRamValue.readDerivedByIdIdx() "; CFDbTestValuePKey key = schema.getFactoryValue().newPKey(); key.setRequiredTenantId(TenantId); key.setRequiredId(Id); CFDbTestNumberDefBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
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); } } }
public CFSecurityHostNodeBuff readDerivedByHostNameIdx( CFSecurityAuthorization Authorization, long ClusterId, String HostName) { final String S_ProcName = "CFAccRamHostNode.readDerivedByHostNameIdx"; CFSecurityHostNodeByHostNameIdxKey key = schema.getFactoryHostNode().newHostNameIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredHostName(HostName); CFSecurityHostNodeBuff buff; if (dictByHostNameIdx.containsKey(key)) { buff = dictByHostNameIdx.get(key); } else { buff = null; } return (buff); }
public CFSecuritySecGroupFormBuff readDerivedByUFormIdx( CFSecurityAuthorization Authorization, long ClusterId, int SecGroupId, int SecFormId) { final String S_ProcName = "CFInternetRamSecGroupForm.readDerivedByUFormIdx"; CFSecuritySecGroupFormByUFormIdxKey key = schema.getFactorySecGroupForm().newUFormIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredSecGroupId(SecGroupId); key.setRequiredSecFormId(SecFormId); CFSecuritySecGroupFormBuff buff; if (dictByUFormIdx.containsKey(key)) { buff = dictByUFormIdx.get(key); } else { buff = null; } return (buff); }
public CFBamDelSubDep3Buff readDerivedByUNameIdx( CFBamAuthorization Authorization, long ContTenantId, long ContDelDep2Id, String Name) { final String S_ProcName = "CFBamRamDelSubDep3.readDerivedByUNameIdx() "; CFBamDelSubDep3ByUNameIdxKey key = schema.getFactoryDelSubDep3().newUNameIdxKey(); key.setRequiredContTenantId(ContTenantId); key.setRequiredContDelDep2Id(ContDelDep2Id); key.setRequiredName(Name); CFBamDelSubDep3Buff buff; if (dictByUNameIdx.containsKey(key)) { buff = dictByUNameIdx.get(key); } else { buff = null; } return (buff); }
public CFSecurityTSecGroupMemberBuff readDerivedByUUserIdx( CFSecurityAuthorization Authorization, long TenantId, int TSecGroupId, UUID SecUserId) { final String S_ProcName = "CFSecurityRamTSecGroupMember.readDerivedByUUserIdx"; CFSecurityTSecGroupMemberByUUserIdxKey key = schema.getFactoryTSecGroupMember().newUUserIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredTSecGroupId(TSecGroupId); key.setRequiredSecUserId(SecUserId); CFSecurityTSecGroupMemberBuff buff; if (dictByUUserIdx.containsKey(key)) { buff = dictByUUserIdx.get(key); } else { buff = null; } return (buff); }
public void forgetTSecGroupMemberByUUserIdx(long TenantId, int TSecGroupId, UUID SecUserId) { if (indexByUUserIdx == null) { return; } CFSecurityTSecGroupMemberByUUserIdxKey key = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newUUserIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredTSecGroupId(TSecGroupId); key.setRequiredSecUserId(SecUserId); if (indexByUUserIdx.containsKey(key)) { ICFSecurityTSecGroupMemberObj probed = indexByUUserIdx.get(key); if (probed != null) { probed.forget(true); } indexByUUserIdx.remove(key); } }
public void forgetClearTopDepByUNameIdx(long TenantId, long ContTableId, String Name) { if (indexByUNameIdx == null) { return; } CFBamClearTopDepByUNameIdxKey key = schema.getBackingStore().getFactoryClearTopDep().newUNameIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredContTableId(ContTableId); key.setRequiredName(Name); if (indexByUNameIdx.containsKey(key)) { ICFBamClearTopDepObj probed = indexByUNameIdx.get(key); if (probed != null) { probed.forget(true); } indexByUNameIdx.remove(key); } }
public void forgetMemoByUDescrIdx(long TenantId, long ContactId, String Description) { if (indexByUDescrIdx == null) { return; } CFCrmMemoByUDescrIdxKey key = ((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newUDescrIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredContactId(ContactId); key.setRequiredDescription(Description); if (indexByUDescrIdx.containsKey(key)) { ICFCrmMemoObj probed = indexByUDescrIdx.get(key); if (probed != null) { probed.forget(true); } indexByUDescrIdx.remove(key); } }
public void forgetISOCountryCurrency( ICFSecurityISOCountryCurrencyObj Obj, boolean forgetSubObjects) { ICFSecurityISOCountryCurrencyObj obj = Obj; CFSecurityISOCountryCurrencyPKey pkey = obj.getPKey(); if (members.containsKey(pkey)) { ICFSecurityISOCountryCurrencyObj keepObj = members.get(pkey); // Detach object from alternate, duplicate, all and PKey indexes if (indexByCountryIdx != null) { CFSecurityISOCountryCurrencyByCountryIdxKey keyCountryIdx = ((ICFInternetSchema) schema.getBackingStore()) .getFactoryISOCountryCurrency() .newCountryIdxKey(); keyCountryIdx.setRequiredISOCountryId(keepObj.getRequiredISOCountryId()); Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCountryIdx = indexByCountryIdx.get(keyCountryIdx); if (mapCountryIdx != null) { mapCountryIdx.remove(keepObj.getPKey()); } } if (indexByCurrencyIdx != null) { CFSecurityISOCountryCurrencyByCurrencyIdxKey keyCurrencyIdx = ((ICFInternetSchema) schema.getBackingStore()) .getFactoryISOCountryCurrency() .newCurrencyIdxKey(); keyCurrencyIdx.setRequiredISOCurrencyId(keepObj.getRequiredISOCurrencyId()); Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCurrencyIdx = indexByCurrencyIdx.get(keyCurrencyIdx); if (mapCurrencyIdx != null) { mapCurrencyIdx.remove(keepObj.getPKey()); } } if (allISOCountryCurrency != null) { allISOCountryCurrency.remove(keepObj.getPKey()); } members.remove(pkey); if (forgetSubObjects) {} } }