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.cfcore.v2_1.CFGenKbRam.CFGenKbRamClusterTable.java

public void deleteClusterByUDomainNameIdx(CFGenKbAuthorization Authorization,
        CFGenKbClusterByUDomainNameIdxKey argKey) {
    CFGenKbClusterBuff cur;//from w  w  w. j av a 2s .c o  m
    LinkedList<CFGenKbClusterBuff> matchSet = new LinkedList<CFGenKbClusterBuff>();
    Iterator<CFGenKbClusterBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbClusterBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteCluster(Authorization, cur);
    }
}

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

public void deleteSecUserByIdIdx(CFGenKbAuthorization Authorization, CFGenKbSecUserPKey argKey) {
    CFGenKbSecUserBuff cur;/*from  www .  j av  a2  s .  com*/
    LinkedList<CFGenKbSecUserBuff> matchSet = new LinkedList<CFGenKbSecUserBuff>();
    Iterator<CFGenKbSecUserBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbSecUserBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecUser(Authorization, cur);
    }
}

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

public void deleteSecUserByUEMailIdx(CFGenKbAuthorization Authorization, CFGenKbSecUserByUEMailIdxKey argKey) {
    CFGenKbSecUserBuff cur;//ww w.j a va 2  s  .  c  om
    LinkedList<CFGenKbSecUserBuff> matchSet = new LinkedList<CFGenKbSecUserBuff>();
    Iterator<CFGenKbSecUserBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbSecUserBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecUser(Authorization, cur);
    }
}

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

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

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

public void deleteSecUserByUEMConfIdx(CFGenKbAuthorization Authorization,
        CFGenKbSecUserByUEMConfIdxKey argKey) {
    CFGenKbSecUserBuff cur;//  w w w  .j a v  a  2  s . c om
    LinkedList<CFGenKbSecUserBuff> matchSet = new LinkedList<CFGenKbSecUserBuff>();
    Iterator<CFGenKbSecUserBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbSecUserBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecUser(Authorization, cur);
    }
}

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

public void deleteDomainBaseByIdIdx(CFSecurityAuthorization Authorization, CFInternetDomainBasePKey argKey) {
    final String S_ProcName = "deleteDomainBaseByIdIdx";
    boolean anyNotNull = false;
    anyNotNull = true;//from  www.  j  a v a  2 s .  com
    anyNotNull = true;
    if (!anyNotNull) {
        return;
    }
    CFInternetDomainBaseBuff cur;
    LinkedList<CFInternetDomainBaseBuff> matchSet = new LinkedList<CFInternetDomainBaseBuff>();
    Iterator<CFInternetDomainBaseBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFInternetDomainBaseBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        cur = schema.getTableDomainBase().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(),
                cur.getRequiredId());
        String subClassCode = cur.getClassCode();
        if ("BDOM".equals(subClassCode)) {
            schema.getTableDomainBase().deleteDomainBase(Authorization, cur);
        } else if ("TDOM".equals(subClassCode)) {
            schema.getTableTopDomain().deleteTopDomain(Authorization, (CFInternetTopDomainBuff) cur);
        } else if ("DOMN".equals(subClassCode)) {
            schema.getTableDomain().deleteDomain(Authorization, (CFInternetDomainBuff) cur);
        } else if ("BPRJ".equals(subClassCode)) {
            schema.getTableProjectBase().deleteProjectBase(Authorization, (CFInternetProjectBaseBuff) 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 DomainBase must not be \"" + subClassCode + "\"");
        }
    }
}

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

public void deleteDomainBaseByTenantIdx(CFSecurityAuthorization Authorization,
        CFInternetDomainBaseByTenantIdxKey argKey) {
    final String S_ProcName = "deleteDomainBaseByTenantIdx";
    CFInternetDomainBaseBuff cur;// w  w  w.  j  a  v a 2  s . c  om
    boolean anyNotNull = false;
    anyNotNull = true;
    if (!anyNotNull) {
        return;
    }
    LinkedList<CFInternetDomainBaseBuff> matchSet = new LinkedList<CFInternetDomainBaseBuff>();
    Iterator<CFInternetDomainBaseBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFInternetDomainBaseBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        cur = schema.getTableDomainBase().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(),
                cur.getRequiredId());
        String subClassCode = cur.getClassCode();
        if ("BDOM".equals(subClassCode)) {
            schema.getTableDomainBase().deleteDomainBase(Authorization, cur);
        } else if ("TDOM".equals(subClassCode)) {
            schema.getTableTopDomain().deleteTopDomain(Authorization, (CFInternetTopDomainBuff) cur);
        } else if ("DOMN".equals(subClassCode)) {
            schema.getTableDomain().deleteDomain(Authorization, (CFInternetDomainBuff) cur);
        } else if ("BPRJ".equals(subClassCode)) {
            schema.getTableProjectBase().deleteProjectBase(Authorization, (CFInternetProjectBaseBuff) 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 DomainBase must not be \"" + subClassCode + "\"");
        }
    }
}

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

public void deleteClusterByUDescrIdx(CFAstAuthorization Authorization, CFAstClusterByUDescrIdxKey argKey) {
    CFAstClusterBuff cur;//  www.  java  2  s. c  o  m
    LinkedList<CFAstClusterBuff> matchSet = new LinkedList<CFAstClusterBuff>();
    Iterator<CFAstClusterBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstClusterBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteCluster(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamClusterTable.java

public void deleteClusterByIdIdx(CFSecurityAuthorization Authorization, CFSecurityClusterPKey argKey) {
    CFSecurityClusterBuff cur;/* w  ww .j a v  a 2 s.  c  o  m*/
    LinkedList<CFSecurityClusterBuff> matchSet = new LinkedList<CFSecurityClusterBuff>();
    Iterator<CFSecurityClusterBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFSecurityClusterBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteCluster(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamClusterTable.java

public void deleteClusterByUDomainNameIdx(CFSecurityAuthorization Authorization,
        CFSecurityClusterByUDomainNameIdxKey argKey) {
    CFSecurityClusterBuff cur;/*from   w  ww.j ava  2s .  c  o  m*/
    LinkedList<CFSecurityClusterBuff> matchSet = new LinkedList<CFSecurityClusterBuff>();
    Iterator<CFSecurityClusterBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFSecurityClusterBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteCluster(Authorization, cur);
    }
}