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.cfacc.v2_0.CFAccRam.CFAccRamDomainTable.java

public void deleteDomainByIdIdx(CFAccAuthorization Authorization, CFAccDomainBasePKey argKey) {
    CFAccDomainBuff cur;/*  w  w  w  .  j  a  va 2 s  .c  o  m*/
    LinkedList<CFAccDomainBuff> matchSet = new LinkedList<CFAccDomainBuff>();
    Iterator<CFAccDomainBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccDomainBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteDomain(Authorization, cur);
    }
}

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

public void deleteDomainByTenantIdx(CFAccAuthorization Authorization, CFAccDomainBaseByTenantIdxKey argKey) {
    CFAccDomainBuff cur;//w  w w  .  j  ava2 s .  c  om
    LinkedList<CFAccDomainBuff> matchSet = new LinkedList<CFAccDomainBuff>();
    Iterator<CFAccDomainBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccDomainBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteDomain(Authorization, cur);
    }
}

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

public void deleteDomainBySubDomIdx(CFAstAuthorization Authorization, CFAstDomainBySubDomIdxKey argKey) {
    CFAstDomainBuff cur;/*from w ww  . j av a2  s  .  co m*/
    LinkedList<CFAstDomainBuff> matchSet = new LinkedList<CFAstDomainBuff>();
    Iterator<CFAstDomainBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstDomainBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteDomain(Authorization, cur);
    }
}

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

public void deleteDomainByNameIdx(CFAstAuthorization Authorization, CFAstDomainByNameIdxKey argKey) {
    CFAstDomainBuff cur;//from ww w  . j a  va 2 s .  c om
    LinkedList<CFAstDomainBuff> matchSet = new LinkedList<CFAstDomainBuff>();
    Iterator<CFAstDomainBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstDomainBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteDomain(Authorization, cur);
    }
}

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

public void deleteDomainByIdIdx(CFAstAuthorization Authorization, CFAstDomainBasePKey argKey) {
    CFAstDomainBuff cur;/*  w w  w  . jav a2  s  . c o  m*/
    LinkedList<CFAstDomainBuff> matchSet = new LinkedList<CFAstDomainBuff>();
    Iterator<CFAstDomainBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstDomainBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteDomain(Authorization, cur);
    }
}

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

public void deleteDomainByTenantIdx(CFAstAuthorization Authorization, CFAstDomainBaseByTenantIdxKey argKey) {
    CFAstDomainBuff cur;// w  w w.j  a  v  a  2 s .  c  o  m
    LinkedList<CFAstDomainBuff> matchSet = new LinkedList<CFAstDomainBuff>();
    Iterator<CFAstDomainBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstDomainBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteDomain(Authorization, cur);
    }
}

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

public void deleteServerProcByDefSchemaIdx(CFSecurityAuthorization Authorization,
        CFBamServerMethodByDefSchemaIdxKey argKey) {
    CFBamServerProcBuff cur;/*from  ww  w  . ja  va 2 s  .co m*/
    boolean anyNotNull = false;
    if (argKey.getOptionalDefSchemaTenantId() != null) {
        anyNotNull = true;
    }
    if (argKey.getOptionalDefSchemaId() != null) {
        anyNotNull = true;
    }
    if (!anyNotNull) {
        return;
    }
    LinkedList<CFBamServerProcBuff> matchSet = new LinkedList<CFBamServerProcBuff>();
    Iterator<CFBamServerProcBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFBamServerProcBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        cur = schema.getTableServerProc().readDerivedByIdIdx(Authorization, cur.getRequiredTenantId(),
                cur.getRequiredId());
        deleteServerProc(Authorization, cur);
    }
}

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

public void deleteISOLanguageByIdIdx(CFGenKbAuthorization Authorization, CFGenKbISOLanguagePKey argKey) {
    CFGenKbISOLanguageBuff cur;//  ww w .  j a v  a 2s.co  m
    LinkedList<CFGenKbISOLanguageBuff> matchSet = new LinkedList<CFGenKbISOLanguageBuff>();
    Iterator<CFGenKbISOLanguageBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbISOLanguageBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteISOLanguage(Authorization, cur);
    }
}

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

public void deleteHostNodeByIdIdx(CFAccAuthorization Authorization, CFAccHostNodePKey argKey) {
    CFAccHostNodeBuff cur;/*  w w  w .  j av a2  s  .  c om*/
    LinkedList<CFAccHostNodeBuff> matchSet = new LinkedList<CFAccHostNodeBuff>();
    Iterator<CFAccHostNodeBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccHostNodeBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteHostNode(Authorization, cur);
    }
}

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

public void deleteHostNodeByClusterIdx(CFAccAuthorization Authorization, CFAccHostNodeByClusterIdxKey argKey) {
    CFAccHostNodeBuff cur;//from  w w  w  .  j av  a2s  .co  m
    LinkedList<CFAccHostNodeBuff> matchSet = new LinkedList<CFAccHostNodeBuff>();
    Iterator<CFAccHostNodeBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccHostNodeBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteHostNode(Authorization, cur);
    }
}