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_4.CFAsteriskRam.CFAsteriskRamRealProjectTable.java

public void deleteRealProjectByIdIdx(CFSecurityAuthorization Authorization, CFInternetDomainBasePKey argKey) {
    final String S_ProcName = "deleteRealProjectByIdIdx";
    CFInternetRealProjectBuff cur;/*ww  w  .  ja  v a  2  s . c  om*/
    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();
        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.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamRealProjectTable.java

public void deleteRealProjectByTenantIdx(CFSecurityAuthorization Authorization,
        CFInternetDomainBaseByTenantIdxKey argKey) {
    final String S_ProcName = "deleteRealProjectByTenantIdx";
    CFInternetRealProjectBuff cur;// w ww.  j ava2 s  .c o m
    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();
        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.cfasterisk.v2_2.CFAstRam.CFAstRamSysClusterTable.java

public void deleteSysClusterByIdIdx(CFAstAuthorization Authorization, CFAstSysClusterPKey argKey) {
    CFAstSysClusterBuff cur;/*from w ww. ja  v a  2 s . c  o  m*/
    LinkedList<CFAstSysClusterBuff> matchSet = new LinkedList<CFAstSysClusterBuff>();
    Iterator<CFAstSysClusterBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstSysClusterBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSysCluster(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstRam.CFAstRamSysClusterTable.java

public void deleteSysClusterByClusterIdx(CFAstAuthorization Authorization,
        CFAstSysClusterByClusterIdxKey argKey) {
    CFAstSysClusterBuff cur;//from www. j a  va 2 s .  c o m
    LinkedList<CFAstSysClusterBuff> matchSet = new LinkedList<CFAstSysClusterBuff>();
    Iterator<CFAstSysClusterBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstSysClusterBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSysCluster(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstRam.CFAstRamSecUserTable.java

public void deleteSecUserByDefDevIdx(CFAstAuthorization Authorization, CFAstSecUserByDefDevIdxKey argKey) {
    CFAstSecUserBuff cur;/*from ww  w. java 2  s.  c  o  m*/
    LinkedList<CFAstSecUserBuff> matchSet = new LinkedList<CFAstSecUserBuff>();
    Iterator<CFAstSecUserBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstSecUserBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecUser(Authorization, cur);
    }
}

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

public void deleteSysClusterByIdIdx(CFSecurityAuthorization Authorization, CFSecuritySysClusterPKey argKey) {
    boolean anyNotNull = false;
    anyNotNull = true;/* ww w.j a  va  2s  .com*/
    if (!anyNotNull) {
        return;
    }
    CFSecuritySysClusterBuff cur;
    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 deleteISOCountryByIdIdx(CFGenKbAuthorization Authorization, CFGenKbISOCountryPKey argKey) {
    CFGenKbISOCountryBuff cur;//from   www  . j  a  va  2s  . c o m
    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 deleteISOCountryByIdIdx(CFAccAuthorization Authorization, CFAccISOCountryPKey argKey) {
    CFAccISOCountryBuff cur;//from w  w w .j  av a  2  s  .  c  o 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.CFAccRamISOCountryTable.java

public void deleteISOCountryByNameIdx(CFAccAuthorization Authorization, CFAccISOCountryByNameIdxKey argKey) {
    CFAccISOCountryBuff cur;/*from w  w w  . j  a va  2 s .c  om*/
    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.cfasterisk.v2_0.CFAstRam.CFAstRamISOCountryTable.java

public void deleteISOCountryByIdIdx(CFAstAuthorization Authorization, CFAstISOCountryPKey argKey) {
    CFAstISOCountryBuff cur;/*  w ww  .  ja  va2  s . c  o m*/
    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);
    }
}