Example usage for java.util LinkedList iterator

List of usage examples for java.util LinkedList iterator

Introduction

In this page you can find the example usage for java.util LinkedList iterator.

Prototype

Iterator<E> iterator();

Source Link

Document

Returns an iterator over the elements in this list in proper sequence.

Usage

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamISOCountryTable.java

public void deleteISOCountryByNameIdx(CFAstAuthorization Authorization, CFAstISOCountryByNameIdxKey argKey) {
    CFAstISOCountryBuff cur;/*  w  ww. j  ava  2s  . com*/
    LinkedList<CFAstISOCountryBuff> matchSet = new LinkedList<CFAstISOCountryBuff>();
    Iterator<CFAstISOCountryBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstISOCountryBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteISOCountry(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamSysClusterTable.java

public void deleteSysClusterByClusterIdx(CFSecurityAuthorization Authorization,
        CFSecuritySysClusterByClusterIdxKey argKey) {
    CFSecuritySysClusterBuff cur;//w  w w.  ja va2  s  .  com
    boolean anyNotNull = false;
    anyNotNull = true;
    if (!anyNotNull) {
        return;
    }
    LinkedList<CFSecuritySysClusterBuff> matchSet = new LinkedList<CFSecuritySysClusterBuff>();
    Iterator<CFSecuritySysClusterBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFSecuritySysClusterBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        cur = schema.getTableSysCluster().readDerivedByIdIdx(Authorization, cur.getRequiredSingletonId());
        deleteSysCluster(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfcore.v2_1.CFGenKbRam.CFGenKbRamISOCountryTable.java

public void deleteISOCountryByISOCodeIdx(CFGenKbAuthorization Authorization,
        CFGenKbISOCountryByISOCodeIdxKey argKey) {
    CFGenKbISOCountryBuff cur;//from   ww  w .  jav  a  2 s.  c om
    LinkedList<CFGenKbISOCountryBuff> matchSet = new LinkedList<CFGenKbISOCountryBuff>();
    Iterator<CFGenKbISOCountryBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbISOCountryBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteISOCountry(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfcore.v2_1.CFGenKbRam.CFGenKbRamISOCountryTable.java

public void deleteISOCountryByNameIdx(CFGenKbAuthorization Authorization,
        CFGenKbISOCountryByNameIdxKey argKey) {
    CFGenKbISOCountryBuff cur;//  w  w w.jav  a2s. c  om
    LinkedList<CFGenKbISOCountryBuff> matchSet = new LinkedList<CFGenKbISOCountryBuff>();
    Iterator<CFGenKbISOCountryBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbISOCountryBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteISOCountry(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamISOCountryTable.java

public void deleteISOCountryByISOCodeIdx(CFAccAuthorization Authorization,
        CFAccISOCountryByISOCodeIdxKey argKey) {
    CFAccISOCountryBuff cur;/*from   w ww.j a  va  2 s.co m*/
    LinkedList<CFAccISOCountryBuff> matchSet = new LinkedList<CFAccISOCountryBuff>();
    Iterator<CFAccISOCountryBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccISOCountryBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteISOCountry(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamProjectBaseTable.java

public void deleteProjectBaseByIdIdx(CFAccAuthorization Authorization, CFAccDomainBasePKey argKey) {
    final String S_ProcName = "deleteProjectBaseByIdIdx";
    CFAccProjectBaseBuff cur;/*from w  w w .  j ava2s.com*/
    LinkedList<CFAccProjectBaseBuff> matchSet = new LinkedList<CFAccProjectBaseBuff>();
    Iterator<CFAccProjectBaseBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccProjectBaseBuff> 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, (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 ProjectBase must not be \"" + subClassCode + "\"");
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamISOCountryTable.java

public void deleteISOCountryByISOCodeIdx(CFAstAuthorization Authorization,
        CFAstISOCountryByISOCodeIdxKey argKey) {
    CFAstISOCountryBuff cur;//w  w  w  .j  a  v a 2  s.  c om
    LinkedList<CFAstISOCountryBuff> matchSet = new LinkedList<CFAstISOCountryBuff>();
    Iterator<CFAstISOCountryBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstISOCountryBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteISOCountry(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamProjectBaseTable.java

public void deleteProjectBaseByIdIdx(CFAstAuthorization Authorization, CFAstDomainBasePKey argKey) {
    final String S_ProcName = "deleteProjectBaseByIdIdx";
    CFAstProjectBaseBuff cur;//w  w  w . j  a  va  2  s .com
    LinkedList<CFAstProjectBaseBuff> matchSet = new LinkedList<CFAstProjectBaseBuff>();
    Iterator<CFAstProjectBaseBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstProjectBaseBuff> 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, (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 ProjectBase must not be \"" + subClassCode + "\"");
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfcore.v2_1.CFGenKbRam.CFGenKbRamISOCurrencyTable.java

public void deleteISOCurrencyByIdIdx(CFGenKbAuthorization Authorization, CFGenKbISOCurrencyPKey argKey) {
    CFGenKbISOCurrencyBuff cur;//  w w w . jav  a  2  s . c o  m
    LinkedList<CFGenKbISOCurrencyBuff> matchSet = new LinkedList<CFGenKbISOCurrencyBuff>();
    Iterator<CFGenKbISOCurrencyBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbISOCurrencyBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteISOCurrency(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxRam.CFEnSyntaxRamEnDeterminerTable.java

public void deleteEnDeterminerByIdIdx(CFEnSyntaxAuthorization Authorization,
        CFEnSyntaxEnglishParsePKey argKey) {
    CFEnSyntaxEnDeterminerBuff cur;/* w  ww .j a v a2 s  . c  o m*/
    LinkedList<CFEnSyntaxEnDeterminerBuff> matchSet = new LinkedList<CFEnSyntaxEnDeterminerBuff>();
    Iterator<CFEnSyntaxEnDeterminerBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFEnSyntaxEnDeterminerBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteEnDeterminer(Authorization, cur);
    }
}