List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientDomainBaseTable.java
public CFAccDomainBaseBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgDomainBaseMessageFormatter.formatDomainBaseRqstReadByTenantIdx("\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"); }/*w w w . j a va 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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccDomainBaseBuff arr[] = new CFAccDomainBaseBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccDomainBaseObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccDomainBaseObj) iter.next(); arr[idx] = cur.getDomainBaseBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientDomainBaseTable.java
public CFAstDomainBaseBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgDomainBaseMessageFormatter.formatDomainBaseRqstReadAll("\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 va 2 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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstDomainBaseBuff arr[] = new CFAstDomainBaseBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstDomainBaseObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstDomainBaseObj) iter.next(); arr[idx] = cur.getDomainBaseBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientDomainBaseTable.java
public CFAstDomainBaseBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgDomainBaseMessageFormatter.formatDomainBaseRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\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 ww . j a v a2 s. 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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstDomainBaseBuff arr[] = new CFAstDomainBaseBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstDomainBaseObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstDomainBaseObj) iter.next(); arr[idx] = cur.getDomainBaseBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAuditActionTable.java
public CFAccAuditActionBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAuditActionMessageFormatter.formatAuditActionRqstReadAll("\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 ww w. j av a2s . 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<CFAccAuditActionPKey, ICFAccAuditActionObj> sortedMap = (SortedMap<CFAccAuditActionPKey, ICFAccAuditActionObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAuditActionBuff arr[] = new CFAccAuditActionBuff[sz]; Iterator<ICFAccAuditActionObj> iter = sortedMap.values().iterator(); ICFAccAuditActionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAuditActionObj) iter.next(); arr[idx] = cur.getAuditActionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientServiceTypeTable.java
public CFAccServiceTypeBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgServiceTypeMessageFormatter.formatServiceTypeRqstReadAll("\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 .j a v a2 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<CFAccServiceTypePKey, ICFAccServiceTypeObj> sortedMap = (SortedMap<CFAccServiceTypePKey, ICFAccServiceTypeObj>) sortedMapObj; int sz = sortedMap.size(); CFAccServiceTypeBuff arr[] = new CFAccServiceTypeBuff[sz]; Iterator<ICFAccServiceTypeObj> iter = sortedMap.values().iterator(); ICFAccServiceTypeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccServiceTypeObj) iter.next(); arr[idx] = cur.getServiceTypeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientAuditActionTable.java
public CFAstAuditActionBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgAuditActionMessageFormatter.formatAuditActionRqstReadAll("\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"); }// 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<CFAstAuditActionPKey, ICFAstAuditActionObj> sortedMap = (SortedMap<CFAstAuditActionPKey, ICFAstAuditActionObj>) sortedMapObj; int sz = sortedMap.size(); CFAstAuditActionBuff arr[] = new CFAstAuditActionBuff[sz]; Iterator<ICFAstAuditActionObj> iter = sortedMap.values().iterator(); ICFAstAuditActionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstAuditActionObj) iter.next(); arr[idx] = cur.getAuditActionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientServiceTypeTable.java
public CFAstServiceTypeBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgServiceTypeMessageFormatter.formatServiceTypeRqstReadAll("\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"); }/*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<CFAstServiceTypePKey, ICFAstServiceTypeObj> sortedMap = (SortedMap<CFAstServiceTypePKey, ICFAstServiceTypeObj>) sortedMapObj; int sz = sortedMap.size(); CFAstServiceTypeBuff arr[] = new CFAstServiceTypeBuff[sz]; Iterator<ICFAstServiceTypeObj> iter = sortedMap.values().iterator(); ICFAstServiceTypeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstServiceTypeObj) iter.next(); arr[idx] = cur.getServiceTypeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfcore.v1_11.GenKbRam.GenKbRamContactListTable.java
public GenKbContactListBuff[] readDerivedByTenantIdx(GenKbAuthorization Authorization, long TenantId) { final String S_ProcName = "GenKbRamContactList.readDerivedByTenantIdx() "; GenKbContactListByTenantIdxKey key = schema.getFactoryContactList().newTenantIdxKey(); key.setRequiredTenantId(TenantId);/*from www .j av a2 s. c om*/ GenKbContactListBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<GenKbContactListPKey, GenKbContactListBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new GenKbContactListBuff[subdictTenantIdx.size()]; Iterator<GenKbContactListBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new GenKbContactListBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashXMsgClient.CFGCashXMsgClientRealProjectTable.java
public CFGCashRealProjectBuff[] readAllDerived(CFGCashAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFGCashXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGCashXMsgRealProjectMessageFormatter.formatRealProjectRqstReadAll("\n\t\t\t") + "\n" + CFGCashXMsgSchemaMessageFormatter.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 . jav a 2s . c o m*/ CFGCashXMsgRspnHandler 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<CFGCashDomainBasePKey, ICFGCashDomainBaseObj> sortedMap = (SortedMap<CFGCashDomainBasePKey, ICFGCashDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFGCashRealProjectBuff arr[] = new CFGCashRealProjectBuff[sz]; Iterator<ICFGCashDomainBaseObj> iter = sortedMap.values().iterator(); ICFGCashRealProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGCashRealProjectObj) iter.next(); arr[idx] = cur.getRealProjectBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashXMsgClient.CFGCashXMsgClientRealProjectTable.java
public CFGCashRealProjectBuff[] readDerivedByTenantIdx(CFGCashAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFGCashXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGCashXMsgRealProjectMessageFormatter .formatRealProjectRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFGCashXMsgSchemaMessageFormatter.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 va 2 s. c o m CFGCashXMsgRspnHandler 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<CFGCashDomainBasePKey, ICFGCashDomainBaseObj> sortedMap = (SortedMap<CFGCashDomainBasePKey, ICFGCashDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFGCashRealProjectBuff arr[] = new CFGCashRealProjectBuff[sz]; Iterator<ICFGCashDomainBaseObj> iter = sortedMap.values().iterator(); ICFGCashRealProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGCashRealProjectObj) iter.next(); arr[idx] = cur.getRealProjectBuff(); } return (arr); }