List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamISOCountryLanguageTable.java
public CFAstISOCountryLanguageBuff[] readDerivedByLanguageIdx(CFAstAuthorization Authorization, short ISOLanguageId) { final String S_ProcName = "CFAstRamISOCountryLanguage.readDerivedByLanguageIdx() "; CFAstISOCountryLanguageByLanguageIdxKey key = schema.getFactoryISOCountryLanguage().newLanguageIdxKey(); key.setRequiredISOLanguageId(ISOLanguageId); CFAstISOCountryLanguageBuff[] recArray; if (dictByLanguageIdx.containsKey(key)) { SortedMap<CFAstISOCountryLanguagePKey, CFAstISOCountryLanguageBuff> subdictLanguageIdx = dictByLanguageIdx .get(key);/*from www. ja v a 2 s . c om*/ recArray = new CFAstISOCountryLanguageBuff[subdictLanguageIdx.size()]; Iterator<CFAstISOCountryLanguageBuff> iter = subdictLanguageIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstISOCountryLanguageBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamMajorVersionTable.java
public CFAstMajorVersionBuff[] readDerivedByPPrjIdx(CFAstAuthorization Authorization, long TenantId, long ParentProjectId) { final String S_ProcName = "CFAstRamMajorVersion.readDerivedByPPrjIdx() "; CFAstMajorVersionByPPrjIdxKey key = schema.getFactoryMajorVersion().newPPrjIdxKey(); key.setRequiredTenantId(TenantId);//from w w w.j ava2 s . com key.setRequiredParentProjectId(ParentProjectId); CFAstMajorVersionBuff[] recArray; if (dictByPPrjIdx.containsKey(key)) { SortedMap<CFAstDomainBasePKey, CFAstMajorVersionBuff> subdictPPrjIdx = dictByPPrjIdx.get(key); recArray = new CFAstMajorVersionBuff[subdictPPrjIdx.size()]; Iterator<CFAstMajorVersionBuff> iter = subdictPPrjIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstMajorVersionBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientConfigurationFileTable.java
public CFAstConfigurationFileBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgConfigurationFileMessageFormatter.formatConfigurationFileRqstReadAll("\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 www . java 2 s . co 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<CFAstConfigurationFilePKey, ICFAstConfigurationFileObj> sortedMap = (SortedMap<CFAstConfigurationFilePKey, ICFAstConfigurationFileObj>) sortedMapObj; int sz = sortedMap.size(); CFAstConfigurationFileBuff arr[] = new CFAstConfigurationFileBuff[sz]; Iterator<ICFAstConfigurationFileObj> iter = sortedMap.values().iterator(); ICFAstConfigurationFileObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstConfigurationFileObj) iter.next(); arr[idx] = cur.getConfigurationFileBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientPhoneTable.java
public CFAccPhoneBuff[] readDerivedByContactIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId) { final String S_ProcName = "readDerivedByContactIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgPhoneMessageFormatter.formatPhoneRqstReadByContactIdx("\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 ww w.j a va2s . 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<CFAccPhonePKey, ICFAccPhoneObj> sortedMap = (SortedMap<CFAccPhonePKey, ICFAccPhoneObj>) sortedMapObj; int sz = sortedMap.size(); CFAccPhoneBuff arr[] = new CFAccPhoneBuff[sz]; Iterator<ICFAccPhoneObj> iter = sortedMap.values().iterator(); ICFAccPhoneObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccPhoneObj) iter.next(); arr[idx] = cur.getPhoneBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientConfigurationFileTable.java
public CFAstConfigurationFileBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgConfigurationFileMessageFormatter .formatConfigurationFileRqstReadByClusterIdx("\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"); }/* www . java 2s . com*/ 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<CFAstConfigurationFilePKey, ICFAstConfigurationFileObj> sortedMap = (SortedMap<CFAstConfigurationFilePKey, ICFAstConfigurationFileObj>) sortedMapObj; int sz = sortedMap.size(); CFAstConfigurationFileBuff arr[] = new CFAstConfigurationFileBuff[sz]; Iterator<ICFAstConfigurationFileObj> iter = sortedMap.values().iterator(); ICFAstConfigurationFileObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstConfigurationFileObj) iter.next(); arr[idx] = cur.getConfigurationFileBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientConfigurationFileTable.java
public CFAstConfigurationFileBuff[] readDerivedByHostIdx(CFAstAuthorization Authorization, long argClusterId, long argHostNodeId) { final String S_ProcName = "readDerivedByHostIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgConfigurationFileMessageFormatter.formatConfigurationFileRqstReadByHostIdx("\n\t\t\t", argClusterId, argHostNodeId) + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/* w w w . j a va 2 s. co 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<CFAstConfigurationFilePKey, ICFAstConfigurationFileObj> sortedMap = (SortedMap<CFAstConfigurationFilePKey, ICFAstConfigurationFileObj>) sortedMapObj; int sz = sortedMap.size(); CFAstConfigurationFileBuff arr[] = new CFAstConfigurationFileBuff[sz]; Iterator<ICFAstConfigurationFileObj> iter = sortedMap.values().iterator(); ICFAstConfigurationFileObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstConfigurationFileObj) iter.next(); arr[idx] = cur.getConfigurationFileBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAccountTable.java
public CFAccAccountBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountMessageFormatter.formatAccountRqstReadAll("\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"); }/* w w w .j a v a 2s. 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<CFAccAccountPKey, ICFAccAccountObj> sortedMap = (SortedMap<CFAccAccountPKey, ICFAccAccountObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountBuff arr[] = new CFAccAccountBuff[sz]; Iterator<ICFAccAccountObj> iter = sortedMap.values().iterator(); ICFAccAccountObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountObj) iter.next(); arr[idx] = cur.getAccountBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAccountTable.java
public CFAccAccountBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountMessageFormatter.formatAccountRqstReadByTenantIdx("\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 ww w .ja v a 2s .co 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<CFAccAccountPKey, ICFAccAccountObj> sortedMap = (SortedMap<CFAccAccountPKey, ICFAccAccountObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountBuff arr[] = new CFAccAccountBuff[sz]; Iterator<ICFAccAccountObj> iter = sortedMap.values().iterator(); ICFAccAccountObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountObj) iter.next(); arr[idx] = cur.getAccountBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAccountTable.java
public CFAccAccountBuff[] readDerivedByCcyIdx(CFAccAuthorization Authorization, short argCurrencyId) { final String S_ProcName = "readDerivedByCcyIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountMessageFormatter.formatAccountRqstReadByCcyIdx("\n\t\t\t", argCurrencyId) + "\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 a2 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<CFAccAccountPKey, ICFAccAccountObj> sortedMap = (SortedMap<CFAccAccountPKey, ICFAccAccountObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountBuff arr[] = new CFAccAccountBuff[sz]; Iterator<ICFAccAccountObj> iter = sortedMap.values().iterator(); ICFAccAccountObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountObj) iter.next(); arr[idx] = cur.getAccountBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamSipConfTable.java
public CFAstSipConfBuff[] readDerivedBySipClusterIdx(CFAstAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFAstRamSipConf.readDerivedBySipClusterIdx() "; CFAstSipConfBySipClusterIdxKey key = schema.getFactorySipConf().newSipClusterIdxKey(); key.setRequiredClusterId(ClusterId); CFAstSipConfBuff[] recArray;// w ww . j a v a2 s.co m if (dictBySipClusterIdx.containsKey(key)) { SortedMap<CFAstConfigurationFilePKey, CFAstSipConfBuff> subdictSipClusterIdx = dictBySipClusterIdx .get(key); recArray = new CFAstSipConfBuff[subdictSipClusterIdx.size()]; Iterator<CFAstSipConfBuff> iter = subdictSipClusterIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstSipConfBuff[0]; } return (recArray); }