public static NSArray<Group> fetchGroups( EOEditingContext editingContext, EOQualifier qualifier, NSArray<EOSortOrdering> sortOrderings) { EOFetchSpecification fetchSpec = new EOFetchSpecification(_Group.ENTITY_NAME, qualifier, sortOrderings); fetchSpec.setIsDeep(true); NSArray<Group> eoObjects = (NSArray<Group>) editingContext.objectsWithFetchSpecification(fetchSpec); return eoObjects; }
public static NSArray<ERSyncClientDevice> fetchERSyncClientDevices( EOEditingContext editingContext, EOQualifier qualifier, NSArray<EOSortOrdering> sortOrderings) { EOFetchSpecification fetchSpec = new EOFetchSpecification(_ERSyncClientDevice.ENTITY_NAME, qualifier, sortOrderings); fetchSpec.setIsDeep(true); NSArray<ERSyncClientDevice> eoObjects = (NSArray<ERSyncClientDevice>) editingContext.objectsWithFetchSpecification(fetchSpec); return eoObjects; }