List of usage examples for java.util LinkedList iterator
Iterator<E> iterator();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamVersionTable.java
public void deleteVersionByTenantIdx(CFAccAuthorization Authorization, CFAccDomainBaseByTenantIdxKey argKey) { final String S_ProcName = "deleteVersionByTenantIdx"; CFAccVersionBuff cur;//from w w w. ja v a 2 s . co m LinkedList<CFAccVersionBuff> matchSet = new LinkedList<CFAccVersionBuff>(); Iterator<CFAccVersionBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccVersionBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("VERN".equals(subClassCode)) { schema.getTableVersion().deleteVersion(Authorization, 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 Version must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamVersionTable.java
public void deleteVersionByIdIdx(CFAstAuthorization Authorization, CFAstDomainBasePKey argKey) { final String S_ProcName = "deleteVersionByIdIdx"; CFAstVersionBuff cur;/*from w w w. j av a 2 s. c om*/ LinkedList<CFAstVersionBuff> matchSet = new LinkedList<CFAstVersionBuff>(); Iterator<CFAstVersionBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAstVersionBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("VERN".equals(subClassCode)) { schema.getTableVersion().deleteVersion(Authorization, 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 Version must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamVersionTable.java
public void deleteVersionByTenantIdx(CFAstAuthorization Authorization, CFAstDomainBaseByTenantIdxKey argKey) { final String S_ProcName = "deleteVersionByTenantIdx"; CFAstVersionBuff cur;/*from w w w . jav a 2 s .co m*/ LinkedList<CFAstVersionBuff> matchSet = new LinkedList<CFAstVersionBuff>(); Iterator<CFAstVersionBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAstVersionBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("VERN".equals(subClassCode)) { schema.getTableVersion().deleteVersion(Authorization, 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 Version must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamVersionTable.java
public void deleteVersionByIdIdx(CFSecurityAuthorization Authorization, CFInternetDomainBasePKey argKey) { final String S_ProcName = "deleteVersionByIdIdx"; CFInternetVersionBuff cur;//from www . j a va2 s .c om LinkedList<CFInternetVersionBuff> matchSet = new LinkedList<CFInternetVersionBuff>(); Iterator<CFInternetVersionBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFInternetVersionBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("VERN".equals(subClassCode)) { schema.getTableVersion().deleteVersion(Authorization, 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 Version must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamVersionTable.java
public void deleteVersionByTenantIdx(CFSecurityAuthorization Authorization, CFInternetDomainBaseByTenantIdxKey argKey) { final String S_ProcName = "deleteVersionByTenantIdx"; CFInternetVersionBuff cur;//from www .j a v a 2s . c o m LinkedList<CFInternetVersionBuff> matchSet = new LinkedList<CFInternetVersionBuff>(); Iterator<CFInternetVersionBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFInternetVersionBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("VERN".equals(subClassCode)) { schema.getTableVersion().deleteVersion(Authorization, 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 Version must not be \"" + subClassCode + "\""); } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstRam.CFAstRamSecDeviceTable.java
public void deleteSecDeviceByIdIdx(CFAstAuthorization Authorization, CFAstSecDevicePKey argKey) { CFAstSecDeviceBuff cur;//from ww w . java2 s .c o m LinkedList<CFAstSecDeviceBuff> matchSet = new LinkedList<CFAstSecDeviceBuff>(); Iterator<CFAstSecDeviceBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAstSecDeviceBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteSecDevice(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstRam.CFAstRamSecDeviceTable.java
public void deleteSecDeviceByUserIdx(CFAstAuthorization Authorization, CFAstSecDeviceByUserIdxKey argKey) { CFAstSecDeviceBuff cur;// w w w .java 2 s . c o m LinkedList<CFAstSecDeviceBuff> matchSet = new LinkedList<CFAstSecDeviceBuff>(); Iterator<CFAstSecDeviceBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAstSecDeviceBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteSecDevice(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfcore.v2_1.CFGenKbRam.CFGenKbRamSecDeviceTable.java
public void deleteSecDeviceByIdIdx(CFGenKbAuthorization Authorization, CFGenKbSecDevicePKey argKey) { CFGenKbSecDeviceBuff cur;/*from ww w . j a v a 2 s. c om*/ LinkedList<CFGenKbSecDeviceBuff> matchSet = new LinkedList<CFGenKbSecDeviceBuff>(); Iterator<CFGenKbSecDeviceBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFGenKbSecDeviceBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteSecDevice(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfcore.v2_1.CFGenKbRam.CFGenKbRamSecDeviceTable.java
public void deleteSecDeviceByUserIdx(CFGenKbAuthorization Authorization, CFGenKbSecDeviceByUserIdxKey argKey) { CFGenKbSecDeviceBuff cur;/* w ww.j a va 2s. co m*/ LinkedList<CFGenKbSecDeviceBuff> matchSet = new LinkedList<CFGenKbSecDeviceBuff>(); Iterator<CFGenKbSecDeviceBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFGenKbSecDeviceBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); deleteSecDevice(Authorization, cur); } }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamRealProjectTable.java
public void deleteRealProjectByIdIdx(CFAccAuthorization Authorization, CFAccDomainBasePKey argKey) { final String S_ProcName = "deleteRealProjectByIdIdx"; CFAccRealProjectBuff cur;//from ww w .j a v a2 s . co m LinkedList<CFAccRealProjectBuff> matchSet = new LinkedList<CFAccRealProjectBuff>(); Iterator<CFAccRealProjectBuff> values = dictByPKey.values().iterator(); while (values.hasNext()) { cur = values.next(); if (argKey.equals(cur)) { matchSet.add(cur); } } Iterator<CFAccRealProjectBuff> iterMatch = matchSet.iterator(); while (iterMatch.hasNext()) { cur = iterMatch.next(); String subClassCode = cur.getClassCode(); if ("RPRJ".equals(subClassCode)) { schema.getTableRealProject().deleteRealProject(Authorization, cur); } else if ("TPRJ".equals(subClassCode)) { schema.getTableTopProject().deleteTopProject(Authorization, (CFAccTopProjectBuff) cur); } else if ("SPRJ".equals(subClassCode)) { schema.getTableSubProject().deleteSubProject(Authorization, (CFAccSubProjectBuff) cur); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "subClassCode", cur, "Instance of or subclass of RealProject must not be \"" + subClassCode + "\""); } } }