List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamMinorVersionTable.java
public CFAccMinorVersionBuff[] readDerivedByMajorIdx(CFAccAuthorization Authorization, long TenantId, long MajorId) { final String S_ProcName = "CFAccRamMinorVersion.readDerivedByMajorIdx() "; CFAccMinorVersionByMajorIdxKey key = schema.getFactoryMinorVersion().newMajorIdxKey(); key.setRequiredTenantId(TenantId);// w w w . java2s.com key.setRequiredMajorId(MajorId); CFAccMinorVersionBuff[] recArray; if (dictByMajorIdx.containsKey(key)) { SortedMap<CFAccDomainBasePKey, CFAccMinorVersionBuff> subdictMajorIdx = dictByMajorIdx.get(key); recArray = new CFAccMinorVersionBuff[subdictMajorIdx.size()]; Iterator<CFAccMinorVersionBuff> iter = subdictMajorIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccMinorVersionBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamTopProjectTable.java
public CFAccTopProjectBuff[] readDerivedByDomainIdx(CFAccAuthorization Authorization, long TenantId, long DomainId) { final String S_ProcName = "CFAccRamTopProject.readDerivedByDomainIdx() "; CFAccTopProjectByDomainIdxKey key = schema.getFactoryTopProject().newDomainIdxKey(); key.setRequiredTenantId(TenantId);//from w ww . j ava 2 s .c om key.setRequiredDomainId(DomainId); CFAccTopProjectBuff[] recArray; if (dictByDomainIdx.containsKey(key)) { SortedMap<CFAccDomainBasePKey, CFAccTopProjectBuff> subdictDomainIdx = dictByDomainIdx.get(key); recArray = new CFAccTopProjectBuff[subdictDomainIdx.size()]; Iterator<CFAccTopProjectBuff> iter = subdictDomainIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccTopProjectBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamMinorVersionTable.java
public CFAstMinorVersionBuff[] readDerivedByMajorIdx(CFAstAuthorization Authorization, long TenantId, long MajorId) { final String S_ProcName = "CFAstRamMinorVersion.readDerivedByMajorIdx() "; CFAstMinorVersionByMajorIdxKey key = schema.getFactoryMinorVersion().newMajorIdxKey(); key.setRequiredTenantId(TenantId);/*from ww w . ja v a 2s . co m*/ key.setRequiredMajorId(MajorId); CFAstMinorVersionBuff[] recArray; if (dictByMajorIdx.containsKey(key)) { SortedMap<CFAstDomainBasePKey, CFAstMinorVersionBuff> subdictMajorIdx = dictByMajorIdx.get(key); recArray = new CFAstMinorVersionBuff[subdictMajorIdx.size()]; Iterator<CFAstMinorVersionBuff> iter = subdictMajorIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstMinorVersionBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamTopProjectTable.java
public CFAstTopProjectBuff[] readDerivedByDomainIdx(CFAstAuthorization Authorization, long TenantId, long DomainId) { final String S_ProcName = "CFAstRamTopProject.readDerivedByDomainIdx() "; CFAstTopProjectByDomainIdxKey key = schema.getFactoryTopProject().newDomainIdxKey(); key.setRequiredTenantId(TenantId);/*from w w w. j a v a 2s . c o m*/ key.setRequiredDomainId(DomainId); CFAstTopProjectBuff[] recArray; if (dictByDomainIdx.containsKey(key)) { SortedMap<CFAstDomainBasePKey, CFAstTopProjectBuff> subdictDomainIdx = dictByDomainIdx.get(key); recArray = new CFAstTopProjectBuff[subdictDomainIdx.size()]; Iterator<CFAstTopProjectBuff> iter = subdictDomainIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstTopProjectBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamISOCountryCurrencyTable.java
public CFAccISOCountryCurrencyBuff[] readDerivedByCurrencyIdx(CFAccAuthorization Authorization, short ISOCurrencyId) { final String S_ProcName = "CFAccRamISOCountryCurrency.readDerivedByCurrencyIdx() "; CFAccISOCountryCurrencyByCurrencyIdxKey key = schema.getFactoryISOCountryCurrency().newCurrencyIdxKey(); key.setRequiredISOCurrencyId(ISOCurrencyId); CFAccISOCountryCurrencyBuff[] recArray; if (dictByCurrencyIdx.containsKey(key)) { SortedMap<CFAccISOCountryCurrencyPKey, CFAccISOCountryCurrencyBuff> subdictCurrencyIdx = dictByCurrencyIdx .get(key);/*from w ww . j a v a2 s. c o m*/ recArray = new CFAccISOCountryCurrencyBuff[subdictCurrencyIdx.size()]; Iterator<CFAccISOCountryCurrencyBuff> iter = subdictCurrencyIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccISOCountryCurrencyBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamISOCountryLanguageTable.java
public CFAccISOCountryLanguageBuff[] readDerivedByLanguageIdx(CFAccAuthorization Authorization, short ISOLanguageId) { final String S_ProcName = "CFAccRamISOCountryLanguage.readDerivedByLanguageIdx() "; CFAccISOCountryLanguageByLanguageIdxKey key = schema.getFactoryISOCountryLanguage().newLanguageIdxKey(); key.setRequiredISOLanguageId(ISOLanguageId); CFAccISOCountryLanguageBuff[] recArray; if (dictByLanguageIdx.containsKey(key)) { SortedMap<CFAccISOCountryLanguagePKey, CFAccISOCountryLanguageBuff> subdictLanguageIdx = dictByLanguageIdx .get(key);/*from ww w .j av a 2 s .c o m*/ recArray = new CFAccISOCountryLanguageBuff[subdictLanguageIdx.size()]; Iterator<CFAccISOCountryLanguageBuff> iter = subdictLanguageIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccISOCountryLanguageBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamMajorVersionTable.java
public CFAccMajorVersionBuff[] readDerivedByPPrjIdx(CFAccAuthorization Authorization, long TenantId, long ParentProjectId) { final String S_ProcName = "CFAccRamMajorVersion.readDerivedByPPrjIdx() "; CFAccMajorVersionByPPrjIdxKey key = schema.getFactoryMajorVersion().newPPrjIdxKey(); key.setRequiredTenantId(TenantId);/* ww w. java 2 s .c o m*/ key.setRequiredParentProjectId(ParentProjectId); CFAccMajorVersionBuff[] recArray; if (dictByPPrjIdx.containsKey(key)) { SortedMap<CFAccDomainBasePKey, CFAccMajorVersionBuff> subdictPPrjIdx = dictByPPrjIdx.get(key); recArray = new CFAccMajorVersionBuff[subdictPPrjIdx.size()]; Iterator<CFAccMajorVersionBuff> iter = subdictPPrjIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccMajorVersionBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientPhoneTable.java
public CFAccPhoneBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgPhoneMessageFormatter.formatPhoneRqstReadAll("\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 w w . j a va 2 s . com 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.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientPhoneTable.java
public CFAccPhoneBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgPhoneMessageFormatter.formatPhoneRqstReadByTenantIdx("\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. j av 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<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.CFAstRam.CFAstRamISOCountryCurrencyTable.java
public CFAstISOCountryCurrencyBuff[] readDerivedByCurrencyIdx(CFAstAuthorization Authorization, short ISOCurrencyId) { final String S_ProcName = "CFAstRamISOCountryCurrency.readDerivedByCurrencyIdx() "; CFAstISOCountryCurrencyByCurrencyIdxKey key = schema.getFactoryISOCountryCurrency().newCurrencyIdxKey(); key.setRequiredISOCurrencyId(ISOCurrencyId); CFAstISOCountryCurrencyBuff[] recArray; if (dictByCurrencyIdx.containsKey(key)) { SortedMap<CFAstISOCountryCurrencyPKey, CFAstISOCountryCurrencyBuff> subdictCurrencyIdx = dictByCurrencyIdx .get(key);/*from w ww . ja v a 2s. co m*/ recArray = new CFAstISOCountryCurrencyBuff[subdictCurrencyIdx.size()]; Iterator<CFAstISOCountryCurrencyBuff> iter = subdictCurrencyIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstISOCountryCurrencyBuff[0]; } return (recArray); }