-
Notifications
You must be signed in to change notification settings - Fork 7
/
CoreResultsController.h
35 lines (26 loc) · 984 Bytes
/
CoreResultsController.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
31
32
33
34
35
//
// CoreResultsController.h
// CoreResource
//
// Created by Mike Laurence on 12/24/09.
// Copyright Mike Laurence 2010. All rights reserved.
//
#if TARGET_OS_IPHONE
#import "CoreRequest.h"
@class CoreResource;
@interface CoreResultsController : NSFetchedResultsController {
Class entityClass;
}
@property (nonatomic) Class entityClass;
- (void) fetch;
- (void) fetchWithSort:(id)sort;
- (void) fetch:(id)parameters;
- (void) fetch:(id)parameters withSort:(id)sort;
#pragma mark -
#pragma mark Convenience fetch methods
- (void) fetchForRelatedResource:(CoreResource*)resource withSort:(id)sort;
- (void) fetchForRelatedResource:(CoreResource*)resource withParameters:(id)parameters andSort:(id)sort;
- (void) fetchForResource:(CoreResource*)resource inRelationship:(NSString*)relationshipName withSort:(id)sort;
- (void) fetchForResource:(CoreResource*)resource inRelationship:(NSString*)relationshipName withParameters:(id)parameters andSort:(id)sort;
@end
#endif