FEMManagedObjectCache.h 724 B

12345678910111213141516171819
  1. // For License please refer to LICENSE file in the root of FastEasyMapping project
  2. #import <Foundation/Foundation.h>
  3. @class FEMMapping, NSManagedObjectContext;
  4. @interface FEMManagedObjectCache : NSObject
  5. @property (nonatomic, strong, readonly) NSManagedObjectContext *context;
  6. - (instancetype)initWithMapping:(FEMMapping *)mapping representation:(id)representation context:(NSManagedObjectContext *)context;
  7. - (id)existingObjectForRepresentation:(id)representation mapping:(FEMMapping *)mapping;
  8. - (id)existingObjectForPrimaryKey:(id)primaryKey mapping:(FEMMapping *)mapping;
  9. - (void)addExistingObject:(id)object mapping:(FEMMapping *)mapping;
  10. - (NSDictionary *)existingObjectsForMapping:(FEMMapping *)mapping;
  11. @end