List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactTagTable.java
public CFAccContactTagBuff[] readDerivedByTagIdx(CFAccAuthorization Authorization, long TenantId, long TagId) { final String S_ProcName = "CFAccRamContactTag.readDerivedByTagIdx() "; CFAccContactTagByTagIdxKey key = schema.getFactoryContactTag().newTagIdxKey(); key.setRequiredTenantId(TenantId);/* w ww . ja v a2s. c o m*/ key.setRequiredTagId(TagId); CFAccContactTagBuff[] recArray; if (dictByTagIdx.containsKey(key)) { SortedMap<CFAccContactTagPKey, CFAccContactTagBuff> subdictTagIdx = dictByTagIdx.get(key); recArray = new CFAccContactTagBuff[subdictTagIdx.size()]; Iterator<CFAccContactTagBuff> iter = subdictTagIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactTagBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupMemberTable.java
public CFGenKbTSecGroupMemberBuff[] readDerivedByTenantIdx(CFGenKbAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupMemberMessageFormatter .formatTSecGroupMemberRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFGenKbXMsgSchemaMessageFormatter.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 .com CFGenKbXMsgRspnHandler 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<CFGenKbTSecGroupMemberPKey, ICFGenKbTSecGroupMemberObj> sortedMap = (SortedMap<CFGenKbTSecGroupMemberPKey, ICFGenKbTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupMemberBuff arr[] = new CFGenKbTSecGroupMemberBuff[sz]; Iterator<ICFGenKbTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupMemberTable.java
public CFGenKbTSecGroupMemberBuff[] readDerivedByGroupIdx(CFGenKbAuthorization Authorization, long argTenantId, int argTSecGroupId) { final String S_ProcName = "readDerivedByGroupIdx"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupMemberMessageFormatter.formatTSecGroupMemberRqstReadByGroupIdx("\n\t\t\t", argTenantId, argTSecGroupId) + "\n" + CFGenKbXMsgSchemaMessageFormatter.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 2s .c o m*/ CFGenKbXMsgRspnHandler 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<CFGenKbTSecGroupMemberPKey, ICFGenKbTSecGroupMemberObj> sortedMap = (SortedMap<CFGenKbTSecGroupMemberPKey, ICFGenKbTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupMemberBuff arr[] = new CFGenKbTSecGroupMemberBuff[sz]; Iterator<ICFGenKbTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupMemberTable.java
public CFGenKbTSecGroupMemberBuff[] readDerivedByUserIdx(CFGenKbAuthorization Authorization, UUID argSecUserId) {/*from w w w .j a v a2 s .c o m*/ final String S_ProcName = "readDerivedByUserIdx"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupMemberMessageFormatter .formatTSecGroupMemberRqstReadByUserIdx("\n\t\t\t", argSecUserId) + "\n" + CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFGenKbXMsgRspnHandler 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<CFGenKbTSecGroupMemberPKey, ICFGenKbTSecGroupMemberObj> sortedMap = (SortedMap<CFGenKbTSecGroupMemberPKey, ICFGenKbTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupMemberBuff arr[] = new CFGenKbTSecGroupMemberBuff[sz]; Iterator<ICFGenKbTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamAddressTagTable.java
public CFAccAddressTagBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAccRamAddressTag.readDerivedByTenantIdx() "; CFAccAddressTagByTenantIdxKey key = schema.getFactoryAddressTag().newTenantIdxKey(); key.setRequiredTenantId(TenantId);/*from www.j a v a2 s . c o m*/ CFAccAddressTagBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<CFAccAddressTagPKey, CFAccAddressTagBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new CFAccAddressTagBuff[subdictTenantIdx.size()]; Iterator<CFAccAddressTagBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccAddressTagBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactTagTable.java
public CFAccContactTagBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAccRamContactTag.readDerivedByTenantIdx() "; CFAccContactTagByTenantIdxKey key = schema.getFactoryContactTag().newTenantIdxKey(); key.setRequiredTenantId(TenantId);// ww w.j a v a2s. c o m CFAccContactTagBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<CFAccContactTagPKey, CFAccContactTagBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new CFAccContactTagBuff[subdictTenantIdx.size()]; Iterator<CFAccContactTagBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactTagBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientServiceTable.java
public CFAccServiceBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgServiceMessageFormatter.formatServiceRqstReadAll("\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 . ja 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<CFAccServicePKey, ICFAccServiceObj> sortedMap = (SortedMap<CFAccServicePKey, ICFAccServiceObj>) sortedMapObj; int sz = sortedMap.size(); CFAccServiceBuff arr[] = new CFAccServiceBuff[sz]; Iterator<ICFAccServiceObj> iter = sortedMap.values().iterator(); ICFAccServiceObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccServiceObj) iter.next(); arr[idx] = cur.getServiceBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientServiceTable.java
public CFAccServiceBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgServiceMessageFormatter.formatServiceRqstReadByClusterIdx("\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"); }/*from w w w .jav 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<CFAccServicePKey, ICFAccServiceObj> sortedMap = (SortedMap<CFAccServicePKey, ICFAccServiceObj>) sortedMapObj; int sz = sortedMap.size(); CFAccServiceBuff arr[] = new CFAccServiceBuff[sz]; Iterator<ICFAccServiceObj> iter = sortedMap.values().iterator(); ICFAccServiceObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccServiceObj) iter.next(); arr[idx] = cur.getServiceBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientServiceTable.java
public CFAccServiceBuff[] readDerivedByTypeIdx(CFAccAuthorization Authorization, int argServiceTypeId) { final String S_ProcName = "readDerivedByTypeIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgServiceMessageFormatter.formatServiceRqstReadByTypeIdx("\n\t\t\t", argServiceTypeId) + "\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 a va 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<CFAccServicePKey, ICFAccServiceObj> sortedMap = (SortedMap<CFAccServicePKey, ICFAccServiceObj>) sortedMapObj; int sz = sortedMap.size(); CFAccServiceBuff arr[] = new CFAccServiceBuff[sz]; Iterator<ICFAccServiceObj> iter = sortedMap.values().iterator(); ICFAccServiceObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccServiceObj) iter.next(); arr[idx] = cur.getServiceBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientServiceTable.java
public CFAstServiceBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgServiceMessageFormatter.formatServiceRqstReadAll("\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 .ja va 2s .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<CFAstServicePKey, ICFAstServiceObj> sortedMap = (SortedMap<CFAstServicePKey, ICFAstServiceObj>) sortedMapObj; int sz = sortedMap.size(); CFAstServiceBuff arr[] = new CFAstServiceBuff[sz]; Iterator<ICFAstServiceObj> iter = sortedMap.values().iterator(); ICFAstServiceObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstServiceObj) iter.next(); arr[idx] = cur.getServiceBuff(); } return (arr); }