List of usage examples for java.util LinkedList iterator
Iterator<E> iterator();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamDomainBaseTable.java
public void deleteDomainBaseByTenantIdx(CFAccAuthorization Authorization, CFAccDomainBaseByTenantIdxKey argKey) { final String S_ProcName = "deleteDomainBaseByTenantIdx"; CFAccDomainBaseBuff cur;/*from ww w . j a v a 2 s. c om*/ LinkedList<CFAccDomainBaseBuff> matchSet = new LinkedList<CFAccDomainBaseBuff>(); Iterator<CFAccDomainBaseBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccDomainBaseBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("BDOM".equals(subClassCode)) { schema.getTableDomainBase().deleteDomainBase(Authorization, cur); } else if ("TDOM".equals(subClassCode)) { schema.getTableTopDomain().deleteTopDomain(Authorization, (CFAccTopDomainBuff) cur); } else if ("DOMN".equals(subClassCode)) { schema.getTableDomain().deleteDomain(Authorization, (CFAccDomainBuff) cur); } else if ("BPRJ".equals(subClassCode)) { schema.getTableProjectBase().deleteProjectBase(Authorization, (CFAccProjectBaseBuff) cur); } else if ("RPRJ".equals(subClassCode)) { schema.getTableRealProject().deleteRealProject(Authorization, (CFAccRealProjectBuff) cur); } else if ("TPRJ".equals(subClassCode)) { schema.getTableTopProject().deleteTopProject(Authorization, (CFAccTopProjectBuff) cur); } else if ("SPRJ".equals(subClassCode)) { schema.getTableSubProject().deleteSubProject(Authorization, (CFAccSubProjectBuff) cur); } else if ("VERN".equals(subClassCode)) { schema.getTableVersion().deleteVersion(Authorization, (CFAccVersionBuff) cur); } else if ("MJVR".equals(subClassCode)) { schema.getTableMajorVersion().deleteMajorVersion(Authorization, (CFAccMajorVersionBuff) cur); } else if ("MNVR".equals(subClassCode)) { schema.getTableMinorVersion().deleteMinorVersion(Authorization, (CFAccMinorVersionBuff) cur); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "subClassCode", cur, "Instance of or subclass of DomainBase must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamDomainBaseTable.java
public void deleteDomainBaseByTenantIdx(CFAstAuthorization Authorization, CFAstDomainBaseByTenantIdxKey argKey) { final String S_ProcName = "deleteDomainBaseByTenantIdx"; CFAstDomainBaseBuff cur;/* w w w . j a v a2 s . c om*/ LinkedList<CFAstDomainBaseBuff> matchSet = new LinkedList<CFAstDomainBaseBuff>(); Iterator<CFAstDomainBaseBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAstDomainBaseBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("BDOM".equals(subClassCode)) { schema.getTableDomainBase().deleteDomainBase(Authorization, cur); } else if ("TDOM".equals(subClassCode)) { schema.getTableTopDomain().deleteTopDomain(Authorization, (CFAstTopDomainBuff) cur); } else if ("DOMN".equals(subClassCode)) { schema.getTableDomain().deleteDomain(Authorization, (CFAstDomainBuff) cur); } else if ("BPRJ".equals(subClassCode)) { schema.getTableProjectBase().deleteProjectBase(Authorization, (CFAstProjectBaseBuff) cur); } else if ("RPRJ".equals(subClassCode)) { schema.getTableRealProject().deleteRealProject(Authorization, (CFAstRealProjectBuff) cur); } else if ("TPRJ".equals(subClassCode)) { schema.getTableTopProject().deleteTopProject(Authorization, (CFAstTopProjectBuff) cur); } else if ("SPRJ".equals(subClassCode)) { schema.getTableSubProject().deleteSubProject(Authorization, (CFAstSubProjectBuff) cur); } else if ("VERN".equals(subClassCode)) { schema.getTableVersion().deleteVersion(Authorization, (CFAstVersionBuff) cur); } else if ("MJVR".equals(subClassCode)) { schema.getTableMajorVersion().deleteMajorVersion(Authorization, (CFAstMajorVersionBuff) cur); } else if ("MNVR".equals(subClassCode)) { schema.getTableMinorVersion().deleteMinorVersion(Authorization, (CFAstMinorVersionBuff) cur); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "subClassCode", cur, "Instance of or subclass of DomainBase must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamSecGroupTable.java
public void deleteSecGroupByClusterIdx(CFSecurityAuthorization Authorization, CFSecuritySecGroupByClusterIdxKey argKey) { CFSecuritySecGroupBuff cur;/*from w ww.j a va 2 s . c o m*/ LinkedList<CFSecuritySecGroupBuff> matchSet = new LinkedList<CFSecuritySecGroupBuff>(); Iterator<CFSecuritySecGroupBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFSecuritySecGroupBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteSecGroup(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamSecGroupTable.java
public void deleteSecGroupByUNameIdx(CFSecurityAuthorization Authorization, CFSecuritySecGroupByUNameIdxKey argKey) { CFSecuritySecGroupBuff cur;//w w w. j ava 2s . c o m LinkedList<CFSecuritySecGroupBuff> matchSet = new LinkedList<CFSecuritySecGroupBuff>(); Iterator<CFSecuritySecGroupBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFSecuritySecGroupBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteSecGroup(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactListTable.java
public void deleteContactListByTenantIdx(CFAccAuthorization Authorization, CFAccContactListByTenantIdxKey argKey) { CFAccContactListBuff cur;/*from ww w . j a va 2s. c om*/ LinkedList<CFAccContactListBuff> matchSet = new LinkedList<CFAccContactListBuff>(); Iterator<CFAccContactListBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccContactListBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteContactList(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactListTable.java
public void deleteContactListByUDescrIdx(CFAccAuthorization Authorization, CFAccContactListByUDescrIdxKey argKey) { CFAccContactListBuff cur;//from w ww . ja v a 2 s. c o m LinkedList<CFAccContactListBuff> matchSet = new LinkedList<CFAccContactListBuff>(); Iterator<CFAccContactListBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccContactListBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteContactList(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamTSecGroupTable.java
public void deleteTSecGroupByIdIdx(CFSecurityAuthorization Authorization, CFSecurityTSecGroupPKey argKey) { CFSecurityTSecGroupBuff cur;//from ww w. j a va2s .c o m LinkedList<CFSecurityTSecGroupBuff> matchSet = new LinkedList<CFSecurityTSecGroupBuff>(); Iterator<CFSecurityTSecGroupBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFSecurityTSecGroupBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteTSecGroup(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamISOLanguageTable.java
public void deleteISOLanguageByIdIdx(CFSecurityAuthorization Authorization, CFSecurityISOLanguagePKey argKey) { boolean anyNotNull = false; anyNotNull = true;//from w ww .j a v a2 s. c o m if (!anyNotNull) { return; } CFSecurityISOLanguageBuff cur; LinkedList<CFSecurityISOLanguageBuff> matchSet = new LinkedList<CFSecurityISOLanguageBuff>(); Iterator<CFSecurityISOLanguageBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFSecurityISOLanguageBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); cur = schema.getTableISOLanguage().readDerivedByIdIdx(Authorization, cur.getRequiredISOLanguageId()); deleteISOLanguage(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamTSecGroupTable.java
public void deleteTSecGroupByTenantIdx(CFSecurityAuthorization Authorization, CFSecurityTSecGroupByTenantIdxKey argKey) { CFSecurityTSecGroupBuff cur;//from w w w . j a va 2 s. c o m LinkedList<CFSecurityTSecGroupBuff> matchSet = new LinkedList<CFSecurityTSecGroupBuff>(); Iterator<CFSecurityTSecGroupBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFSecurityTSecGroupBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteTSecGroup(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamTSecGroupTable.java
public void deleteTSecGroupByUNameIdx(CFSecurityAuthorization Authorization, CFSecurityTSecGroupByUNameIdxKey argKey) { CFSecurityTSecGroupBuff cur;// www .jav a2 s .co m LinkedList<CFSecurityTSecGroupBuff> matchSet = new LinkedList<CFSecurityTSecGroupBuff>(); Iterator<CFSecurityTSecGroupBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFSecurityTSecGroupBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteTSecGroup(Authorization, cur); } }