public CFSecurityISOLanguageBuff lockDerived( CFSecurityAuthorization Authorization, CFSecurityISOLanguagePKey PKey) { final String S_ProcName = "CFInternetRamISOLanguage.readDerived"; CFSecurityISOLanguagePKey key = schema.getFactoryISOLanguage().newPKey(); key.setRequiredISOLanguageId(PKey.getRequiredISOLanguageId()); CFSecurityISOLanguageBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public CFSecurityISOLanguageBuff readDerivedByCode3Idx( CFSecurityAuthorization Authorization, String ISO6392Code) { final String S_ProcName = "CFInternetRamISOLanguage.readDerivedByCode3Idx"; CFSecurityISOLanguageByCode3IdxKey key = schema.getFactoryISOLanguage().newCode3IdxKey(); key.setRequiredISO6392Code(ISO6392Code); CFSecurityISOLanguageBuff buff; if (dictByCode3Idx.containsKey(key)) { buff = dictByCode3Idx.get(key); } else { buff = null; } return (buff); }
public CFSecuritySecFormBuff lockDerived( CFSecurityAuthorization Authorization, CFSecuritySecFormPKey PKey) { final String S_ProcName = "CFInternetRamSecForm.readDerived"; CFSecuritySecFormPKey key = schema.getFactorySecForm().newPKey(); key.setRequiredClusterId(PKey.getRequiredClusterId()); key.setRequiredSecFormId(PKey.getRequiredSecFormId()); CFSecuritySecFormBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public void deleteOptFullRange( CFSecurityAuthorization Authorization, CFDbTestOptFullRangeBuff Buff) { final String S_ProcName = "CFDbTestRamOptFullRangeTable.deleteOptFullRange() "; CFDbTestOptFullRangePKey pkey = schema.getFactoryOptFullRange().newPKey(); pkey.setRequiredId(Buff.getRequiredId()); CFDbTestOptFullRangeBuff existing = dictByPKey.get(pkey); if (existing == null) { return; } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory() .newCollisionDetectedException(getClass(), "deleteOptFullRange", pkey); } CFDbTestOptFullRangeByUDescrIdxKey keyUDescrIdx = schema.getFactoryOptFullRange().newUDescrIdxKey(); keyUDescrIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyUDescrIdx.setRequiredDescription(existing.getRequiredDescription()); CFDbTestOptFullRangeByTenantIdxKey keyTenantIdx = schema.getFactoryOptFullRange().newTenantIdxKey(); keyTenantIdx.setRequiredTenantId(existing.getRequiredTenantId()); // Validate reverse foreign keys // Delete is valid Map<CFDbTestOptFullRangePKey, CFDbTestOptFullRangeBuff> subdict; dictByPKey.remove(pkey); dictByUDescrIdx.remove(keyUDescrIdx); subdict = dictByTenantIdx.get(keyTenantIdx); subdict.remove(pkey); }
public void deleteLoaderBehaviour( CFSecurityAuthorization Authorization, CFDbTestLoaderBehaviourBuff Buff) { final String S_ProcName = "CFDbTestRamLoaderBehaviourTable.deleteLoaderBehaviour() "; CFDbTestLoaderBehaviourPKey pkey = schema.getFactoryLoaderBehaviour().newPKey(); pkey.setRequiredId(Buff.getRequiredId()); CFDbTestLoaderBehaviourBuff existing = dictByPKey.get(pkey); if (existing == null) { return; } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory() .newCollisionDetectedException(getClass(), "deleteLoaderBehaviour", pkey); } CFDbTestLoaderBehaviourByUNameIdxKey keyUNameIdx = schema.getFactoryLoaderBehaviour().newUNameIdxKey(); keyUNameIdx.setRequiredName(existing.getRequiredName()); // Validate reverse foreign keys // Delete is valid Map<CFDbTestLoaderBehaviourPKey, CFDbTestLoaderBehaviourBuff> subdict; dictByPKey.remove(pkey); dictByUNameIdx.remove(keyUNameIdx); }
public void forgetSecDevice(ICFSecuritySecDeviceObj Obj, boolean forgetSubObjects) { ICFSecuritySecDeviceObj obj = Obj; CFSecuritySecDevicePKey pkey = obj.getPKey(); if (members.containsKey(pkey)) { ICFSecuritySecDeviceObj keepObj = members.get(pkey); // Detach object from alternate, duplicate, all and PKey indexes if (indexByUserIdx != null) { CFSecuritySecDeviceByUserIdxKey keyUserIdx = ((ICFAsteriskSchema) schema.getBackingStore()).getFactorySecDevice().newUserIdxKey(); keyUserIdx.setRequiredSecUserId(keepObj.getRequiredSecUserId()); Map<CFSecuritySecDevicePKey, ICFSecuritySecDeviceObj> mapUserIdx = indexByUserIdx.get(keyUserIdx); if (mapUserIdx != null) { mapUserIdx.remove(keepObj.getPKey()); } } if (allSecDevice != null) { allSecDevice.remove(keepObj.getPKey()); } members.remove(pkey); if (forgetSubObjects) {} } }
public ICFInternetDomainObj readDomainByNameIdx( long TenantId, long SubDomainOfId, String Name, boolean forceRead) { if (indexByNameIdx == null) { indexByNameIdx = new HashMap<CFInternetDomainByNameIdxKey, ICFInternetDomainObj>(); } CFInternetDomainByNameIdxKey key = ((ICFBamSchema) schema.getBackingStore()).getFactoryDomain().newNameIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredSubDomainOfId(SubDomainOfId); key.setRequiredName(Name); ICFInternetDomainObj obj = null; if ((!forceRead) && indexByNameIdx.containsKey(key)) { obj = indexByNameIdx.get(key); } else { CFInternetDomainBuff buff = ((ICFBamSchema) schema.getBackingStore()) .getTableDomain() .readDerivedByNameIdx(schema.getAuthorization(), TenantId, SubDomainOfId, Name); if (buff != null) { obj = (ICFInternetDomainObj) schema.getDomainBaseTableObj().constructByClassCode(buff.getClassCode()); obj.setPKey(((ICFBamSchema) schema.getBackingStore()).getFactoryDomainBase().newPKey()); obj.setBuff(buff); obj = (ICFInternetDomainObj) obj.realize(); } else if (schema.getCacheMisses()) { indexByNameIdx.put(key, null); } } return (obj); }
public void deleteSecDevice(CFSecurityAuthorization Authorization, CFSecuritySecDeviceBuff Buff) { final String S_ProcName = "CFAsteriskRamSecDeviceTable.deleteSecDevice() "; CFSecuritySecDevicePKey pkey = schema.getFactorySecDevice().newPKey(); pkey.setRequiredSecUserId(Buff.getRequiredSecUserId()); pkey.setRequiredDevName(Buff.getRequiredDevName()); CFSecuritySecDeviceBuff existing = dictByPKey.get(pkey); if (existing == null) { return; } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory() .newCollisionDetectedException(getClass(), "deleteSecDevice", pkey); } CFSecuritySecDeviceByUserIdxKey keyUserIdx = schema.getFactorySecDevice().newUserIdxKey(); keyUserIdx.setRequiredSecUserId(existing.getRequiredSecUserId()); // Validate reverse foreign keys // Delete is valid Map<CFSecuritySecDevicePKey, CFSecuritySecDeviceBuff> subdict; dictByPKey.remove(pkey); subdict = dictByUserIdx.get(keyUserIdx); subdict.remove(pkey); }
public void updateSecDevice(CFSecurityAuthorization Authorization, CFSecuritySecDeviceBuff Buff) { CFSecuritySecDevicePKey pkey = schema.getFactorySecDevice().newPKey(); pkey.setRequiredSecUserId(Buff.getRequiredSecUserId()); pkey.setRequiredDevName(Buff.getRequiredDevName()); CFSecuritySecDeviceBuff existing = dictByPKey.get(pkey); if (existing == null) { throw CFLib.getDefaultExceptionFactory() .newStaleCacheDetectedException( getClass(), "updateSecDevice", "Existing record not found", "SecDevice", pkey); } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory() .newCollisionDetectedException(getClass(), "updateSecDevice", pkey); } Buff.setRequiredRevision(Buff.getRequiredRevision() + 1); CFSecuritySecDeviceByUserIdxKey existingKeyUserIdx = schema.getFactorySecDevice().newUserIdxKey(); existingKeyUserIdx.setRequiredSecUserId(existing.getRequiredSecUserId()); CFSecuritySecDeviceByUserIdxKey newKeyUserIdx = schema.getFactorySecDevice().newUserIdxKey(); newKeyUserIdx.setRequiredSecUserId(Buff.getRequiredSecUserId()); // Check unique indexes // Validate foreign keys { boolean allNull = true; if (allNull) { if (null == schema .getTableSecUser() .readDerivedByIdIdx(Authorization, Buff.getRequiredSecUserId())) { throw CFLib.getDefaultExceptionFactory() .newUnresolvedRelationException( getClass(), "updateSecDevice", "Container", "SecDeviceSecUser", "SecUser", null); } } } // Update is valid Map<CFSecuritySecDevicePKey, CFSecuritySecDeviceBuff> subdict; dictByPKey.remove(pkey); dictByPKey.put(pkey, Buff); subdict = dictByUserIdx.get(existingKeyUserIdx); if (subdict != null) { subdict.remove(pkey); } if (dictByUserIdx.containsKey(newKeyUserIdx)) { subdict = dictByUserIdx.get(newKeyUserIdx); } else { subdict = new HashMap<CFSecuritySecDevicePKey, CFSecuritySecDeviceBuff>(); dictByUserIdx.put(newKeyUserIdx, subdict); } subdict.put(pkey, Buff); }
public CFSecuritySecFormBuff readDerivedByUJEEServletIdx( CFSecurityAuthorization Authorization, long ClusterId, int SecAppId, String JEEServletMapName) { final String S_ProcName = "CFInternetRamSecForm.readDerivedByUJEEServletIdx"; CFSecuritySecFormByUJEEServletIdxKey key = schema.getFactorySecForm().newUJEEServletIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredSecAppId(SecAppId); key.setRequiredJEEServletMapName(JEEServletMapName); CFSecuritySecFormBuff buff; if (dictByUJEEServletIdx.containsKey(key)) { buff = dictByUJEEServletIdx.get(key); } else { buff = null; } return (buff); }
public void deleteSecForm(CFSecurityAuthorization Authorization, CFSecuritySecFormBuff Buff) { final String S_ProcName = "CFInternetRamSecFormTable.deleteSecForm() "; CFSecuritySecFormPKey pkey = schema.getFactorySecForm().newPKey(); pkey.setRequiredClusterId(Buff.getRequiredClusterId()); pkey.setRequiredSecFormId(Buff.getRequiredSecFormId()); CFSecuritySecFormBuff existing = dictByPKey.get(pkey); if (existing == null) { return; } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory() .newCollisionDetectedException(getClass(), "deleteSecForm", pkey); } CFSecuritySecFormByClusterIdxKey keyClusterIdx = schema.getFactorySecForm().newClusterIdxKey(); keyClusterIdx.setRequiredClusterId(existing.getRequiredClusterId()); CFSecuritySecFormBySecAppIdxKey keySecAppIdx = schema.getFactorySecForm().newSecAppIdxKey(); keySecAppIdx.setRequiredClusterId(existing.getRequiredClusterId()); keySecAppIdx.setRequiredSecAppId(existing.getRequiredSecAppId()); CFSecuritySecFormByUJEEServletIdxKey keyUJEEServletIdx = schema.getFactorySecForm().newUJEEServletIdxKey(); keyUJEEServletIdx.setRequiredClusterId(existing.getRequiredClusterId()); keyUJEEServletIdx.setRequiredSecAppId(existing.getRequiredSecAppId()); keyUJEEServletIdx.setRequiredJEEServletMapName(existing.getRequiredJEEServletMapName()); // Validate reverse foreign keys // Delete is valid Map<CFSecuritySecFormPKey, CFSecuritySecFormBuff> subdict; dictByPKey.remove(pkey); subdict = dictByClusterIdx.get(keyClusterIdx); subdict.remove(pkey); subdict = dictBySecAppIdx.get(keySecAppIdx); subdict.remove(pkey); dictByUJEEServletIdx.remove(keyUJEEServletIdx); }
public CFSecurityClusterBuff readDerivedByIdIdx(CFSecurityAuthorization Authorization, long Id) { final String S_ProcName = "CFDbTestRamCluster.readDerivedByIdIdx() "; CFSecurityClusterPKey key = schema.getFactoryCluster().newPKey(); key.setRequiredId(Id); CFSecurityClusterBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public CFDbTestOptFullRangeBuff readDerived( CFSecurityAuthorization Authorization, CFDbTestOptFullRangePKey PKey) { final String S_ProcName = "CFDbTestRamOptFullRange.readDerived"; CFDbTestOptFullRangePKey key = schema.getFactoryOptFullRange().newPKey(); key.setRequiredId(PKey.getRequiredId()); CFDbTestOptFullRangeBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public CFDbTestLoaderBehaviourBuff lockDerived( CFSecurityAuthorization Authorization, CFDbTestLoaderBehaviourPKey PKey) { final String S_ProcName = "CFDbTestRamLoaderBehaviour.readDerived"; CFDbTestLoaderBehaviourPKey key = schema.getFactoryLoaderBehaviour().newPKey(); key.setRequiredId(PKey.getRequiredId()); CFDbTestLoaderBehaviourBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public CFBamUuidDefBuff readDerived(CFSecurityAuthorization Authorization, CFBamValuePKey PKey) { final String S_ProcName = "CFBamRamUuidDef.readDerived"; CFBamValuePKey key = schema.getFactoryValue().newPKey(); key.setRequiredTenantId(PKey.getRequiredTenantId()); key.setRequiredId(PKey.getRequiredId()); CFBamUuidDefBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public void forgetDomain(ICFInternetDomainObj Obj, boolean forgetSubObjects) { ICFInternetDomainObj obj = Obj; CFInternetDomainBasePKey pkey = obj.getPKey(); if (members.containsKey(pkey)) { ICFInternetDomainObj keepObj = members.get(pkey); // Detach object from alternate, duplicate, all and PKey indexes if (indexByTenantIdx != null) { CFInternetDomainBaseByTenantIdxKey keyTenantIdx = ((ICFBamSchema) schema.getBackingStore()).getFactoryDomainBase().newTenantIdxKey(); keyTenantIdx.setRequiredTenantId(keepObj.getRequiredTenantId()); Map<CFInternetDomainBasePKey, ICFInternetDomainObj> mapTenantIdx = indexByTenantIdx.get(keyTenantIdx); if (mapTenantIdx != null) { indexByTenantIdx.remove(keyTenantIdx); } } if (indexBySubDomIdx != null) { CFInternetDomainBySubDomIdxKey keySubDomIdx = ((ICFBamSchema) schema.getBackingStore()).getFactoryDomain().newSubDomIdxKey(); keySubDomIdx.setRequiredTenantId(keepObj.getRequiredTenantId()); keySubDomIdx.setRequiredSubDomainOfId(keepObj.getRequiredSubDomainOfId()); Map<CFInternetDomainBasePKey, ICFInternetDomainObj> mapSubDomIdx = indexBySubDomIdx.get(keySubDomIdx); if (mapSubDomIdx != null) { mapSubDomIdx.remove(keepObj.getPKey()); } } if (indexByNameIdx != null) { CFInternetDomainByNameIdxKey keyNameIdx = ((ICFBamSchema) schema.getBackingStore()).getFactoryDomain().newNameIdxKey(); keyNameIdx.setRequiredTenantId(keepObj.getRequiredTenantId()); keyNameIdx.setRequiredSubDomainOfId(keepObj.getRequiredSubDomainOfId()); keyNameIdx.setRequiredName(keepObj.getRequiredName()); indexByNameIdx.remove(keyNameIdx); } if (allDomain != null) { allDomain.remove(keepObj.getPKey()); } members.remove(pkey); if (forgetSubObjects) { ((ICFInternetSchemaObj) schema) .getTopProjectTableObj() .forgetTopProjectByDomainIdx(keepObj.getRequiredTenantId(), keepObj.getRequiredId()); } } ((ICFBamSchemaObj) schema).getDomainBaseTableObj().forgetDomainBase(obj); }
public CFSecurityHostNodeBuff lockDerived( CFSecurityAuthorization Authorization, CFSecurityHostNodePKey PKey) { final String S_ProcName = "CFBamRamHostNode.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 CFDbTestLoaderBehaviourBuff readDerivedByUNameIdx( CFSecurityAuthorization Authorization, String Name) { final String S_ProcName = "CFDbTestRamLoaderBehaviour.readDerivedByUNameIdx"; CFDbTestLoaderBehaviourByUNameIdxKey key = schema.getFactoryLoaderBehaviour().newUNameIdxKey(); key.setRequiredName(Name); CFDbTestLoaderBehaviourBuff buff; if (dictByUNameIdx.containsKey(key)) { buff = dictByUNameIdx.get(key); } else { buff = null; } return (buff); }
public CFSecuritySecGroupMemberBuff readDerived( CFSecurityAuthorization Authorization, CFSecuritySecGroupMemberPKey PKey) { final String S_ProcName = "CFFreeSwitchRamSecGroupMember.readDerived"; CFSecuritySecGroupMemberPKey key = schema.getFactorySecGroupMember().newPKey(); key.setRequiredClusterId(PKey.getRequiredClusterId()); key.setRequiredSecGroupMemberId(PKey.getRequiredSecGroupMemberId()); CFSecuritySecGroupMemberBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public CFSecuritySecDeviceBuff lockDerived( CFSecurityAuthorization Authorization, CFSecuritySecDevicePKey PKey) { final String S_ProcName = "CFAsteriskRamSecDevice.readDerived"; CFSecuritySecDevicePKey key = schema.getFactorySecDevice().newPKey(); key.setRequiredSecUserId(PKey.getRequiredSecUserId()); key.setRequiredDevName(PKey.getRequiredDevName()); CFSecuritySecDeviceBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public CFSecurityClusterBuff readDerivedByUDescrIdx( CFSecurityAuthorization Authorization, String Description) { final String S_ProcName = "CFDbTestRamCluster.readDerivedByUDescrIdx"; CFSecurityClusterByUDescrIdxKey key = schema.getFactoryCluster().newUDescrIdxKey(); key.setRequiredDescription(Description); CFSecurityClusterBuff buff; if (dictByUDescrIdx.containsKey(key)) { buff = dictByUDescrIdx.get(key); } else { buff = null; } return (buff); }
public void deleteISOLanguage( CFSecurityAuthorization Authorization, CFSecurityISOLanguageBuff Buff) { final String S_ProcName = "CFInternetRamISOLanguageTable.deleteISOLanguage() "; CFSecurityISOLanguagePKey pkey = schema.getFactoryISOLanguage().newPKey(); pkey.setRequiredISOLanguageId(Buff.getRequiredISOLanguageId()); CFSecurityISOLanguageBuff existing = dictByPKey.get(pkey); if (existing == null) { return; } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory() .newCollisionDetectedException(getClass(), "deleteISOLanguage", pkey); } CFSecurityISOLanguageByCode3IdxKey keyCode3Idx = schema.getFactoryISOLanguage().newCode3IdxKey(); keyCode3Idx.setRequiredISO6392Code(existing.getRequiredISO6392Code()); CFSecurityISOLanguageByCode2IdxKey keyCode2Idx = schema.getFactoryISOLanguage().newCode2IdxKey(); keyCode2Idx.setOptionalISO6391Code(existing.getOptionalISO6391Code()); // Validate reverse foreign keys // Delete is valid schema .getTableISOCountryLanguage() .deleteISOCountryLanguageByLanguageIdx(Authorization, Buff.getRequiredISOLanguageId()); Map<CFSecurityISOLanguagePKey, CFSecurityISOLanguageBuff> subdict; dictByPKey.remove(pkey); dictByCode3Idx.remove(keyCode3Idx); subdict = dictByCode2Idx.get(keyCode2Idx); subdict.remove(pkey); }
public void updateLoaderBehaviour( CFSecurityAuthorization Authorization, CFDbTestLoaderBehaviourBuff Buff) { CFDbTestLoaderBehaviourPKey pkey = schema.getFactoryLoaderBehaviour().newPKey(); pkey.setRequiredId(Buff.getRequiredId()); CFDbTestLoaderBehaviourBuff existing = dictByPKey.get(pkey); if (existing == null) { throw CFLib.getDefaultExceptionFactory() .newStaleCacheDetectedException( getClass(), "updateLoaderBehaviour", "Existing record not found", "LoaderBehaviour", pkey); } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory() .newCollisionDetectedException(getClass(), "updateLoaderBehaviour", pkey); } Buff.setRequiredRevision(Buff.getRequiredRevision() + 1); CFDbTestLoaderBehaviourByUNameIdxKey existingKeyUNameIdx = schema.getFactoryLoaderBehaviour().newUNameIdxKey(); existingKeyUNameIdx.setRequiredName(existing.getRequiredName()); CFDbTestLoaderBehaviourByUNameIdxKey newKeyUNameIdx = schema.getFactoryLoaderBehaviour().newUNameIdxKey(); newKeyUNameIdx.setRequiredName(Buff.getRequiredName()); // Check unique indexes if (!existingKeyUNameIdx.equals(newKeyUNameIdx)) { if (dictByUNameIdx.containsKey(newKeyUNameIdx)) { throw CFLib.getDefaultExceptionFactory() .newUniqueIndexViolationException( getClass(), "updateLoaderBehaviour", "LoaderBehaviourUNameIdx", newKeyUNameIdx); } } // Validate foreign keys // Update is valid Map<CFDbTestLoaderBehaviourPKey, CFDbTestLoaderBehaviourBuff> subdict; dictByPKey.remove(pkey); dictByPKey.put(pkey, Buff); dictByUNameIdx.remove(existingKeyUNameIdx); dictByUNameIdx.put(newKeyUNameIdx, Buff); }
public CFSecurityHostNodeBuff readDerivedByHostNameIdx( CFSecurityAuthorization Authorization, long ClusterId, String HostName) { final String S_ProcName = "CFBamRamHostNode.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); }
protected long generateNextId64(long argId, short argSliceId) { CFDbTestRamClusterId64Gen key = new CFDbTestRamClusterId64Gen(); key.setRequiredId(argId); key.setRequiredSliceId(argSliceId); CFDbTestRamClusterId64Gen useGen = id64Generator.get(key); if (useGen == null) { id64Generator.put(key, key); useGen = key; } long retNext = useGen.getNextId(); return (retNext); }
public CFDbTestOptFullRangeBuff readDerivedByUDescrIdx( CFSecurityAuthorization Authorization, long TenantId, String Description) { final String S_ProcName = "CFDbTestRamOptFullRange.readDerivedByUDescrIdx"; CFDbTestOptFullRangeByUDescrIdxKey key = schema.getFactoryOptFullRange().newUDescrIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredDescription(Description); CFDbTestOptFullRangeBuff buff; if (dictByUDescrIdx.containsKey(key)) { buff = dictByUDescrIdx.get(key); } else { buff = null; } return (buff); }
public CFSecurityServiceBuff readDerivedByIdIdx( CFSecurityAuthorization Authorization, long ClusterId, long ServiceId) { final String S_ProcName = "CFBamRamService.readDerivedByIdIdx() "; CFSecurityServicePKey key = schema.getFactoryService().newPKey(); key.setRequiredClusterId(ClusterId); key.setRequiredServiceId(ServiceId); CFSecurityServiceBuff buff; if (dictByPKey.containsKey(key)) { buff = dictByPKey.get(key); } else { buff = null; } return (buff); }
public void forgetSecDeviceByIdIdx(UUID SecUserId, String DevName) { if (members == null) { return; } CFSecuritySecDevicePKey key = ((ICFAsteriskSchema) schema.getBackingStore()).getFactorySecDevice().newPKey(); key.setRequiredSecUserId(SecUserId); key.setRequiredDevName(DevName); if (members.containsKey(key)) { ICFSecuritySecDeviceObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }
public void forgetDomainByIdIdx(long TenantId, long Id) { if (members == null) { return; } CFInternetDomainBasePKey key = ((ICFBamSchema) schema.getBackingStore()).getFactoryDomainBase().newPKey(); key.setRequiredTenantId(TenantId); key.setRequiredId(Id); if (members.containsKey(key)) { ICFInternetDomainObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }
public CFSecuritySecGroupMemberBuff readDerivedByUUserIdx( CFSecurityAuthorization Authorization, long ClusterId, int SecGroupId, UUID SecUserId) { final String S_ProcName = "CFFreeSwitchRamSecGroupMember.readDerivedByUUserIdx"; CFSecuritySecGroupMemberByUUserIdxKey key = schema.getFactorySecGroupMember().newUUserIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredSecGroupId(SecGroupId); key.setRequiredSecUserId(SecUserId); CFSecuritySecGroupMemberBuff buff; if (dictByUUserIdx.containsKey(key)) { buff = dictByUUserIdx.get(key); } else { buff = null; } return (buff); }