5 // Created by Hori,Masaki on 2014/03/21.
6 // Copyright (c) 2014年 Hori,Masaki. All rights reserved.
9 #import "HMLocalDataStore.h"
11 @implementation HMLocalDataStore
15 static dispatch_once_t onceToken;
16 dispatch_once(&onceToken, ^{
17 [self defaultManager];
20 - (NSString *)modelName
24 - (NSString *)storeFileName
26 #if COREDATA_STORE_TYPE == 0
27 return @"LocalData.storedata";
29 return @"LocalData.storedata.xml";
32 - (NSString *)storeType
34 #if COREDATA_STORE_TYPE == 0
35 return NSSQLiteStoreType;
37 return NSXMLStoreType;
40 - (NSDictionary *)storeOptions
42 NSDictionary *options = @{
43 NSMigratePersistentStoresAutomaticallyOption : @YES,
44 NSInferMappingModelAutomaticallyOption : @YES
48 - (BOOL)deleteAndRetry