List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMemoTagTable.java
public CFAccMemoTagBuff[] readDerivedByTagIdx(CFAccAuthorization Authorization, long argTenantId, long argTagId) { final String S_ProcName = "readDerivedByTagIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoTagMessageFormatter.formatMemoTagRqstReadByTagIdx("\n\t\t\t", argTenantId, argTagId) + "\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. ja va 2s.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<CFAccMemoTagPKey, ICFAccMemoTagObj> sortedMap = (SortedMap<CFAccMemoTagPKey, ICFAccMemoTagObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoTagBuff arr[] = new CFAccMemoTagBuff[sz]; Iterator<ICFAccMemoTagObj> iter = sortedMap.values().iterator(); ICFAccMemoTagObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoTagObj) iter.next(); arr[idx] = cur.getMemoTagBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientDomainTable.java
public CFAccDomainBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgDomainMessageFormatter.formatDomainRqstReadAll("\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 www .j av a 2s . 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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccDomainBuff arr[] = new CFAccDomainBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccDomainObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccDomainObj) iter.next(); arr[idx] = cur.getDomainBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientDomainTable.java
public CFAccDomainBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgDomainMessageFormatter.formatDomainRqstReadByTenantIdx("\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 a2 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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccDomainBuff arr[] = new CFAccDomainBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccDomainObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccDomainObj) iter.next(); arr[idx] = cur.getDomainBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMemoTagTable.java
public CFAccMemoTagBuff[] readDerivedByMemoIdx(CFAccAuthorization Authorization, long argTenantId, long argMemoId) { final String S_ProcName = "readDerivedByMemoIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoTagMessageFormatter.formatMemoTagRqstReadByMemoIdx("\n\t\t\t", argTenantId, argMemoId)//from w w w . j av a2 s .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<CFAccMemoTagPKey, ICFAccMemoTagObj> sortedMap = (SortedMap<CFAccMemoTagPKey, ICFAccMemoTagObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoTagBuff arr[] = new CFAccMemoTagBuff[sz]; Iterator<ICFAccMemoTagObj> iter = sortedMap.values().iterator(); ICFAccMemoTagObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoTagObj) iter.next(); arr[idx] = cur.getMemoTagBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientTopDomainTable.java
public CFAccTopDomainBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgTopDomainMessageFormatter.formatTopDomainRqstReadAll("\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 ww. java2 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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccTopDomainBuff arr[] = new CFAccTopDomainBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccTopDomainObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccTopDomainObj) iter.next(); arr[idx] = cur.getTopDomainBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientTopDomainTable.java
public CFAccTopDomainBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgTopDomainMessageFormatter.formatTopDomainRqstReadByTenantIdx("\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 ww .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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccTopDomainBuff arr[] = new CFAccTopDomainBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccTopDomainObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccTopDomainObj) iter.next(); arr[idx] = cur.getTopDomainBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientDomainTable.java
public CFAstDomainBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgDomainMessageFormatter.formatDomainRqstReadAll("\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 2s .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(); CFAstDomainBuff arr[] = new CFAstDomainBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstDomainObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstDomainObj) iter.next(); arr[idx] = cur.getDomainBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientDomainTable.java
public CFAstDomainBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgDomainMessageFormatter.formatDomainRqstReadByTenantIdx("\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"); }//from www .j a va 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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstDomainBuff arr[] = new CFAstDomainBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstDomainObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstDomainObj) iter.next(); arr[idx] = cur.getDomainBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTopDomainTable.java
public CFAstTopDomainBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTopDomainMessageFormatter.formatTopDomainRqstReadAll("\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 .ja v a2s. 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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTopDomainBuff arr[] = new CFAstTopDomainBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstTopDomainObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTopDomainObj) iter.next(); arr[idx] = cur.getTopDomainBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTopDomainTable.java
public CFAstTopDomainBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTopDomainMessageFormatter.formatTopDomainRqstReadByTenantIdx("\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"); }/*from ww w.j a 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(); CFAstTopDomainBuff arr[] = new CFAstTopDomainBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstTopDomainObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTopDomainObj) iter.next(); arr[idx] = cur.getTopDomainBuff(); } return (arr); }