List of usage examples for java.util SortedMap remove
V remove(Object key);
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamVoicemailConfTable.java
public void deleteVoicemailConf(CFAstAuthorization Authorization, CFAstVoicemailConfBuff Buff) { final String S_ProcName = "CFAstRamVoicemailConfTable.deleteVoicemailConf() "; CFAstConfigurationFilePKey pkey = schema.getFactoryConfigurationFile().newPKey(); pkey.setRequiredClusterId(Buff.getRequiredClusterId()); pkey.setRequiredId(Buff.getRequiredId()); CFAstVoicemailConfBuff existing = dictByPKey.get(pkey); if (existing == null) { return;/*from ww w . ja v a 2 s.com*/ } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteVoicemailConf", pkey); } CFAstVoicemailConfByVMClusterIdxKey keyVMClusterIdx = schema.getFactoryVoicemailConf().newVMClusterIdxKey(); keyVMClusterIdx.setRequiredClusterId(existing.getRequiredClusterId()); // Validate reverse foreign keys // Delete is valid SortedMap<CFAstConfigurationFilePKey, CFAstVoicemailConfBuff> subdict; dictByPKey.remove(pkey); subdict = dictByVMClusterIdx.get(keyVMClusterIdx); subdict.remove(pkey); schema.getTableConfigurationFile().deleteConfigurationFile(Authorization, Buff); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamMinorVersionTable.java
public void deleteMinorVersion(CFAccAuthorization Authorization, CFAccMinorVersionBuff Buff) { final String S_ProcName = "CFAccRamMinorVersionTable.deleteMinorVersion() "; CFAccDomainBasePKey pkey = schema.getFactoryDomainBase().newPKey(); pkey.setRequiredTenantId(Buff.getRequiredTenantId()); pkey.setRequiredId(Buff.getRequiredId()); CFAccMinorVersionBuff existing = dictByPKey.get(pkey); if (existing == null) { return;/*from ww w. j a v a 2 s. co m*/ } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteMinorVersion", pkey); } CFAccMinorVersionByMajorIdxKey keyMajorIdx = schema.getFactoryMinorVersion().newMajorIdxKey(); keyMajorIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyMajorIdx.setRequiredMajorId(existing.getRequiredMajorId()); CFAccMinorVersionByNameIdxKey keyNameIdx = schema.getFactoryMinorVersion().newNameIdxKey(); keyNameIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyNameIdx.setRequiredMajorId(existing.getRequiredMajorId()); keyNameIdx.setRequiredName(existing.getRequiredName()); // Validate reverse foreign keys // Delete is valid SortedMap<CFAccDomainBasePKey, CFAccMinorVersionBuff> subdict; dictByPKey.remove(pkey); subdict = dictByMajorIdx.get(keyMajorIdx); subdict.remove(pkey); dictByNameIdx.remove(keyNameIdx); schema.getTableVersion().deleteVersion(Authorization, Buff); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamHostNodeTable.java
public void deleteHostNode(CFAstAuthorization Authorization, CFAstHostNodeBuff Buff) { final String S_ProcName = "CFAstRamHostNodeTable.deleteHostNode() "; CFAstHostNodePKey pkey = schema.getFactoryHostNode().newPKey(); pkey.setRequiredClusterId(Buff.getRequiredClusterId()); pkey.setRequiredHostNodeId(Buff.getRequiredHostNodeId()); CFAstHostNodeBuff existing = dictByPKey.get(pkey); if (existing == null) { return;//from w w w. jav a2s. c o m } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteHostNode", pkey); } CFAstHostNodeByClusterIdxKey keyClusterIdx = schema.getFactoryHostNode().newClusterIdxKey(); keyClusterIdx.setRequiredClusterId(existing.getRequiredClusterId()); CFAstHostNodeByUDescrIdxKey keyUDescrIdx = schema.getFactoryHostNode().newUDescrIdxKey(); keyUDescrIdx.setRequiredClusterId(existing.getRequiredClusterId()); keyUDescrIdx.setRequiredDescription(existing.getRequiredDescription()); CFAstHostNodeByHostNameIdxKey keyHostNameIdx = schema.getFactoryHostNode().newHostNameIdxKey(); keyHostNameIdx.setRequiredClusterId(existing.getRequiredClusterId()); keyHostNameIdx.setRequiredHostName(existing.getRequiredHostName()); // Validate reverse foreign keys // Delete is valid schema.getTableService().deleteServiceByHostIdx(Authorization, Buff.getRequiredClusterId(), Buff.getRequiredHostNodeId()); schema.getTableConfigurationFile().deleteConfigurationFileByHostIdx(Authorization, Buff.getRequiredClusterId(), Buff.getRequiredHostNodeId()); SortedMap<CFAstHostNodePKey, CFAstHostNodeBuff> subdict; dictByPKey.remove(pkey); subdict = dictByClusterIdx.get(keyClusterIdx); subdict.remove(pkey); dictByUDescrIdx.remove(keyUDescrIdx); dictByHostNameIdx.remove(keyHostNameIdx); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamMinorVersionTable.java
public void deleteMinorVersion(CFAstAuthorization Authorization, CFAstMinorVersionBuff Buff) { final String S_ProcName = "CFAstRamMinorVersionTable.deleteMinorVersion() "; CFAstDomainBasePKey pkey = schema.getFactoryDomainBase().newPKey(); pkey.setRequiredTenantId(Buff.getRequiredTenantId()); pkey.setRequiredId(Buff.getRequiredId()); CFAstMinorVersionBuff existing = dictByPKey.get(pkey); if (existing == null) { return;//w ww .j av a 2 s . co m } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteMinorVersion", pkey); } CFAstMinorVersionByMajorIdxKey keyMajorIdx = schema.getFactoryMinorVersion().newMajorIdxKey(); keyMajorIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyMajorIdx.setRequiredMajorId(existing.getRequiredMajorId()); CFAstMinorVersionByNameIdxKey keyNameIdx = schema.getFactoryMinorVersion().newNameIdxKey(); keyNameIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyNameIdx.setRequiredMajorId(existing.getRequiredMajorId()); keyNameIdx.setRequiredName(existing.getRequiredName()); // Validate reverse foreign keys // Delete is valid SortedMap<CFAstDomainBasePKey, CFAstMinorVersionBuff> subdict; dictByPKey.remove(pkey); subdict = dictByMajorIdx.get(keyMajorIdx); subdict.remove(pkey); dictByNameIdx.remove(keyNameIdx); schema.getTableVersion().deleteVersion(Authorization, Buff); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamAsteriskConfTable.java
public void deleteAsteriskConf(CFAstAuthorization Authorization, CFAstAsteriskConfBuff Buff) { final String S_ProcName = "CFAstRamAsteriskConfTable.deleteAsteriskConf() "; CFAstConfigurationFilePKey pkey = schema.getFactoryConfigurationFile().newPKey(); pkey.setRequiredClusterId(Buff.getRequiredClusterId()); pkey.setRequiredId(Buff.getRequiredId()); CFAstAsteriskConfBuff existing = dictByPKey.get(pkey); if (existing == null) { return;/*from www . j a v a2 s . c o m*/ } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteAsteriskConf", pkey); } CFAstAsteriskConfByConfClusterIdxKey keyConfClusterIdx = schema.getFactoryAsteriskConf() .newConfClusterIdxKey(); keyConfClusterIdx.setRequiredClusterId(existing.getRequiredClusterId()); // Validate reverse foreign keys // Delete is valid SortedMap<CFAstConfigurationFilePKey, CFAstAsteriskConfBuff> subdict; dictByPKey.remove(pkey); subdict = dictByConfClusterIdx.get(keyConfClusterIdx); subdict.remove(pkey); schema.getTableConfigurationFile().deleteConfigurationFile(Authorization, Buff); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamExtConfigConfTable.java
public void deleteExtConfigConf(CFAstAuthorization Authorization, CFAstExtConfigConfBuff Buff) { final String S_ProcName = "CFAstRamExtConfigConfTable.deleteExtConfigConf() "; CFAstConfigurationFilePKey pkey = schema.getFactoryConfigurationFile().newPKey(); pkey.setRequiredClusterId(Buff.getRequiredClusterId()); pkey.setRequiredId(Buff.getRequiredId()); CFAstExtConfigConfBuff existing = dictByPKey.get(pkey); if (existing == null) { return;/*ww w . j a v a 2 s. c om*/ } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteExtConfigConf", pkey); } CFAstExtConfigConfByExtCnfClusIdxKey keyExtCnfClusIdx = schema.getFactoryExtConfigConf() .newExtCnfClusIdxKey(); keyExtCnfClusIdx.setRequiredClusterId(existing.getRequiredClusterId()); // Validate reverse foreign keys // Delete is valid SortedMap<CFAstConfigurationFilePKey, CFAstExtConfigConfBuff> subdict; dictByPKey.remove(pkey); subdict = dictByExtCnfClusIdx.get(keyExtCnfClusIdx); subdict.remove(pkey); schema.getTableConfigurationFile().deleteConfigurationFile(Authorization, Buff); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamExtensionsConfTable.java
public void deleteExtensionsConf(CFAstAuthorization Authorization, CFAstExtensionsConfBuff Buff) { final String S_ProcName = "CFAstRamExtensionsConfTable.deleteExtensionsConf() "; CFAstConfigurationFilePKey pkey = schema.getFactoryConfigurationFile().newPKey(); pkey.setRequiredClusterId(Buff.getRequiredClusterId()); pkey.setRequiredId(Buff.getRequiredId()); CFAstExtensionsConfBuff existing = dictByPKey.get(pkey); if (existing == null) { return;/* w ww. jav a2s .c o m*/ } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteExtensionsConf", pkey); } CFAstExtensionsConfByExtClusterIdxKey keyExtClusterIdx = schema.getFactoryExtensionsConf() .newExtClusterIdxKey(); keyExtClusterIdx.setRequiredClusterId(existing.getRequiredClusterId()); // Validate reverse foreign keys // Delete is valid SortedMap<CFAstConfigurationFilePKey, CFAstExtensionsConfBuff> subdict; dictByPKey.remove(pkey); subdict = dictByExtClusterIdx.get(keyExtClusterIdx); subdict.remove(pkey); schema.getTableConfigurationFile().deleteConfigurationFile(Authorization, Buff); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamMajorVersionTable.java
public void deleteMajorVersion(CFAccAuthorization Authorization, CFAccMajorVersionBuff Buff) { final String S_ProcName = "CFAccRamMajorVersionTable.deleteMajorVersion() "; CFAccDomainBasePKey pkey = schema.getFactoryDomainBase().newPKey(); pkey.setRequiredTenantId(Buff.getRequiredTenantId()); pkey.setRequiredId(Buff.getRequiredId()); CFAccMajorVersionBuff existing = dictByPKey.get(pkey); if (existing == null) { return;/* w w w . j ava2s.c o m*/ } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteMajorVersion", pkey); } CFAccMajorVersionByPPrjIdxKey keyPPrjIdx = schema.getFactoryMajorVersion().newPPrjIdxKey(); keyPPrjIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyPPrjIdx.setRequiredParentProjectId(existing.getRequiredParentProjectId()); CFAccMajorVersionByNameIdxKey keyNameIdx = schema.getFactoryMajorVersion().newNameIdxKey(); keyNameIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyNameIdx.setRequiredParentProjectId(existing.getRequiredParentProjectId()); keyNameIdx.setRequiredName(existing.getRequiredName()); // Validate reverse foreign keys // Delete is valid schema.getTableMinorVersion().deleteMinorVersionByMajorIdx(Authorization, Buff.getRequiredTenantId(), Buff.getRequiredId()); SortedMap<CFAccDomainBasePKey, CFAccMajorVersionBuff> subdict; dictByPKey.remove(pkey); subdict = dictByPPrjIdx.get(keyPPrjIdx); subdict.remove(pkey); dictByNameIdx.remove(keyNameIdx); schema.getTableVersion().deleteVersion(Authorization, Buff); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSubProjectTable.java
public void deleteSubProject(CFAccAuthorization Authorization, CFAccSubProjectBuff Buff) { final String S_ProcName = "CFAccRamSubProjectTable.deleteSubProject() "; CFAccDomainBasePKey pkey = schema.getFactoryDomainBase().newPKey(); pkey.setRequiredTenantId(Buff.getRequiredTenantId()); pkey.setRequiredId(Buff.getRequiredId()); CFAccSubProjectBuff existing = dictByPKey.get(pkey); if (existing == null) { return;/*from w w w . j a va2s . co m*/ } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteSubProject", pkey); } CFAccSubProjectByParentIdxKey keyParentIdx = schema.getFactorySubProject().newParentIdxKey(); keyParentIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyParentIdx.setRequiredParentProjectId(existing.getRequiredParentProjectId()); CFAccSubProjectByNameIdxKey keyNameIdx = schema.getFactorySubProject().newNameIdxKey(); keyNameIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyNameIdx.setRequiredParentProjectId(existing.getRequiredParentProjectId()); keyNameIdx.setRequiredName(existing.getRequiredName()); // Validate reverse foreign keys // Delete is valid schema.getTableMajorVersion().deleteMajorVersionByPPrjIdx(Authorization, Buff.getRequiredTenantId(), Buff.getRequiredId()); SortedMap<CFAccDomainBasePKey, CFAccSubProjectBuff> subdict; dictByPKey.remove(pkey); subdict = dictByParentIdx.get(keyParentIdx); subdict.remove(pkey); dictByNameIdx.remove(keyNameIdx); schema.getTableRealProject().deleteRealProject(Authorization, Buff); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamMajorVersionTable.java
public void deleteMajorVersion(CFAstAuthorization Authorization, CFAstMajorVersionBuff Buff) { final String S_ProcName = "CFAstRamMajorVersionTable.deleteMajorVersion() "; CFAstDomainBasePKey pkey = schema.getFactoryDomainBase().newPKey(); pkey.setRequiredTenantId(Buff.getRequiredTenantId()); pkey.setRequiredId(Buff.getRequiredId()); CFAstMajorVersionBuff existing = dictByPKey.get(pkey); if (existing == null) { return;/*from w ww .j a v a 2 s. c o m*/ } if (existing.getRequiredRevision() != Buff.getRequiredRevision()) { throw CFLib.getDefaultExceptionFactory().newCollisionDetectedException(getClass(), "deleteMajorVersion", pkey); } CFAstMajorVersionByPPrjIdxKey keyPPrjIdx = schema.getFactoryMajorVersion().newPPrjIdxKey(); keyPPrjIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyPPrjIdx.setRequiredParentProjectId(existing.getRequiredParentProjectId()); CFAstMajorVersionByNameIdxKey keyNameIdx = schema.getFactoryMajorVersion().newNameIdxKey(); keyNameIdx.setRequiredTenantId(existing.getRequiredTenantId()); keyNameIdx.setRequiredParentProjectId(existing.getRequiredParentProjectId()); keyNameIdx.setRequiredName(existing.getRequiredName()); // Validate reverse foreign keys // Delete is valid schema.getTableMinorVersion().deleteMinorVersionByMajorIdx(Authorization, Buff.getRequiredTenantId(), Buff.getRequiredId()); SortedMap<CFAstDomainBasePKey, CFAstMajorVersionBuff> subdict; dictByPKey.remove(pkey); subdict = dictByPPrjIdx.get(keyPPrjIdx); subdict.remove(pkey); dictByNameIdx.remove(keyNameIdx); schema.getTableVersion().deleteVersion(Authorization, Buff); }