List of usage examples for java.util LinkedList iterator
Iterator<E> iterator();
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamProjectBaseTable.java
public void deleteProjectBaseByIdIdx(CFSecurityAuthorization Authorization, CFInternetDomainBasePKey argKey) { final String S_ProcName = "deleteProjectBaseByIdIdx"; CFInternetProjectBaseBuff cur;/*from w w w . j ava 2s. com*/ LinkedList<CFInternetProjectBaseBuff> matchSet = new LinkedList<CFInternetProjectBaseBuff>(); Iterator<CFInternetProjectBaseBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFInternetProjectBaseBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("BPRJ".equals(subClassCode)) { schema.getTableProjectBase().deleteProjectBase(Authorization, cur); } else if ("RPRJ".equals(subClassCode)) { schema.getTableRealProject().deleteRealProject(Authorization, (CFInternetRealProjectBuff) cur); } else if ("TPRJ".equals(subClassCode)) { schema.getTableTopProject().deleteTopProject(Authorization, (CFInternetTopProjectBuff) cur); } else if ("SPRJ".equals(subClassCode)) { schema.getTableSubProject().deleteSubProject(Authorization, (CFInternetSubProjectBuff) cur); } else if ("VERN".equals(subClassCode)) { schema.getTableVersion().deleteVersion(Authorization, (CFInternetVersionBuff) cur); } else if ("MJVR".equals(subClassCode)) { schema.getTableMajorVersion().deleteMajorVersion(Authorization, (CFInternetMajorVersionBuff) cur); } else if ("MNVR".equals(subClassCode)) { schema.getTableMinorVersion().deleteMinorVersion(Authorization, (CFInternetMinorVersionBuff) cur); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "subClassCode", cur, "Instance of or subclass of ProjectBase must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamProjectBaseTable.java
public void deleteProjectBaseByTenantIdx(CFSecurityAuthorization Authorization, CFInternetDomainBaseByTenantIdxKey argKey) { final String S_ProcName = "deleteProjectBaseByTenantIdx"; CFInternetProjectBaseBuff cur;/*from w w w . j av a 2 s . c om*/ LinkedList<CFInternetProjectBaseBuff> matchSet = new LinkedList<CFInternetProjectBaseBuff>(); Iterator<CFInternetProjectBaseBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFInternetProjectBaseBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("BPRJ".equals(subClassCode)) { schema.getTableProjectBase().deleteProjectBase(Authorization, cur); } else if ("RPRJ".equals(subClassCode)) { schema.getTableRealProject().deleteRealProject(Authorization, (CFInternetRealProjectBuff) cur); } else if ("TPRJ".equals(subClassCode)) { schema.getTableTopProject().deleteTopProject(Authorization, (CFInternetTopProjectBuff) cur); } else if ("SPRJ".equals(subClassCode)) { schema.getTableSubProject().deleteSubProject(Authorization, (CFInternetSubProjectBuff) cur); } else if ("VERN".equals(subClassCode)) { schema.getTableVersion().deleteVersion(Authorization, (CFInternetVersionBuff) cur); } else if ("MJVR".equals(subClassCode)) { schema.getTableMajorVersion().deleteMajorVersion(Authorization, (CFInternetMajorVersionBuff) cur); } else if ("MNVR".equals(subClassCode)) { schema.getTableMinorVersion().deleteMinorVersion(Authorization, (CFInternetMinorVersionBuff) cur); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "subClassCode", cur, "Instance of or subclass of ProjectBase must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamRealProjectTable.java
public void deleteRealProjectByIdIdx(CFSecurityAuthorization Authorization, CFInternetDomainBasePKey argKey) { final String S_ProcName = "deleteRealProjectByIdIdx"; boolean anyNotNull = false; anyNotNull = true;/*from w ww. j a v a2 s. c om*/ anyNotNull = true; if (!anyNotNull) { return; } CFInternetRealProjectBuff cur; LinkedList<CFInternetRealProjectBuff> matchSet = new LinkedList<CFInternetRealProjectBuff>(); Iterator<CFInternetRealProjectBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFInternetRealProjectBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); cur = schema.getTableRealProject().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(), cur.getRequiredId()); String subClassCode = cur.getClassCode(); if ("RPRJ".equals(subClassCode)) { schema.getTableRealProject().deleteRealProject(Authorization, cur); } else if ("TPRJ".equals(subClassCode)) { schema.getTableTopProject().deleteTopProject(Authorization, (CFInternetTopProjectBuff) cur); } else if ("SPRJ".equals(subClassCode)) { schema.getTableSubProject().deleteSubProject(Authorization, (CFInternetSubProjectBuff) cur); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "subClassCode", cur, "Instance of or subclass of RealProject must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamRealProjectTable.java
public void deleteRealProjectByTenantIdx(CFSecurityAuthorization Authorization, CFInternetDomainBaseByTenantIdxKey argKey) { final String S_ProcName = "deleteRealProjectByTenantIdx"; CFInternetRealProjectBuff cur;//w w w .j a v a 2s . c o m boolean anyNotNull = false; anyNotNull = true; if (!anyNotNull) { return; } LinkedList<CFInternetRealProjectBuff> matchSet = new LinkedList<CFInternetRealProjectBuff>(); Iterator<CFInternetRealProjectBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFInternetRealProjectBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); cur = schema.getTableRealProject().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(), cur.getRequiredId()); String subClassCode = cur.getClassCode(); if ("RPRJ".equals(subClassCode)) { schema.getTableRealProject().deleteRealProject(Authorization, cur); } else if ("TPRJ".equals(subClassCode)) { schema.getTableTopProject().deleteTopProject(Authorization, (CFInternetTopProjectBuff) cur); } else if ("SPRJ".equals(subClassCode)) { schema.getTableSubProject().deleteSubProject(Authorization, (CFInternetSubProjectBuff) cur); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "subClassCode", cur, "Instance of or subclass of RealProject must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamISOCurrencyTable.java
public void deleteISOCurrencyByIdIdx(CFAccAuthorization Authorization, CFAccISOCurrencyPKey argKey) { CFAccISOCurrencyBuff cur;// w w w . ja v a 2 s. c o m LinkedList<CFAccISOCurrencyBuff> matchSet = new LinkedList<CFAccISOCurrencyBuff>(); Iterator<CFAccISOCurrencyBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccISOCurrencyBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteISOCurrency(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfcore.v2_1.CFGenKbRam.CFGenKbRamDefClassTable.java
public void deleteDefClassByIdIdx(CFGenKbAuthorization Authorization, CFGenKbDefClassPKey argKey) { CFGenKbDefClassBuff cur;//from w w w . ja va 2 s .com LinkedList<CFGenKbDefClassBuff> matchSet = new LinkedList<CFGenKbDefClassBuff>(); Iterator<CFGenKbDefClassBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFGenKbDefClassBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteDefClass(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfcore.v2_1.CFGenKbRam.CFGenKbRamDefClassTable.java
public void deleteDefClassByNameIdx(CFGenKbAuthorization Authorization, CFGenKbDefClassByNameIdxKey argKey) { CFGenKbDefClassBuff cur;//from w w w .j a v a 2s . com LinkedList<CFGenKbDefClassBuff> matchSet = new LinkedList<CFGenKbDefClassBuff>(); Iterator<CFGenKbDefClassBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFGenKbDefClassBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteDefClass(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfcore.v2_1.CFGenKbRam.CFGenKbRamDefClassTable.java
public void deleteDefClassByBaseIdx(CFGenKbAuthorization Authorization, CFGenKbDefClassByBaseIdxKey argKey) { CFGenKbDefClassBuff cur;// w w w .j av a2 s. c om LinkedList<CFGenKbDefClassBuff> matchSet = new LinkedList<CFGenKbDefClassBuff>(); Iterator<CFGenKbDefClassBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFGenKbDefClassBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteDefClass(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamISOCurrencyTable.java
public void deleteISOCurrencyByCcyCdIdx(CFAccAuthorization Authorization, CFAccISOCurrencyByCcyCdIdxKey argKey) { CFAccISOCurrencyBuff cur;// w ww .j a va 2 s . c o m LinkedList<CFAccISOCurrencyBuff> matchSet = new LinkedList<CFAccISOCurrencyBuff>(); Iterator<CFAccISOCurrencyBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccISOCurrencyBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteISOCurrency(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamISOCurrencyTable.java
public void deleteISOCurrencyByCcyNmIdx(CFAccAuthorization Authorization, CFAccISOCurrencyByCcyNmIdxKey argKey) { CFAccISOCurrencyBuff cur;//from w w w. j av a 2 s. co m LinkedList<CFAccISOCurrencyBuff> matchSet = new LinkedList<CFAccISOCurrencyBuff>(); Iterator<CFAccISOCurrencyBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccISOCurrencyBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteISOCurrency(Authorization, cur); } }