Example usage for java.util SortedMap size

List of usage examples for java.util SortedMap size

Introduction

In this page you can find the example usage for java.util SortedMap size.

Prototype

int size();

Source Link

Document

Returns the number of key-value mappings in this map.

Usage

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

public CFAstTSecGroupMemberBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long TenantId) {
    final String S_ProcName = "CFAstRamTSecGroupMember.readDerivedByTenantIdx() ";
    CFAstTSecGroupMemberByTenantIdxKey key = schema.getFactoryTSecGroupMember().newTenantIdxKey();
    key.setRequiredTenantId(TenantId);/*from  ww  w  .  j a  v  a 2 s. c o  m*/

    CFAstTSecGroupMemberBuff[] recArray;
    if (dictByTenantIdx.containsKey(key)) {
        SortedMap<CFAstTSecGroupMemberPKey, CFAstTSecGroupMemberBuff> subdictTenantIdx = dictByTenantIdx
                .get(key);
        recArray = new CFAstTSecGroupMemberBuff[subdictTenantIdx.size()];
        Iterator<CFAstTSecGroupMemberBuff> iter = subdictTenantIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAstTSecGroupMemberBuff[0];
    }
    return (recArray);
}

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

public CFAccSecGroupIncludeBuff[] readDerivedByGroupIdx(CFAccAuthorization Authorization, long ClusterId,
        int SecGroupId) {
    final String S_ProcName = "CFAccRamSecGroupInclude.readDerivedByGroupIdx() ";
    CFAccSecGroupIncludeByGroupIdxKey key = schema.getFactorySecGroupInclude().newGroupIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredSecGroupId(SecGroupId);

    CFAccSecGroupIncludeBuff[] recArray;
    if (dictByGroupIdx.containsKey(key)) {
        SortedMap<CFAccSecGroupIncludePKey, CFAccSecGroupIncludeBuff> subdictGroupIdx = dictByGroupIdx.get(key);
        recArray = new CFAccSecGroupIncludeBuff[subdictGroupIdx.size()];
        Iterator<CFAccSecGroupIncludeBuff> iter = subdictGroupIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }/*from  www  . jav a2 s . c o m*/
    } else {
        recArray = new CFAccSecGroupIncludeBuff[0];
    }
    return (recArray);
}

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

public CFAccSecGroupMemberBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long ClusterId) {
    final String S_ProcName = "CFAccRamSecGroupMember.readDerivedByClusterIdx() ";
    CFAccSecGroupMemberByClusterIdxKey key = schema.getFactorySecGroupMember().newClusterIdxKey();
    key.setRequiredClusterId(ClusterId);

    CFAccSecGroupMemberBuff[] recArray;/*from w ww  .  j  av a  2  s .c o  m*/
    if (dictByClusterIdx.containsKey(key)) {
        SortedMap<CFAccSecGroupMemberPKey, CFAccSecGroupMemberBuff> subdictClusterIdx = dictByClusterIdx
                .get(key);
        recArray = new CFAccSecGroupMemberBuff[subdictClusterIdx.size()];
        Iterator<CFAccSecGroupMemberBuff> iter = subdictClusterIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAccSecGroupMemberBuff[0];
    }
    return (recArray);
}

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

public CFAstSecGroupIncludeBuff[] readDerivedByGroupIdx(CFAstAuthorization Authorization, long ClusterId,
        int SecGroupId) {
    final String S_ProcName = "CFAstRamSecGroupInclude.readDerivedByGroupIdx() ";
    CFAstSecGroupIncludeByGroupIdxKey key = schema.getFactorySecGroupInclude().newGroupIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredSecGroupId(SecGroupId);

    CFAstSecGroupIncludeBuff[] recArray;
    if (dictByGroupIdx.containsKey(key)) {
        SortedMap<CFAstSecGroupIncludePKey, CFAstSecGroupIncludeBuff> subdictGroupIdx = dictByGroupIdx.get(key);
        recArray = new CFAstSecGroupIncludeBuff[subdictGroupIdx.size()];
        Iterator<CFAstSecGroupIncludeBuff> iter = subdictGroupIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }/* w ww  .  ja  v a  2 s.  c om*/
    } else {
        recArray = new CFAstSecGroupIncludeBuff[0];
    }
    return (recArray);
}

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

public CFAstSecGroupMemberBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long ClusterId) {
    final String S_ProcName = "CFAstRamSecGroupMember.readDerivedByClusterIdx() ";
    CFAstSecGroupMemberByClusterIdxKey key = schema.getFactorySecGroupMember().newClusterIdxKey();
    key.setRequiredClusterId(ClusterId);

    CFAstSecGroupMemberBuff[] recArray;/*ww w .ja va2 s  .  c o m*/
    if (dictByClusterIdx.containsKey(key)) {
        SortedMap<CFAstSecGroupMemberPKey, CFAstSecGroupMemberBuff> subdictClusterIdx = dictByClusterIdx
                .get(key);
        recArray = new CFAstSecGroupMemberBuff[subdictClusterIdx.size()];
        Iterator<CFAstSecGroupMemberBuff> iter = subdictClusterIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAstSecGroupMemberBuff[0];
    }
    return (recArray);
}

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

public CFAccServiceBuff[] readDerivedByTypeIdx(CFAccAuthorization Authorization, int ServiceTypeId) {
    final String S_ProcName = "CFAccRamService.readDerivedByTypeIdx() ";
    CFAccServiceByTypeIdxKey key = schema.getFactoryService().newTypeIdxKey();
    key.setRequiredServiceTypeId(ServiceTypeId);

    CFAccServiceBuff[] recArray;//ww w. j  a v  a 2s.c o  m
    if (dictByTypeIdx.containsKey(key)) {
        SortedMap<CFAccServicePKey, CFAccServiceBuff> subdictTypeIdx = dictByTypeIdx.get(key);
        recArray = new CFAccServiceBuff[subdictTypeIdx.size()];
        Iterator<CFAccServiceBuff> iter = subdictTypeIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAccServiceBuff[0];
    }
    return (recArray);
}

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

public CFAstServiceBuff[] readDerivedByTypeIdx(CFAstAuthorization Authorization, int ServiceTypeId) {
    final String S_ProcName = "CFAstRamService.readDerivedByTypeIdx() ";
    CFAstServiceByTypeIdxKey key = schema.getFactoryService().newTypeIdxKey();
    key.setRequiredServiceTypeId(ServiceTypeId);

    CFAstServiceBuff[] recArray;//from  w w  w.  ja v a  2 s .c  o  m
    if (dictByTypeIdx.containsKey(key)) {
        SortedMap<CFAstServicePKey, CFAstServiceBuff> subdictTypeIdx = dictByTypeIdx.get(key);
        recArray = new CFAstServiceBuff[subdictTypeIdx.size()];
        Iterator<CFAstServiceBuff> iter = subdictTypeIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAstServiceBuff[0];
    }
    return (recArray);
}

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

public CFAccServiceBuff[] readDerivedByHostIdx(CFAccAuthorization Authorization, long ClusterId,
        long HostNodeId) {
    final String S_ProcName = "CFAccRamService.readDerivedByHostIdx() ";
    CFAccServiceByHostIdxKey key = schema.getFactoryService().newHostIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredHostNodeId(HostNodeId);

    CFAccServiceBuff[] recArray;/*from ww  w.  j a  va  2 s.com*/
    if (dictByHostIdx.containsKey(key)) {
        SortedMap<CFAccServicePKey, CFAccServiceBuff> subdictHostIdx = dictByHostIdx.get(key);
        recArray = new CFAccServiceBuff[subdictHostIdx.size()];
        Iterator<CFAccServiceBuff> iter = subdictHostIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAccServiceBuff[0];
    }
    return (recArray);
}

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

public CFAstServiceBuff[] readDerivedByHostIdx(CFAstAuthorization Authorization, long ClusterId,
        long HostNodeId) {
    final String S_ProcName = "CFAstRamService.readDerivedByHostIdx() ";
    CFAstServiceByHostIdxKey key = schema.getFactoryService().newHostIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredHostNodeId(HostNodeId);

    CFAstServiceBuff[] recArray;/*from  www  .jav a 2s .  com*/
    if (dictByHostIdx.containsKey(key)) {
        SortedMap<CFAstServicePKey, CFAstServiceBuff> subdictHostIdx = dictByHostIdx.get(key);
        recArray = new CFAstServiceBuff[subdictHostIdx.size()];
        Iterator<CFAstServiceBuff> iter = subdictHostIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAstServiceBuff[0];
    }
    return (recArray);
}

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

public CFAstConfigurationFileBuff[] readDerivedByHostIdx(CFAstAuthorization Authorization, long ClusterId,
        long HostNodeId) {
    final String S_ProcName = "CFAstRamConfigurationFile.readDerivedByHostIdx() ";
    CFAstConfigurationFileByHostIdxKey key = schema.getFactoryConfigurationFile().newHostIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredHostNodeId(HostNodeId);

    CFAstConfigurationFileBuff[] recArray;
    if (dictByHostIdx.containsKey(key)) {
        SortedMap<CFAstConfigurationFilePKey, CFAstConfigurationFileBuff> subdictHostIdx = dictByHostIdx
                .get(key);/*from w w  w .j  a v  a2s .c  o m*/
        recArray = new CFAstConfigurationFileBuff[subdictHostIdx.size()];
        Iterator<CFAstConfigurationFileBuff> iter = subdictHostIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAstConfigurationFileBuff[0];
    }
    return (recArray);
}