List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSecGroupFormTable.java
public CFAccSecGroupFormBuff[] readDerivedByAppIdx(CFAccAuthorization Authorization, long argClusterId, int argSecAppId) { final String S_ProcName = "readDerivedByAppIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByAppIdx("\n\t\t\t", argClusterId, argSecAppId) + "\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 ava 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<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj> sortedMap = (SortedMap<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecGroupFormBuff arr[] = new CFAccSecGroupFormBuff[sz]; Iterator<ICFAccSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAccSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSecGroupFormTable.java
public CFAccSecGroupFormBuff[] readDerivedByFormIdx(CFAccAuthorization Authorization, long argClusterId, int argSecFormId) { final String S_ProcName = "readDerivedByFormIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByFormIdx("\n\t\t\t", argClusterId, argSecFormId) + "\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 . j a v a 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<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj> sortedMap = (SortedMap<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecGroupFormBuff arr[] = new CFAccSecGroupFormBuff[sz]; Iterator<ICFAccSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAccSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecGroupFormTable.java
public CFAstSecGroupFormBuff[] readDerivedByGroupIdx(CFAstAuthorization Authorization, long argClusterId, int argSecGroupId) { final String S_ProcName = "readDerivedByGroupIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByGroupIdx("\n\t\t\t", argClusterId, argSecGroupId) + "\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 ww .j a va 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<CFAstSecGroupFormPKey, ICFAstSecGroupFormObj> sortedMap = (SortedMap<CFAstSecGroupFormPKey, ICFAstSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecGroupFormBuff arr[] = new CFAstSecGroupFormBuff[sz]; Iterator<ICFAstSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAstSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecGroupFormTable.java
public CFAstSecGroupFormBuff[] readDerivedByAppIdx(CFAstAuthorization Authorization, long argClusterId, int argSecAppId) { final String S_ProcName = "readDerivedByAppIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByAppIdx("\n\t\t\t", argClusterId, argSecAppId) + "\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 ww w . j a v a2 s. 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<CFAstSecGroupFormPKey, ICFAstSecGroupFormObj> sortedMap = (SortedMap<CFAstSecGroupFormPKey, ICFAstSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecGroupFormBuff arr[] = new CFAstSecGroupFormBuff[sz]; Iterator<ICFAstSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAstSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecGroupFormTable.java
public CFAstSecGroupFormBuff[] readDerivedByFormIdx(CFAstAuthorization Authorization, long argClusterId, int argSecFormId) { final String S_ProcName = "readDerivedByFormIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByFormIdx("\n\t\t\t", argClusterId, argSecFormId) + "\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 2 s . 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<CFAstSecGroupFormPKey, ICFAstSecGroupFormObj> sortedMap = (SortedMap<CFAstSecGroupFormPKey, ICFAstSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecGroupFormBuff arr[] = new CFAstSecGroupFormBuff[sz]; Iterator<ICFAstSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAstSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamAccountContactTable.java
public CFAccAccountContactBuff[] readDerivedByCtctLstIdx(CFAccAuthorization Authorization, long TenantId, long ContactListId) { final String S_ProcName = "CFAccRamAccountContact.readDerivedByCtctLstIdx() "; CFAccAccountContactByCtctLstIdxKey key = schema.getFactoryAccountContact().newCtctLstIdxKey(); key.setRequiredTenantId(TenantId);//ww w. j av a 2 s .c o m key.setRequiredContactListId(ContactListId); CFAccAccountContactBuff[] recArray; if (dictByCtctLstIdx.containsKey(key)) { SortedMap<CFAccAccountContactPKey, CFAccAccountContactBuff> subdictCtctLstIdx = dictByCtctLstIdx .get(key); recArray = new CFAccAccountContactBuff[subdictCtctLstIdx.size()]; Iterator<CFAccAccountContactBuff> iter = subdictCtctLstIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccAccountContactBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamPhoneTable.java
public CFAccPhoneBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAccRamPhone.readDerivedByTenantIdx() "; CFAccPhoneByTenantIdxKey key = schema.getFactoryPhone().newTenantIdxKey(); key.setRequiredTenantId(TenantId);// ww w. j a v a2s.c o m CFAccPhoneBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<CFAccPhonePKey, CFAccPhoneBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new CFAccPhoneBuff[subdictTenantIdx.size()]; Iterator<CFAccPhoneBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccPhoneBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAccountConfigTable.java
public CFAccAccountConfigBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstReadAll("\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 a2 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<CFAccAccountConfigPKey, ICFAccAccountConfigObj> sortedMap = (SortedMap<CFAccAccountConfigPKey, ICFAccAccountConfigObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountConfigBuff arr[] = new CFAccAccountConfigBuff[sz]; Iterator<ICFAccAccountConfigObj> iter = sortedMap.values().iterator(); ICFAccAccountConfigObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountConfigObj) iter.next(); arr[idx] = cur.getAccountConfigBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamPhoneTable.java
public CFAccPhoneBuff[] readDerivedByContactIdx(CFAccAuthorization Authorization, long TenantId, long ContactId) { final String S_ProcName = "CFAccRamPhone.readDerivedByContactIdx() "; CFAccPhoneByContactIdxKey key = schema.getFactoryPhone().newContactIdxKey(); key.setRequiredTenantId(TenantId);//from www .j av a2 s .c o m key.setRequiredContactId(ContactId); CFAccPhoneBuff[] recArray; if (dictByContactIdx.containsKey(key)) { SortedMap<CFAccPhonePKey, CFAccPhoneBuff> subdictContactIdx = dictByContactIdx.get(key); recArray = new CFAccPhoneBuff[subdictContactIdx.size()]; Iterator<CFAccPhoneBuff> iter = subdictContactIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccPhoneBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAccountConfigTable.java
public CFAccAccountConfigBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstReadByTenantIdx("\n\t\t\t", argTenantId)/*from w ww . ja v a 2s . c om*/ + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } 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<CFAccAccountConfigPKey, ICFAccAccountConfigObj> sortedMap = (SortedMap<CFAccAccountConfigPKey, ICFAccAccountConfigObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountConfigBuff arr[] = new CFAccAccountConfigBuff[sz]; Iterator<ICFAccAccountConfigObj> iter = sortedMap.values().iterator(); ICFAccAccountConfigObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountConfigObj) iter.next(); arr[idx] = cur.getAccountConfigBuff(); } return (arr); }