List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamAddressTable.java
public CFAccAddressBuff[] readDerivedByContactIdx(CFAccAuthorization Authorization, long TenantId, long ContactId) { final String S_ProcName = "CFAccRamAddress.readDerivedByContactIdx() "; CFAccAddressByContactIdxKey key = schema.getFactoryAddress().newContactIdxKey(); key.setRequiredTenantId(TenantId);//from w w w . j a v a 2 s. c om key.setRequiredContactId(ContactId); CFAccAddressBuff[] recArray; if (dictByContactIdx.containsKey(key)) { SortedMap<CFAccAddressPKey, CFAccAddressBuff> subdictContactIdx = dictByContactIdx.get(key); recArray = new CFAccAddressBuff[subdictContactIdx.size()]; Iterator<CFAccAddressBuff> iter = subdictContactIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccAddressBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactURLTable.java
public CFAccContactURLBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAccRamContactURL.readDerivedByTenantIdx() "; CFAccContactURLByTenantIdxKey key = schema.getFactoryContactURL().newTenantIdxKey(); key.setRequiredTenantId(TenantId);// w w w.j a v a 2 s . c o m CFAccContactURLBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<CFAccContactURLPKey, CFAccContactURLBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new CFAccContactURLBuff[subdictTenantIdx.size()]; Iterator<CFAccContactURLBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactURLBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamAttachmentTable.java
public CFAccAttachmentBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAccRamAttachment.readDerivedByTenantIdx() "; CFAccAttachmentByTenantIdxKey key = schema.getFactoryAttachment().newTenantIdxKey(); key.setRequiredTenantId(TenantId);/*from www. ja v a 2 s. c o m*/ CFAccAttachmentBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<CFAccAttachmentPKey, CFAccAttachmentBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new CFAccAttachmentBuff[subdictTenantIdx.size()]; Iterator<CFAccAttachmentBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccAttachmentBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactTable.java
public CFAccContactBuff[] readDerivedByContTentIdx(CFAccAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAccRamContact.readDerivedByContTentIdx() "; CFAccContactByContTentIdxKey key = schema.getFactoryContact().newContTentIdxKey(); key.setRequiredTenantId(TenantId);/*from w ww . j a va 2s . c om*/ CFAccContactBuff[] recArray; if (dictByContTentIdx.containsKey(key)) { SortedMap<CFAccContactPKey, CFAccContactBuff> subdictContTentIdx = dictByContTentIdx.get(key); recArray = new CFAccContactBuff[subdictContTentIdx.size()]; Iterator<CFAccContactBuff> iter = subdictContTentIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactTable.java
public CFAccContactBuff[] readDerivedByTimezoneIdx(CFAccAuthorization Authorization, Short ISOTimezoneId) { final String S_ProcName = "CFAccRamContact.readDerivedByTimezoneIdx() "; CFAccContactByTimezoneIdxKey key = schema.getFactoryContact().newTimezoneIdxKey(); key.setOptionalISOTimezoneId(ISOTimezoneId); CFAccContactBuff[] recArray;//from w w w.ja v a 2s. c om if (dictByTimezoneIdx.containsKey(key)) { SortedMap<CFAccContactPKey, CFAccContactBuff> subdictTimezoneIdx = dictByTimezoneIdx.get(key); recArray = new CFAccContactBuff[subdictTimezoneIdx.size()]; Iterator<CFAccContactBuff> iter = subdictTimezoneIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactURLTable.java
public CFAccContactURLBuff[] readDerivedByContactIdx(CFAccAuthorization Authorization, long TenantId, long ContactId) { final String S_ProcName = "CFAccRamContactURL.readDerivedByContactIdx() "; CFAccContactURLByContactIdxKey key = schema.getFactoryContactURL().newContactIdxKey(); key.setRequiredTenantId(TenantId);/*from w ww .j av a2s. co m*/ key.setRequiredContactId(ContactId); CFAccContactURLBuff[] recArray; if (dictByContactIdx.containsKey(key)) { SortedMap<CFAccContactURLPKey, CFAccContactURLBuff> subdictContactIdx = dictByContactIdx.get(key); recArray = new CFAccContactURLBuff[subdictContactIdx.size()]; Iterator<CFAccContactURLBuff> iter = subdictContactIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactURLBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactURLTable.java
public CFAccContactURLBuff[] readDerivedByProtocolIdx(CFAccAuthorization Authorization, Short URLProtocolId) { final String S_ProcName = "CFAccRamContactURL.readDerivedByProtocolIdx() "; CFAccContactURLByProtocolIdxKey key = schema.getFactoryContactURL().newProtocolIdxKey(); key.setOptionalURLProtocolId(URLProtocolId); CFAccContactURLBuff[] recArray;// w w w .ja v a 2 s .com if (dictByProtocolIdx.containsKey(key)) { SortedMap<CFAccContactURLPKey, CFAccContactURLBuff> subdictProtocolIdx = dictByProtocolIdx.get(key); recArray = new CFAccContactURLBuff[subdictProtocolIdx.size()]; Iterator<CFAccContactURLBuff> iter = subdictProtocolIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactURLBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactTable.java
public CFAccContactBuff[] readDerivedByContListIdx(CFAccAuthorization Authorization, long TenantId, long ContactListId) { final String S_ProcName = "CFAccRamContact.readDerivedByContListIdx() "; CFAccContactByContListIdxKey key = schema.getFactoryContact().newContListIdxKey(); key.setRequiredTenantId(TenantId);//from w ww.jav a 2 s . c om key.setRequiredContactListId(ContactListId); CFAccContactBuff[] recArray; if (dictByContListIdx.containsKey(key)) { SortedMap<CFAccContactPKey, CFAccContactBuff> subdictContListIdx = dictByContListIdx.get(key); recArray = new CFAccContactBuff[subdictContListIdx.size()]; Iterator<CFAccContactBuff> iter = subdictContListIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamAttachmentTable.java
public CFAccAttachmentBuff[] readDerivedByContactIdx(CFAccAuthorization Authorization, long TenantId, long ContactId) { final String S_ProcName = "CFAccRamAttachment.readDerivedByContactIdx() "; CFAccAttachmentByContactIdxKey key = schema.getFactoryAttachment().newContactIdxKey(); key.setRequiredTenantId(TenantId);// w ww .j a v a2 s . c o m key.setRequiredContactId(ContactId); CFAccAttachmentBuff[] recArray; if (dictByContactIdx.containsKey(key)) { SortedMap<CFAccAttachmentPKey, CFAccAttachmentBuff> subdictContactIdx = dictByContactIdx.get(key); recArray = new CFAccAttachmentBuff[subdictContactIdx.size()]; Iterator<CFAccAttachmentBuff> iter = subdictContactIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccAttachmentBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamAttachmentTable.java
public CFAccAttachmentBuff[] readDerivedByMimeTypeIdx(CFAccAuthorization Authorization, Integer MimeTypeId) { final String S_ProcName = "CFAccRamAttachment.readDerivedByMimeTypeIdx() "; CFAccAttachmentByMimeTypeIdxKey key = schema.getFactoryAttachment().newMimeTypeIdxKey(); key.setOptionalMimeTypeId(MimeTypeId); CFAccAttachmentBuff[] recArray;//from w w w . ja v a 2 s .c o m if (dictByMimeTypeIdx.containsKey(key)) { SortedMap<CFAccAttachmentPKey, CFAccAttachmentBuff> subdictMimeTypeIdx = dictByMimeTypeIdx.get(key); recArray = new CFAccAttachmentBuff[subdictMimeTypeIdx.size()]; Iterator<CFAccAttachmentBuff> iter = subdictMimeTypeIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccAttachmentBuff[0]; } return (recArray); }