Collections
An instance of the forvendi.BreezzApi.BreezzCollections class which provides methods operating on collections.
extractIdsFromList(List records)
Extracts record ids from the SObject list
Signature:
forvendi.BreezzApi.COLLECTIONS.extractIdsFromList(List<SObject> records);
Parameters:
- records - list of SObjects
Return Value:
Unique set of ids
extractIdsFromList(List records, SObjectField fieldName)
Extracts record ids from the SObject list
Signature:
forvendi.BreezzApi.COLLECTIONS.extractIdsFromList(List<SObject> records, SObjectField fieldName);
Parameters:
- records - list of SObjects
- fieldName - field that pointing the id field
Return Value:
Unique set of ids
extractIdsFromList(List records, String fieldName)
Extracts record ids from the SObject list
Signature:
forvendi.BreezzApi.COLLECTIONS.extractIdsFromList(List<SObject> records, String fieldName);
Parameters:
- records - list of SObjects
- fieldName - field that pointing the id field
Return Value:
Unique set of ids
extractValuesFromList(List records, SObjectField fieldName)
Extracts record ids from the SObject list
Signature:
forvendi.BreezzApi.COLLECTIONS.extractValuesFromList(List<SObject> records, SObjectField fieldName);
Parameters:
- records - list of SObjects
- fieldName - field that pointing the id field
Return Value:
Unique set of values
extractValuesFromList(List records, String fieldName)
Extracts record ids from the SObject list
Signature:
forvendi.BreezzApi.COLLECTIONS.extractValuesFromList(List<SObject> records, String fieldName);
Parameters:
- records - list of SObjects
- fieldName - field that pointing the id field
Return Value:
Unique set of values
slice(Object[] arr, Integer first, Integer last)
Splices provided array
Signature:
forvendi.BreezzApi.COLLECTIONS.slice(Object[] arr, Integer first, Integer last);
Parameters:
- arr - array to slice
- first - the first index
- last - the last index
Return Value:
Sliced array
toIdSet(Set keys)
Converts Set to Set
Signature:
forvendi.BreezzApi.COLLECTIONS.toIdSet(Set<String> keys);
Parameters:
- keys - source Set
Return Value:
Converted Set
toStringSet(Set keys)
Converts Set to Set
Signature:
forvendi.BreezzApi.COLLECTIONS.toStringSet(Set<Id> keys);
Parameters:
- keys - source Set
Return Value:
Converted Set
toIdList(Set keys)
Converts Set to List
Signature:
forvendi.BreezzApi.COLLECTIONS.toIdList(Set<String> keys);
Parameters:
- keys - source Set
Return Value:
Converted List
createSObjectList(String objType)
Creates List for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectList(String objType);
Parameters:
- objType - salesforce class or SObject name
Return Value:
Empty List
createSObjectList(SObjectType objType)
Creates List for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectList(SObjectType objType);
Parameters:
- objType - salesforce SObject name
Return Value:
Empty List
createSObjectMap(String objType)
Creates Map for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectMap(String objType);
Parameters:
- objType - salesforce SObject name
Return Value:
Empty Map<Id, SObject>
createSObjectMapGroupByStringValue(String objType)
Creates Map for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectMapGroupByStringValue(String objType);
Parameters:
- objType - salesforce SObject name
Return Value:
Empty Map<String, SObject>
createSObjectMapGroupByValue(String objType)
Creates Map for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectMapGroupByValue(String objType);
Parameters:
- objType - salesforce SObject name
Return Value:
Empty Map<Object, SObject>
createSObjectMapList(String objType)
Creates Map for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectMapList(String objType);
Parameters:
- objType - salesforce SObject name
Return Value:
Empty Map<Id, List>
createSObjectMapListGroupByStringValue(String objType)
Creates Map for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectMapListGroupByStringValue(String objType);
Parameters:
- objType - salesforce SObject name
Return Value:
Empty Map<String, List>
createSObjectMapListGroupByValue(String objType)
Creates Map for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectMapListGroupByValue(String objType);
Parameters:
- objType - salesforce SObject name
Return Value:
Empty Map<Object, List>
createSObjectMap(SObjectType objType)
Creates Map for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectMap(SObjectType objType);
Parameters:
- objType - salesforce SObject name
Return Value:
Empty Map<Id, SObject>
createSObjectMap(SObject[] items)
Creates Map for provided SObject type
Signature:
forvendi.BreezzApi.COLLECTIONS.createSObjectMap(SObject[] items);
Parameters:
- items - records
Return Value:
Empty Map<Id, SObject>
groupUniqueByTextField(SObject[] items, SObjectField fieldName)
Groups by provided records by selected text field
Signature:
forvendi.BreezzApi.COLLECTIONS.groupUniqueByTextField(SObject[] items, SObjectField fieldName);
Parameters:
- items - records
- fieldName - the field name
Return Value:
Empty Map<String, SObject>
groupUniqueByField(SObject[] items, SObjectField fieldName)
Groups by provided records by selected any field
Signature:
forvendi.BreezzApi.COLLECTIONS.groupUniqueByField(SObject[] items, SObjectField fieldName);
Parameters:
- items - records
- fieldName - the field name
Return Value:
Empty Map<Object, SObject>
groupByTextField(SObject[] items, SObjectField fieldName)
Groups by provided records by selected text field
Signature:
forvendi.BreezzApi.COLLECTIONS.groupByTextField(SObject[] items, SObjectField fieldName);
Parameters:
- items - records
- fieldName - the field name
Return Value:
Empty Map<String, List>
groupByField(SObject[] items, SObjectField fieldName)
Groups by provided records by selected text field
Signature:
forvendi.BreezzApi.COLLECTIONS.groupByField(SObject[] items, SObjectField fieldName);
Parameters:
- items - records
- fieldName - the field name
Return Value:
Empty Map<Object, List>