List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmXMsgClient.CFCrmXMsgClientContactListTable.java
public CFCrmContactListBuff[] readAllDerived(CFCrmAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgContactListMessageFormatter.formatContactListRqstReadAll("\n\t\t\t") + "\n" + CFCrmXMsgSchemaMessageFormatter.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 . co m CFCrmXMsgRspnHandler 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<CFCrmContactListPKey, ICFCrmContactListObj> sortedMap = (SortedMap<CFCrmContactListPKey, ICFCrmContactListObj>) sortedMapObj; int sz = sortedMap.size(); CFCrmContactListBuff arr[] = new CFCrmContactListBuff[sz]; Iterator<ICFCrmContactListObj> iter = sortedMap.values().iterator(); ICFCrmContactListObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFCrmContactListObj) iter.next(); arr[idx] = cur.getContactListBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmXMsgClient.CFCrmXMsgClientContactListTable.java
public CFCrmContactListBuff[] readDerivedByTenantIdx(CFCrmAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgContactListMessageFormatter.formatContactListRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFCrmXMsgSchemaMessageFormatter.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 2s . c om CFCrmXMsgRspnHandler 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<CFCrmContactListPKey, ICFCrmContactListObj> sortedMap = (SortedMap<CFCrmContactListPKey, ICFCrmContactListObj>) sortedMapObj; int sz = sortedMap.size(); CFCrmContactListBuff arr[] = new CFCrmContactListBuff[sz]; Iterator<ICFCrmContactListObj> iter = sortedMap.values().iterator(); ICFCrmContactListObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFCrmContactListObj) iter.next(); arr[idx] = cur.getContactListBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSecGroupTable.java
public CFAccSecGroupBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupMessageFormatter.formatSecGroupRqstReadAll("\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. ja va2s . 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<CFAccSecGroupPKey, ICFAccSecGroupObj> sortedMap = (SortedMap<CFAccSecGroupPKey, ICFAccSecGroupObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecGroupBuff arr[] = new CFAccSecGroupBuff[sz]; Iterator<ICFAccSecGroupObj> iter = sortedMap.values().iterator(); ICFAccSecGroupObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecGroupObj) iter.next(); arr[idx] = cur.getSecGroupBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSecGroupTable.java
public CFAccSecGroupBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupMessageFormatter.formatSecGroupRqstReadByClusterIdx("\n\t\t\t", argClusterId) + "\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 . jav 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<CFAccSecGroupPKey, ICFAccSecGroupObj> sortedMap = (SortedMap<CFAccSecGroupPKey, ICFAccSecGroupObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecGroupBuff arr[] = new CFAccSecGroupBuff[sz]; Iterator<ICFAccSecGroupObj> iter = sortedMap.values().iterator(); ICFAccSecGroupObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecGroupObj) iter.next(); arr[idx] = cur.getSecGroupBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecGroupTable.java
public CFAstSecGroupBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecGroupMessageFormatter.formatSecGroupRqstReadAll("\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 ww.j av a 2 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<CFAstSecGroupPKey, ICFAstSecGroupObj> sortedMap = (SortedMap<CFAstSecGroupPKey, ICFAstSecGroupObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecGroupBuff arr[] = new CFAstSecGroupBuff[sz]; Iterator<ICFAstSecGroupObj> iter = sortedMap.values().iterator(); ICFAstSecGroupObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecGroupObj) iter.next(); arr[idx] = cur.getSecGroupBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecGroupTable.java
public CFAstSecGroupBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecGroupMessageFormatter.formatSecGroupRqstReadByClusterIdx("\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"); }//from w ww . 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<CFAstSecGroupPKey, ICFAstSecGroupObj> sortedMap = (SortedMap<CFAstSecGroupPKey, ICFAstSecGroupObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecGroupBuff arr[] = new CFAstSecGroupBuff[sz]; Iterator<ICFAstSecGroupObj> iter = sortedMap.values().iterator(); ICFAstSecGroupObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecGroupObj) iter.next(); arr[idx] = cur.getSecGroupBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientISOCurrencyTable.java
public CFAccISOCurrencyBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgISOCurrencyMessageFormatter.formatISOCurrencyRqstReadAll("\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 . jav 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<CFAccISOCurrencyPKey, ICFAccISOCurrencyObj> sortedMap = (SortedMap<CFAccISOCurrencyPKey, ICFAccISOCurrencyObj>) sortedMapObj; int sz = sortedMap.size(); CFAccISOCurrencyBuff arr[] = new CFAccISOCurrencyBuff[sz]; Iterator<ICFAccISOCurrencyObj> iter = sortedMap.values().iterator(); ICFAccISOCurrencyObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccISOCurrencyObj) iter.next(); arr[idx] = cur.getISOCurrencyBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOCurrencyTable.java
public CFAstISOCurrencyBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgISOCurrencyMessageFormatter.formatISOCurrencyRqstReadAll("\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. j av a2s . 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<CFAstISOCurrencyPKey, ICFAstISOCurrencyObj> sortedMap = (SortedMap<CFAstISOCurrencyPKey, ICFAstISOCurrencyObj>) sortedMapObj; int sz = sortedMap.size(); CFAstISOCurrencyBuff arr[] = new CFAstISOCurrencyBuff[sz]; Iterator<ICFAstISOCurrencyObj> iter = sortedMap.values().iterator(); ICFAstISOCurrencyObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstISOCurrencyObj) iter.next(); arr[idx] = cur.getISOCurrencyBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashXMsgClient.CFGCashXMsgClientSecAppTable.java
public CFGCashSecAppBuff[] readAllDerived(CFGCashAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFGCashXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGCashXMsgSecAppMessageFormatter.formatSecAppRqstReadAll("\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 . j ava2 s . co 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<CFGCashSecAppPKey, ICFGCashSecAppObj> sortedMap = (SortedMap<CFGCashSecAppPKey, ICFGCashSecAppObj>) sortedMapObj; int sz = sortedMap.size(); CFGCashSecAppBuff arr[] = new CFGCashSecAppBuff[sz]; Iterator<ICFGCashSecAppObj> iter = sortedMap.values().iterator(); ICFGCashSecAppObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGCashSecAppObj) iter.next(); arr[idx] = cur.getSecAppBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashXMsgClient.CFGCashXMsgClientSecAppTable.java
public CFGCashSecAppBuff[] readDerivedByClusterIdx(CFGCashAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFGCashXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGCashXMsgSecAppMessageFormatter.formatSecAppRqstReadByClusterIdx("\n\t\t\t", argClusterId) + "\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 . j av a 2 s . com*/ 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<CFGCashSecAppPKey, ICFGCashSecAppObj> sortedMap = (SortedMap<CFGCashSecAppPKey, ICFGCashSecAppObj>) sortedMapObj; int sz = sortedMap.size(); CFGCashSecAppBuff arr[] = new CFGCashSecAppBuff[sz]; Iterator<ICFGCashSecAppObj> iter = sortedMap.values().iterator(); ICFGCashSecAppObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGCashSecAppObj) iter.next(); arr[idx] = cur.getSecAppBuff(); } return (arr); }