// For License please refer to LICENSE file in the root of FastEasyMapping project #import @class FEMMapping, NSManagedObjectContext; @interface FEMManagedObjectCache : NSObject @property (nonatomic, strong, readonly) NSManagedObjectContext *context; - (instancetype)initWithMapping:(FEMMapping *)mapping representation:(id)representation context:(NSManagedObjectContext *)context; - (id)existingObjectForRepresentation:(id)representation mapping:(FEMMapping *)mapping; - (id)existingObjectForPrimaryKey:(id)primaryKey mapping:(FEMMapping *)mapping; - (void)addExistingObject:(id)object mapping:(FEMMapping *)mapping; - (NSDictionary *)existingObjectsForMapping:(FEMMapping *)mapping; @end