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.CFGenKbRamTSecGroupTable.java

public void deleteTSecGroupByIdIdx(CFGenKbAuthorization Authorization, CFGenKbTSecGroupPKey argKey) {
    CFGenKbTSecGroupBuff cur;/* ww w. java  2 s . c o  m*/
    LinkedList<CFGenKbTSecGroupBuff> matchSet = new LinkedList<CFGenKbTSecGroupBuff>();
    Iterator<CFGenKbTSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbTSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTSecGroup(Authorization, cur);
    }
}

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

public void deleteTSecGroupByTenantIdx(CFGenKbAuthorization Authorization,
        CFGenKbTSecGroupByTenantIdxKey argKey) {
    CFGenKbTSecGroupBuff cur;// w  w  w. java2 s  .c  om
    LinkedList<CFGenKbTSecGroupBuff> matchSet = new LinkedList<CFGenKbTSecGroupBuff>();
    Iterator<CFGenKbTSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbTSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTSecGroup(Authorization, cur);
    }
}

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

public void deleteTSecGroupByUNameIdx(CFGenKbAuthorization Authorization,
        CFGenKbTSecGroupByUNameIdxKey argKey) {
    CFGenKbTSecGroupBuff cur;//from   w w w. j ava  2 s  .c om
    LinkedList<CFGenKbTSecGroupBuff> matchSet = new LinkedList<CFGenKbTSecGroupBuff>();
    Iterator<CFGenKbTSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbTSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTSecGroup(Authorization, cur);
    }
}

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

public void deleteTldByTenantIdx(CFSecurityAuthorization Authorization, CFInternetTldByTenantIdxKey argKey) {
    CFInternetTldBuff cur;/*ww w .j  a  va  2  s . c o m*/
    boolean anyNotNull = false;
    anyNotNull = true;
    if (!anyNotNull) {
        return;
    }
    LinkedList<CFInternetTldBuff> matchSet = new LinkedList<CFInternetTldBuff>();
    Iterator<CFInternetTldBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFInternetTldBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        cur = schema.getTableTld().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(),
                cur.getRequiredTldId());
        deleteTld(Authorization, cur);
    }
}

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

public void deleteTldByIdIdx(CFSecurityAuthorization Authorization, CFInternetTldPKey argKey) {
    boolean anyNotNull = false;
    anyNotNull = true;//from  ww  w .  j  a v a2 s .c o m
    anyNotNull = true;
    if (!anyNotNull) {
        return;
    }
    CFInternetTldBuff cur;
    LinkedList<CFInternetTldBuff> matchSet = new LinkedList<CFInternetTldBuff>();
    Iterator<CFInternetTldBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFInternetTldBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        cur = schema.getTableTld().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(),
                cur.getRequiredTldId());
        deleteTld(Authorization, cur);
    }
}

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

public void deleteTldByNameIdx(CFSecurityAuthorization Authorization, CFInternetTldByNameIdxKey argKey) {
    CFInternetTldBuff cur;// ww  w .  j a  va2s.  c  o m
    boolean anyNotNull = false;
    anyNotNull = true;
    anyNotNull = true;
    if (!anyNotNull) {
        return;
    }
    LinkedList<CFInternetTldBuff> matchSet = new LinkedList<CFInternetTldBuff>();
    Iterator<CFInternetTldBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFInternetTldBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        cur = schema.getTableTld().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(),
                cur.getRequiredTldId());
        deleteTld(Authorization, cur);
    }
}

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

public void deleteDomainBaseByIdIdx(CFAccAuthorization Authorization, CFAccDomainBasePKey argKey) {
    final String S_ProcName = "deleteDomainBaseByIdIdx";
    CFAccDomainBaseBuff cur;// ww  w.  java2s.  c om
    LinkedList<CFAccDomainBaseBuff> matchSet = new LinkedList<CFAccDomainBaseBuff>();
    Iterator<CFAccDomainBaseBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccDomainBaseBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        String subClassCode = cur.getClassCode();
        if ("BDOM".equals(subClassCode)) {
            schema.getTableDomainBase().deleteDomainBase(Authorization, cur);
        } else if ("TDOM".equals(subClassCode)) {
            schema.getTableTopDomain().deleteTopDomain(Authorization, (CFAccTopDomainBuff) cur);
        } else if ("DOMN".equals(subClassCode)) {
            schema.getTableDomain().deleteDomain(Authorization, (CFAccDomainBuff) cur);
        } else if ("BPRJ".equals(subClassCode)) {
            schema.getTableProjectBase().deleteProjectBase(Authorization, (CFAccProjectBaseBuff) 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 DomainBase must not be \"" + subClassCode + "\"");
        }
    }
}

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

public void deleteDomainBaseByIdIdx(CFAstAuthorization Authorization, CFAstDomainBasePKey argKey) {
    final String S_ProcName = "deleteDomainBaseByIdIdx";
    CFAstDomainBaseBuff cur;//from w w w . j a  va 2s . com
    LinkedList<CFAstDomainBaseBuff> matchSet = new LinkedList<CFAstDomainBaseBuff>();
    Iterator<CFAstDomainBaseBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstDomainBaseBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        String subClassCode = cur.getClassCode();
        if ("BDOM".equals(subClassCode)) {
            schema.getTableDomainBase().deleteDomainBase(Authorization, cur);
        } else if ("TDOM".equals(subClassCode)) {
            schema.getTableTopDomain().deleteTopDomain(Authorization, (CFAstTopDomainBuff) cur);
        } else if ("DOMN".equals(subClassCode)) {
            schema.getTableDomain().deleteDomain(Authorization, (CFAstDomainBuff) cur);
        } else if ("BPRJ".equals(subClassCode)) {
            schema.getTableProjectBase().deleteProjectBase(Authorization, (CFAstProjectBaseBuff) 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 DomainBase must not be \"" + subClassCode + "\"");
        }
    }
}

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

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

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

public void deleteContactListByIdIdx(CFAccAuthorization Authorization, CFAccContactListPKey argKey) {
    CFAccContactListBuff cur;/* w  w w . j a  v  a 2  s.c  om*/
    LinkedList<CFAccContactListBuff> matchSet = new LinkedList<CFAccContactListBuff>();
    Iterator<CFAccContactListBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccContactListBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteContactList(Authorization, cur);
    }
}