List of usage examples for java.util LinkedList iterator
Iterator<E> iterator();
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamISOCurrencyTable.java
public void deleteISOCurrencyByCcyNmIdx(CFSecurityAuthorization Authorization, CFSecurityISOCurrencyByCcyNmIdxKey argKey) { CFSecurityISOCurrencyBuff cur;//from ww w . j av a 2 s. c o m boolean anyNotNull = false; anyNotNull = true; if (!anyNotNull) { return; } LinkedList<CFSecurityISOCurrencyBuff> matchSet = new LinkedList<CFSecurityISOCurrencyBuff>(); Iterator<CFSecurityISOCurrencyBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFSecurityISOCurrencyBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); cur = schema.getTableISOCurrency().readDerivedByIdIdx(Authorization, cur.getRequiredISOCurrencyId()); deleteISOCurrency(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashRam.CFGCashRamURLProtocolTable.java
public void deleteURLProtocolByIsSecureIdx(CFGCashAuthorization Authorization, CFGCashURLProtocolByIsSecureIdxKey argKey) { CFGCashURLProtocolBuff cur;/*from w w w . j av a 2 s .c om*/ LinkedList<CFGCashURLProtocolBuff> matchSet = new LinkedList<CFGCashURLProtocolBuff>(); Iterator<CFGCashURLProtocolBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFGCashURLProtocolBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteURLProtocol(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamProjectBaseTable.java
public void deleteProjectBaseByIdIdx(CFSecurityAuthorization Authorization, CFInternetDomainBasePKey argKey) { final String S_ProcName = "deleteProjectBaseByIdIdx"; boolean anyNotNull = false; anyNotNull = true;//from w ww .j a va2 s. c om anyNotNull = true; if (!anyNotNull) { return; } CFInternetProjectBaseBuff cur; 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(); cur = schema.getTableProjectBase().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(), cur.getRequiredId()); 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.CFBamRamProjectBaseTable.java
public void deleteProjectBaseByTenantIdx(CFSecurityAuthorization Authorization, CFInternetDomainBaseByTenantIdxKey argKey) { final String S_ProcName = "deleteProjectBaseByTenantIdx"; CFInternetProjectBaseBuff cur;/*from w w w . j a v a 2s.c o m*/ boolean anyNotNull = false; anyNotNull = true; if (!anyNotNull) { return; } 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(); cur = schema.getTableProjectBase().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(), cur.getRequiredId()); 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_9.CFBamRam.CFBamRamProjectBaseTable.java
public void deleteProjectBaseByTenantIdx(CFSecurityAuthorization Authorization, CFInternetDomainBaseByTenantIdxKey argKey) { final String S_ProcName = "deleteProjectBaseByTenantIdx"; CFInternetProjectBaseBuff cur;/*ww w. ja v a 2s . c o m*/ boolean anyNotNull = false; anyNotNull = true; if (!anyNotNull) { return; } 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(); cur = schema.getTableProjectBase().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(), cur.getRequiredId()); 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 ("SPRJ".equals(subClassCode)) { schema.getTableSubProject().deleteSubProject(Authorization, (CFInternetSubProjectBuff) cur); } else if ("TPRJ".equals(subClassCode)) { schema.getTableTopProject().deleteTopProject(Authorization, (CFInternetTopProjectBuff) 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.CFAsteriskRamURLProtocolTable.java
public void deleteURLProtocolByIdIdx(CFSecurityAuthorization Authorization, CFInternetURLProtocolPKey argKey) { CFInternetURLProtocolBuff cur;//from www .j av a 2 s .co m LinkedList<CFInternetURLProtocolBuff> matchSet = new LinkedList<CFInternetURLProtocolBuff>(); Iterator<CFInternetURLProtocolBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFInternetURLProtocolBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteURLProtocol(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamURLProtocolTable.java
public void deleteURLProtocolByUNameIdx(CFSecurityAuthorization Authorization, CFInternetURLProtocolByUNameIdxKey argKey) { CFInternetURLProtocolBuff cur;/*from w w w . jav a2 s .co m*/ LinkedList<CFInternetURLProtocolBuff> matchSet = new LinkedList<CFInternetURLProtocolBuff>(); Iterator<CFInternetURLProtocolBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFInternetURLProtocolBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteURLProtocol(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamURLProtocolTable.java
public void deleteURLProtocolByIsSecureIdx(CFSecurityAuthorization Authorization, CFInternetURLProtocolByIsSecureIdxKey argKey) { CFInternetURLProtocolBuff cur;/*w w w. j a v a 2s . c o m*/ LinkedList<CFInternetURLProtocolBuff> matchSet = new LinkedList<CFInternetURLProtocolBuff>(); Iterator<CFInternetURLProtocolBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFInternetURLProtocolBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteURLProtocol(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSecAppTable.java
public void deleteSecAppByIdIdx(CFAccAuthorization Authorization, CFAccSecAppPKey argKey) { CFAccSecAppBuff cur;//from ww w .j a v a 2 s. c o m LinkedList<CFAccSecAppBuff> matchSet = new LinkedList<CFAccSecAppBuff>(); Iterator<CFAccSecAppBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccSecAppBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteSecApp(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSecAppTable.java
public void deleteSecAppByClusterIdx(CFAccAuthorization Authorization, CFAccSecAppByClusterIdxKey argKey) { CFAccSecAppBuff cur;// w w w . j av a 2s . co m LinkedList<CFAccSecAppBuff> matchSet = new LinkedList<CFAccSecAppBuff>(); Iterator<CFAccSecAppBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccSecAppBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteSecApp(Authorization, cur); } }