List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamMemoTable.java
public CFAccMemoBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAccRamMemo.readDerivedByTenantIdx() "; CFAccMemoByTenantIdxKey key = schema.getFactoryMemo().newTenantIdxKey(); key.setRequiredTenantId(TenantId);/*from w w w.ja v a 2s.c o m*/ CFAccMemoBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<CFAccMemoPKey, CFAccMemoBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new CFAccMemoBuff[subdictTenantIdx.size()]; Iterator<CFAccMemoBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccMemoBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamAsteriskConfTable.java
public CFAstAsteriskConfBuff[] readDerivedByConfClusterIdx(CFAstAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFAstRamAsteriskConf.readDerivedByConfClusterIdx() "; CFAstAsteriskConfByConfClusterIdxKey key = schema.getFactoryAsteriskConf().newConfClusterIdxKey(); key.setRequiredClusterId(ClusterId); CFAstAsteriskConfBuff[] recArray;//www. ja va 2 s . c o m if (dictByConfClusterIdx.containsKey(key)) { SortedMap<CFAstConfigurationFilePKey, CFAstAsteriskConfBuff> subdictConfClusterIdx = dictByConfClusterIdx .get(key); recArray = new CFAstAsteriskConfBuff[subdictConfClusterIdx.size()]; Iterator<CFAstAsteriskConfBuff> iter = subdictConfClusterIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstAsteriskConfBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamExtConfigConfTable.java
public CFAstExtConfigConfBuff[] readDerivedByExtCnfClusIdx(CFAstAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFAstRamExtConfigConf.readDerivedByExtCnfClusIdx() "; CFAstExtConfigConfByExtCnfClusIdxKey key = schema.getFactoryExtConfigConf().newExtCnfClusIdxKey(); key.setRequiredClusterId(ClusterId); CFAstExtConfigConfBuff[] recArray;//from w ww . j av a 2 s. co m if (dictByExtCnfClusIdx.containsKey(key)) { SortedMap<CFAstConfigurationFilePKey, CFAstExtConfigConfBuff> subdictExtCnfClusIdx = dictByExtCnfClusIdx .get(key); recArray = new CFAstExtConfigConfBuff[subdictExtCnfClusIdx.size()]; Iterator<CFAstExtConfigConfBuff> iter = subdictExtCnfClusIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstExtConfigConfBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAttachmentTable.java
public CFAccAttachmentBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAttachmentMessageFormatter.formatAttachmentRqstReadAll("\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 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<CFAccAttachmentPKey, ICFAccAttachmentObj> sortedMap = (SortedMap<CFAccAttachmentPKey, ICFAccAttachmentObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAttachmentBuff arr[] = new CFAccAttachmentBuff[sz]; Iterator<ICFAccAttachmentObj> iter = sortedMap.values().iterator(); ICFAccAttachmentObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAttachmentObj) iter.next(); arr[idx] = cur.getAttachmentBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAttachmentTable.java
public CFAccAttachmentBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAttachmentMessageFormatter.formatAttachmentRqstReadByTenantIdx("\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 ww . 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<CFAccAttachmentPKey, ICFAccAttachmentObj> sortedMap = (SortedMap<CFAccAttachmentPKey, ICFAccAttachmentObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAttachmentBuff arr[] = new CFAccAttachmentBuff[sz]; Iterator<ICFAccAttachmentObj> iter = sortedMap.values().iterator(); ICFAccAttachmentObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAttachmentObj) iter.next(); arr[idx] = cur.getAttachmentBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientContactURLTable.java
public CFAccContactURLBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgContactURLMessageFormatter.formatContactURLRqstReadAll("\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 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<CFAccContactURLPKey, ICFAccContactURLObj> sortedMap = (SortedMap<CFAccContactURLPKey, ICFAccContactURLObj>) sortedMapObj; int sz = sortedMap.size(); CFAccContactURLBuff arr[] = new CFAccContactURLBuff[sz]; Iterator<ICFAccContactURLObj> iter = sortedMap.values().iterator(); ICFAccContactURLObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccContactURLObj) iter.next(); arr[idx] = cur.getContactURLBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientContactURLTable.java
public CFAccContactURLBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgContactURLMessageFormatter.formatContactURLRqstReadByTenantIdx("\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 www .ja 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<CFAccContactURLPKey, ICFAccContactURLObj> sortedMap = (SortedMap<CFAccContactURLPKey, ICFAccContactURLObj>) sortedMapObj; int sz = sortedMap.size(); CFAccContactURLBuff arr[] = new CFAccContactURLBuff[sz]; Iterator<ICFAccContactURLObj> iter = sortedMap.values().iterator(); ICFAccContactURLObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccContactURLObj) iter.next(); arr[idx] = cur.getContactURLBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamExtensionsConfTable.java
public CFAstExtensionsConfBuff[] readDerivedByExtClusterIdx(CFAstAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFAstRamExtensionsConf.readDerivedByExtClusterIdx() "; CFAstExtensionsConfByExtClusterIdxKey key = schema.getFactoryExtensionsConf().newExtClusterIdxKey(); key.setRequiredClusterId(ClusterId); CFAstExtensionsConfBuff[] recArray;//w w w . j av a 2 s . c o m if (dictByExtClusterIdx.containsKey(key)) { SortedMap<CFAstConfigurationFilePKey, CFAstExtensionsConfBuff> subdictExtClusterIdx = dictByExtClusterIdx .get(key); recArray = new CFAstExtensionsConfBuff[subdictExtClusterIdx.size()]; Iterator<CFAstExtensionsConfBuff> iter = subdictExtClusterIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstExtensionsConfBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAttachmentTable.java
public CFAccAttachmentBuff[] readDerivedByMimeTypeIdx(CFAccAuthorization Authorization, Integer argMimeTypeId) { final String S_ProcName = "readDerivedByMimeTypeIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAttachmentMessageFormatter .formatAttachmentRqstReadByMimeTypeIdx("\n\t\t\t", argMimeTypeId) + "\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 . ja va2 s . 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<CFAccAttachmentPKey, ICFAccAttachmentObj> sortedMap = (SortedMap<CFAccAttachmentPKey, ICFAccAttachmentObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAttachmentBuff arr[] = new CFAccAttachmentBuff[sz]; Iterator<ICFAccAttachmentObj> iter = sortedMap.values().iterator(); ICFAccAttachmentObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAttachmentObj) iter.next(); arr[idx] = cur.getAttachmentBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAttachmentTable.java
public CFAccAttachmentBuff[] readDerivedByContactIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId) { final String S_ProcName = "readDerivedByContactIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAttachmentMessageFormatter.formatAttachmentRqstReadByContactIdx("\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"); }// ww w. j ava 2 s . 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<CFAccAttachmentPKey, ICFAccAttachmentObj> sortedMap = (SortedMap<CFAccAttachmentPKey, ICFAccAttachmentObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAttachmentBuff arr[] = new CFAccAttachmentBuff[sz]; Iterator<ICFAccAttachmentObj> iter = sortedMap.values().iterator(); ICFAccAttachmentObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAttachmentObj) iter.next(); arr[idx] = cur.getAttachmentBuff(); } return (arr); }