-
Notifications
You must be signed in to change notification settings - Fork 0
/
BPFetchRequestBuilderHelper.h
30 lines (24 loc) · 1.36 KB
/
BPFetchRequestBuilderHelper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// BPFetchRequestBuilderHelper.h
// BPTracker
//
// Created by Robert Saccone on 7/12/12.
// Copyright (c) 2017 Robert Saccone. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface BPFetchRequestBuilderHelper : NSObject
+ (NSFetchRequest *)makeFetchRequestToRetrieveDateRangeLimits:(NSManagedObjectContext *)managedObjectContext;
+ (NSFetchRequest *)makeFetchRequest:(NSManagedObjectContext *)managedObjectContext matchReadingDates:(NSArray *)sortedReadingDates;
+ (NSFetchRequest *)makeFetchRequestForManagedObjectContext:(NSManagedObjectContext *)managedObjContext
entityName:(NSString *)entityName
predicate:(NSPredicate *)predicate
sectionNameKeyPath:(NSString *)sectionNameKey
sortkeyName:(NSString *)sortkeyName
sortAscending:(BOOL)ascending
cacheName:(NSString *)name
batchSize:(NSUInteger)fetchBatchSize;
#if 0
+ (NSFetchRequest *)makeFetchRequest:(NSManagedObjectContext *)managedObjectContext findDate:(NSDate *)date;
+ (void)updateFetchRequest:(NSFetchRequest *)fetchRequest newFindDate:(NSDate *)date;
#endif
@end