OSDN Git Service

UIを調整
[kcd/KCD.git] / KCD / HMTemporaryDataStore.m
1 //
2 //  HMTemporaryDataStore.m
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2014/05/20.
6 //  Copyright (c) 2014年 Hori,Masaki. All rights reserved.
7 //
8
9 #import "HMTemporaryDataStore.h"
10
11 @implementation HMTemporaryDataStore
12 + (void)load
13 {
14         static dispatch_once_t onceToken;
15         dispatch_once(&onceToken, ^{
16                 [self defaultManager];
17         });
18 }
19
20 - (NSString *)modelName
21 {
22         return @"Temporary";
23 }
24 - (NSString *)storeFileName
25 {
26         return @":memory:";
27 }
28 - (NSString *)storeType
29 {
30         return NSInMemoryStoreType;
31 }
32 - (NSDictionary *)storeOptions
33 {
34 //      NSDictionary *options = @{
35 //#if COREDATA_STORE_TYPE == 0
36 //                                                        NSSQLitePragmasOption : @{@"journal_mode" : @"MEMORY"},
37 //#endif
38 //                                                        NSMigratePersistentStoresAutomaticallyOption : @YES,
39 //                                                        NSInferMappingModelAutomaticallyOption : @YES
40 //                                                        };
41 //      return options;
42         return nil;
43 }
44 - (BOOL)deleteAndRetry
45 {
46         return YES;
47 }
48 @end