OSDN Git Service

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