List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamTSecGroupTable.java
public CFAstTSecGroupBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAstRamTSecGroup.readDerivedByTenantIdx() "; CFAstTSecGroupByTenantIdxKey key = schema.getFactoryTSecGroup().newTenantIdxKey(); key.setRequiredTenantId(TenantId);/*from www . ja v a 2s .co m*/ CFAstTSecGroupBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<CFAstTSecGroupPKey, CFAstTSecGroupBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new CFAstTSecGroupBuff[subdictTenantIdx.size()]; Iterator<CFAstTSecGroupBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstTSecGroupBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashRam.CFGCashRamURLProtocolTable.java
public CFGCashURLProtocolBuff[] readDerivedByIsSecureIdx(CFGCashAuthorization Authorization, boolean IsSecure) { final String S_ProcName = "CFGCashRamURLProtocol.readDerivedByIsSecureIdx() "; CFGCashURLProtocolByIsSecureIdxKey key = schema.getFactoryURLProtocol().newIsSecureIdxKey(); key.setRequiredIsSecure(IsSecure);//from ww w . j a va 2s. c o m CFGCashURLProtocolBuff[] recArray; if (dictByIsSecureIdx.containsKey(key)) { SortedMap<CFGCashURLProtocolPKey, CFGCashURLProtocolBuff> subdictIsSecureIdx = dictByIsSecureIdx .get(key); recArray = new CFGCashURLProtocolBuff[subdictIsSecureIdx.size()]; Iterator<CFGCashURLProtocolBuff> iter = subdictIsSecureIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFGCashURLProtocolBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSecGroupTable.java
public CFAccSecGroupBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFAccRamSecGroup.readDerivedByClusterIdx() "; CFAccSecGroupByClusterIdxKey key = schema.getFactorySecGroup().newClusterIdxKey(); key.setRequiredClusterId(ClusterId); CFAccSecGroupBuff[] recArray;//from w w w . j a va2s.co m if (dictByClusterIdx.containsKey(key)) { SortedMap<CFAccSecGroupPKey, CFAccSecGroupBuff> subdictClusterIdx = dictByClusterIdx.get(key); recArray = new CFAccSecGroupBuff[subdictClusterIdx.size()]; Iterator<CFAccSecGroupBuff> iter = subdictClusterIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccSecGroupBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamSecGroupTable.java
public CFAstSecGroupBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFAstRamSecGroup.readDerivedByClusterIdx() "; CFAstSecGroupByClusterIdxKey key = schema.getFactorySecGroup().newClusterIdxKey(); key.setRequiredClusterId(ClusterId); CFAstSecGroupBuff[] recArray;//from ww w. j a va 2 s . c om if (dictByClusterIdx.containsKey(key)) { SortedMap<CFAstSecGroupPKey, CFAstSecGroupBuff> subdictClusterIdx = dictByClusterIdx.get(key); recArray = new CFAstSecGroupBuff[subdictClusterIdx.size()]; Iterator<CFAstSecGroupBuff> iter = subdictClusterIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstSecGroupBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTenantTable.java
public CFAstTenantBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTenantMessageFormatter.formatTenantRqstReadAll("\n\t\t\t") + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/*from w w w . ja v a 2s . c o m*/ CFAstXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAstTenantPKey, ICFAstTenantObj> sortedMap = (SortedMap<CFAstTenantPKey, ICFAstTenantObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTenantBuff arr[] = new CFAstTenantBuff[sz]; Iterator<ICFAstTenantObj> iter = sortedMap.values().iterator(); ICFAstTenantObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTenantObj) iter.next(); arr[idx] = cur.getTenantBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTenantTable.java
public CFAstTenantBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTenantMessageFormatter.formatTenantRqstReadByClusterIdx("\n\t\t\t", argClusterId) + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/*from w w w . j a v a 2s. c om*/ CFAstXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAstTenantPKey, ICFAstTenantObj> sortedMap = (SortedMap<CFAstTenantPKey, ICFAstTenantObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTenantBuff arr[] = new CFAstTenantBuff[sz]; Iterator<ICFAstTenantObj> iter = sortedMap.values().iterator(); ICFAstTenantObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTenantObj) iter.next(); arr[idx] = cur.getTenantBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactListTable.java
public CFAccContactListBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAccRamContactList.readDerivedByTenantIdx() "; CFAccContactListByTenantIdxKey key = schema.getFactoryContactList().newTenantIdxKey(); key.setRequiredTenantId(TenantId);/*from w w w .j a va2 s.c o m*/ CFAccContactListBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<CFAccContactListPKey, CFAccContactListBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new CFAccContactListBuff[subdictTenantIdx.size()]; Iterator<CFAccContactListBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactListBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMemoTable.java
public CFAccMemoBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstReadAll("\n\t\t\t") + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }//from w ww .ja v a 2 s . c o m CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAccMemoPKey, ICFAccMemoObj> sortedMap = (SortedMap<CFAccMemoPKey, ICFAccMemoObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoBuff arr[] = new CFAccMemoBuff[sz]; Iterator<ICFAccMemoObj> iter = sortedMap.values().iterator(); ICFAccMemoObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoObj) iter.next(); arr[idx] = cur.getMemoBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMemoTable.java
public CFAccMemoBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/*from w w w. j a v a 2 s . c om*/ CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAccMemoPKey, ICFAccMemoObj> sortedMap = (SortedMap<CFAccMemoPKey, ICFAccMemoObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoBuff arr[] = new CFAccMemoBuff[sz]; Iterator<ICFAccMemoObj> iter = sortedMap.values().iterator(); ICFAccMemoObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoObj) iter.next(); arr[idx] = cur.getMemoBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMemoTable.java
public CFAccMemoBuff[] readDerivedByMemoContactIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId) { final String S_ProcName = "readDerivedByMemoContactIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstReadByMemoContactIdx("\n\t\t\t", argTenantId, argContactId) + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }//from w w w.ja v a 2s. c om CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAccMemoPKey, ICFAccMemoObj> sortedMap = (SortedMap<CFAccMemoPKey, ICFAccMemoObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoBuff arr[] = new CFAccMemoBuff[sz]; Iterator<ICFAccMemoObj> iter = sortedMap.values().iterator(); ICFAccMemoObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoObj) iter.next(); arr[idx] = cur.getMemoBuff(); } return (arr); }