nano-store 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/README.md +3 -1
- data/Rakefile +1 -1
- data/lib/nano_store.rb +1 -1
- data/lib/nano_store/model.rb +11 -7
- data/lib/nano_store/version.rb +1 -1
- data/spec/model_spec.rb +2 -5
- data/vendor/Podfile.lock +4 -4
- data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoGlobals.h +3 -1
- data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoPredicate.h +5 -5
- data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoSearch.h +4 -2
- data/vendor/Pods/Documentation/NanoStore/docset-installed.txt +4 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Info.plist +33 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoBag.html +2266 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoEngine.html +4708 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoExpression.html +818 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoObject.html +1781 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoPredicate.html +800 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoResult.html +1054 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoSearch.html +2544 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoSortDescriptor.html +713 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoStore.html +3723 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFOrderedDictionary.html +312 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Protocols/NSFNanoObjectProtocol.html +651 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/css/styles.css +584 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/css/stylesPrint.css +22 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/hierarchy.html +106 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/button_bar_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/disclosure.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/disclosure_open.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/library_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/title_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/index.html +654 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Nodes.xml +92 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens1.xml +596 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens10.xml +48 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens11.xml +118 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens2.xml +1209 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens3.xml +158 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens4.xml +455 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens5.xml +166 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens6.xml +246 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens7.xml +821 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens8.xml +125 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens9.xml +1082 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.dsidx +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.mom +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.skidx +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.toc +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoBag.html +2266 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoEngine.html +4708 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoExpression.html +818 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoObject.html +1781 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoPredicate.html +800 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoResult.html +1054 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoSearch.html +2544 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoSortDescriptor.html +713 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoStore.html +3723 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFOrderedDictionary.html +312 -0
- data/vendor/Pods/Documentation/NanoStore/html/Protocols/NSFNanoObjectProtocol.html +651 -0
- data/vendor/Pods/Documentation/NanoStore/html/css/styles.css +584 -0
- data/vendor/Pods/Documentation/NanoStore/html/css/stylesPrint.css +22 -0
- data/vendor/Pods/Documentation/NanoStore/html/hierarchy.html +106 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/button_bar_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/disclosure.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/disclosure_open.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/library_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/title_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/index.html +654 -0
- data/vendor/Pods/Headers/NanoStore/NSFNanoGlobals.h +3 -1
- data/vendor/Pods/Headers/NanoStore/NSFNanoPredicate.h +5 -5
- data/vendor/Pods/Headers/NanoStore/NSFNanoSearch.h +4 -2
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoGlobals.h +3 -1
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoGlobals.m +1 -0
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoPredicate.h +5 -5
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoPredicate.m +15 -14
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoSearch.h +4 -2
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoSearch.m +95 -20
- data/vendor/Pods/Pods.bridgesupport +708 -700
- data/vendor/Pods/Pods.xcconfig +3 -3
- metadata +62 -4
@@ -0,0 +1,3723 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
|
5
|
+
<title>NSFNanoStore Class Reference</title>
|
6
|
+
<meta id="xcode-display" name="xcode-display" content="render"/>
|
7
|
+
<meta name="viewport" content="width=550" />
|
8
|
+
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
|
9
|
+
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
|
10
|
+
<meta name="generator" content="appledoc 2.0.5 (build 789)" />
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<header id="top_header">
|
14
|
+
<div id="library" class="hideInXcode">
|
15
|
+
<h1><a id="libraryTitle" href="../index.html">NanoStore 2.5.7 </a></h1>
|
16
|
+
<a id="developerHome" href="../index.html">Tito Ciuro</a>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div id="title" role="banner">
|
20
|
+
<h1 class="hideInXcode">NSFNanoStore Class Reference</h1>
|
21
|
+
</div>
|
22
|
+
<ul id="headerButtons" role="toolbar">
|
23
|
+
<li id="toc_button">
|
24
|
+
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
|
25
|
+
</li>
|
26
|
+
<li id="jumpto_button" role="navigation">
|
27
|
+
<select id="jumpTo">
|
28
|
+
<option value="top">Jump To…</option>
|
29
|
+
|
30
|
+
<option value="overview">Overview</option>
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<option value="tasks">Tasks</option>
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
<option value="properties">Properties</option>
|
42
|
+
|
43
|
+
<option value="//api/name/hasUnsavedChanges"> hasUnsavedChanges</option>
|
44
|
+
|
45
|
+
<option value="//api/name/nanoEngineProcessingMode"> nanoEngineProcessingMode</option>
|
46
|
+
|
47
|
+
<option value="//api/name/nanoStoreEngine"> nanoStoreEngine</option>
|
48
|
+
|
49
|
+
<option value="//api/name/saveInterval"> saveInterval</option>
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
<option value="class_methods">Class Methods</option>
|
55
|
+
|
56
|
+
<option value="//api/name/_calendarDateToString:"> + _calendarDateToString:</option>
|
57
|
+
|
58
|
+
<option value="//api/name/_createAndOpenDebugDatabase"> + _createAndOpenDebugDatabase</option>
|
59
|
+
|
60
|
+
<option value="//api/name/_defaultTestData"> + _defaultTestData</option>
|
61
|
+
|
62
|
+
<option value="//api/name/createAndOpenStoreWithType:path:error:"> + createAndOpenStoreWithType:path:error:</option>
|
63
|
+
|
64
|
+
<option value="//api/name/createStoreWithType:path:"> + createStoreWithType:path:</option>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<option value="instance_methods">Instance Methods</option>
|
70
|
+
|
71
|
+
<option value="//api/name/JSONDescription"> - JSONDescription</option>
|
72
|
+
|
73
|
+
<option value="//api/name/_NSFDatatypeOfObject:"> - _NSFDatatypeOfObject:</option>
|
74
|
+
|
75
|
+
<option value="//api/name/__storeDictionaries:forKeys:error:"> - __storeDictionaries:forKeys:error:</option>
|
76
|
+
|
77
|
+
<option value="//api/name/_addObjectsFromArray:forceSave:error:"> - _addObjectsFromArray:forceSave:error:</option>
|
78
|
+
|
79
|
+
<option value="//api/name/_backupFileStoreToDirectoryAtPath:extension:compact:error:"> - _backupFileStoreToDirectoryAtPath:extension:compact:error:</option>
|
80
|
+
|
81
|
+
<option value="//api/name/_backupMemoryStoreToDirectoryAtPath:extension:compact:error:"> - _backupMemoryStoreToDirectoryAtPath:extension:compact:error:</option>
|
82
|
+
|
83
|
+
<option value="//api/name/_bindValue:forAttribute:parameterNumber:usingSQLite3Statement:"> - _bindValue:forAttribute:parameterNumber:usingSQLite3Statement:</option>
|
84
|
+
|
85
|
+
<option value="//api/name/_checkNanoStoreIsReadyAndReturnError:"> - _checkNanoStoreIsReadyAndReturnError:</option>
|
86
|
+
|
87
|
+
<option value="//api/name/_executeSQL:"> - _executeSQL:</option>
|
88
|
+
|
89
|
+
<option value="//api/name/_executeSQLite3StepUsingSQLite3Statement:"> - _executeSQLite3StepUsingSQLite3Statement:</option>
|
90
|
+
|
91
|
+
<option value="//api/name/_flattenCollection:keyPath:keys:values:"> - _flattenCollection:keyPath:keys:values:</option>
|
92
|
+
|
93
|
+
<option value="//api/name/_flattenCollection:keys:values:"> - _flattenCollection:keys:values:</option>
|
94
|
+
|
95
|
+
<option value="//api/name/_initializePreparedStatementsWithError:"> - _initializePreparedStatementsWithError:</option>
|
96
|
+
|
97
|
+
<option value="//api/name/_isOurTransaction"> - _isOurTransaction</option>
|
98
|
+
|
99
|
+
<option value="//api/name/_nestedDescriptionWithPrefixedSpace:"> - _nestedDescriptionWithPrefixedSpace:</option>
|
100
|
+
|
101
|
+
<option value="//api/name/_prepareSQLite3Statement:theSQLStatement:"> - _prepareSQLite3Statement:theSQLStatement:</option>
|
102
|
+
|
103
|
+
<option value="//api/name/_releasePreparedStatements"> - _releasePreparedStatements</option>
|
104
|
+
|
105
|
+
<option value="//api/name/_setIsOurTransaction:"> - _setIsOurTransaction:</option>
|
106
|
+
|
107
|
+
<option value="//api/name/_setupCachingSchema"> - _setupCachingSchema</option>
|
108
|
+
|
109
|
+
<option value="//api/name/_storeDictionary:forKey:forClassNamed:error:"> - _storeDictionary:forKey:forClassNamed:error:</option>
|
110
|
+
|
111
|
+
<option value="//api/name/_stringFromValue:"> - _stringFromValue:</option>
|
112
|
+
|
113
|
+
<option value="//api/name/addObject:error:"> - addObject:error:</option>
|
114
|
+
|
115
|
+
<option value="//api/name/addObjectsFromArray:error:"> - addObjectsFromArray:error:</option>
|
116
|
+
|
117
|
+
<option value="//api/name/allObjectClasses"> - allObjectClasses</option>
|
118
|
+
|
119
|
+
<option value="//api/name/bagWithName:"> - bagWithName:</option>
|
120
|
+
|
121
|
+
<option value="//api/name/bags"> - bags</option>
|
122
|
+
|
123
|
+
<option value="//api/name/bagsContainingObjectWithKey:"> - bagsContainingObjectWithKey:</option>
|
124
|
+
|
125
|
+
<option value="//api/name/bagsWithKeysInArray:"> - bagsWithKeysInArray:</option>
|
126
|
+
|
127
|
+
<option value="//api/name/bagsWithName:"> - bagsWithName:</option>
|
128
|
+
|
129
|
+
<option value="//api/name/beginTransactionAndReturnError:"> - beginTransactionAndReturnError:</option>
|
130
|
+
|
131
|
+
<option value="//api/name/clearIndexesAndReturnError:"> - clearIndexesAndReturnError:</option>
|
132
|
+
|
133
|
+
<option value="//api/name/closeWithError:"> - closeWithError:</option>
|
134
|
+
|
135
|
+
<option value="//api/name/commitTransactionAndReturnError:"> - commitTransactionAndReturnError:</option>
|
136
|
+
|
137
|
+
<option value="//api/name/compactStoreAndReturnError:"> - compactStoreAndReturnError:</option>
|
138
|
+
|
139
|
+
<option value="//api/name/countOfObjectsOfClassNamed:"> - countOfObjectsOfClassNamed:</option>
|
140
|
+
|
141
|
+
<option value="//api/name/description"> - description</option>
|
142
|
+
|
143
|
+
<option value="//api/name/dictionaryDescription"> - dictionaryDescription</option>
|
144
|
+
|
145
|
+
<option value="//api/name/discardUnsavedChanges"> - discardUnsavedChanges</option>
|
146
|
+
|
147
|
+
<option value="//api/name/filePath"> - filePath</option>
|
148
|
+
|
149
|
+
<option value="//api/name/initStoreWithType:path:"> - initStoreWithType:path:</option>
|
150
|
+
|
151
|
+
<option value="//api/name/isClosed"> - isClosed</option>
|
152
|
+
|
153
|
+
<option value="//api/name/objectsOfClassNamed:"> - objectsOfClassNamed:</option>
|
154
|
+
|
155
|
+
<option value="//api/name/objectsOfClassNamed:usingSortDescriptors:"> - objectsOfClassNamed:usingSortDescriptors:</option>
|
156
|
+
|
157
|
+
<option value="//api/name/objectsWithKeysInArray:"> - objectsWithKeysInArray:</option>
|
158
|
+
|
159
|
+
<option value="//api/name/openWithError:"> - openWithError:</option>
|
160
|
+
|
161
|
+
<option value="//api/name/rebuildIndexesAndReturnError:"> - rebuildIndexesAndReturnError:</option>
|
162
|
+
|
163
|
+
<option value="//api/name/removeAllObjectsFromStoreAndReturnError:"> - removeAllObjectsFromStoreAndReturnError:</option>
|
164
|
+
|
165
|
+
<option value="//api/name/removeObject:error:"> - removeObject:error:</option>
|
166
|
+
|
167
|
+
<option value="//api/name/removeObjectsInArray:error:"> - removeObjectsInArray:error:</option>
|
168
|
+
|
169
|
+
<option value="//api/name/removeObjectsWithKeysInArray:error:"> - removeObjectsWithKeysInArray:error:</option>
|
170
|
+
|
171
|
+
<option value="//api/name/rollbackTransactionAndReturnError:"> - rollbackTransactionAndReturnError:</option>
|
172
|
+
|
173
|
+
<option value="//api/name/saveStoreAndReturnError:"> - saveStoreAndReturnError:</option>
|
174
|
+
|
175
|
+
<option value="//api/name/saveStoreToDirectoryAtPath:compactDatabase:error:"> - saveStoreToDirectoryAtPath:compactDatabase:error:</option>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</select>
|
180
|
+
</li>
|
181
|
+
</ul>
|
182
|
+
</header>
|
183
|
+
<nav id="tocContainer" class="isShowingTOC">
|
184
|
+
<ul id="toc" role="tree">
|
185
|
+
|
186
|
+
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
|
192
|
+
|
193
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating and Initializing NanoStore">Creating and Initializing NanoStore</a></span></li>
|
194
|
+
|
195
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Opening and Closing">Opening and Closing</a></span></li>
|
196
|
+
|
197
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Accessors">Accessors</a></span></li>
|
198
|
+
|
199
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Adding and Removing Objects">Adding and Removing Objects</a></span></li>
|
200
|
+
|
201
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Searching and Gathering Data">Searching and Gathering Data</a></span></li>
|
202
|
+
|
203
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Saving and Maintenance">Saving and Maintenance</a></span></li>
|
204
|
+
|
205
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Transactions">Transactions</a></span></li>
|
206
|
+
|
207
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Miscellaneous">Miscellaneous</a></span></li>
|
208
|
+
|
209
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Private Methods">Private Methods</a></span></li>
|
210
|
+
|
211
|
+
</ul></li>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
|
218
|
+
|
219
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hasUnsavedChanges">hasUnsavedChanges</a></span></li>
|
220
|
+
|
221
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/nanoEngineProcessingMode">nanoEngineProcessingMode</a></span></li>
|
222
|
+
|
223
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/nanoStoreEngine">nanoStoreEngine</a></span></li>
|
224
|
+
|
225
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/saveInterval">saveInterval</a></span></li>
|
226
|
+
|
227
|
+
</ul></li>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
|
232
|
+
|
233
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_calendarDateToString:">_calendarDateToString:</a></span></li>
|
234
|
+
|
235
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_createAndOpenDebugDatabase">_createAndOpenDebugDatabase</a></span></li>
|
236
|
+
|
237
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_defaultTestData">_defaultTestData</a></span></li>
|
238
|
+
|
239
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/createAndOpenStoreWithType:path:error:">createAndOpenStoreWithType:path:error:</a></span></li>
|
240
|
+
|
241
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/createStoreWithType:path:">createStoreWithType:path:</a></span></li>
|
242
|
+
|
243
|
+
</ul></li>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
|
248
|
+
|
249
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/JSONDescription">JSONDescription</a></span></li>
|
250
|
+
|
251
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_NSFDatatypeOfObject:">_NSFDatatypeOfObject:</a></span></li>
|
252
|
+
|
253
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/__storeDictionaries:forKeys:error:">__storeDictionaries:forKeys:error:</a></span></li>
|
254
|
+
|
255
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_addObjectsFromArray:forceSave:error:">_addObjectsFromArray:forceSave:error:</a></span></li>
|
256
|
+
|
257
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_backupFileStoreToDirectoryAtPath:extension:compact:error:">_backupFileStoreToDirectoryAtPath:extension:compact:error:</a></span></li>
|
258
|
+
|
259
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_backupMemoryStoreToDirectoryAtPath:extension:compact:error:">_backupMemoryStoreToDirectoryAtPath:extension:compact:error:</a></span></li>
|
260
|
+
|
261
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_bindValue:forAttribute:parameterNumber:usingSQLite3Statement:">_bindValue:forAttribute:parameterNumber:usingSQLite3Statement:</a></span></li>
|
262
|
+
|
263
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_checkNanoStoreIsReadyAndReturnError:">_checkNanoStoreIsReadyAndReturnError:</a></span></li>
|
264
|
+
|
265
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_executeSQL:">_executeSQL:</a></span></li>
|
266
|
+
|
267
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_executeSQLite3StepUsingSQLite3Statement:">_executeSQLite3StepUsingSQLite3Statement:</a></span></li>
|
268
|
+
|
269
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_flattenCollection:keyPath:keys:values:">_flattenCollection:keyPath:keys:values:</a></span></li>
|
270
|
+
|
271
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_flattenCollection:keys:values:">_flattenCollection:keys:values:</a></span></li>
|
272
|
+
|
273
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_initializePreparedStatementsWithError:">_initializePreparedStatementsWithError:</a></span></li>
|
274
|
+
|
275
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_isOurTransaction">_isOurTransaction</a></span></li>
|
276
|
+
|
277
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_nestedDescriptionWithPrefixedSpace:">_nestedDescriptionWithPrefixedSpace:</a></span></li>
|
278
|
+
|
279
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_prepareSQLite3Statement:theSQLStatement:">_prepareSQLite3Statement:theSQLStatement:</a></span></li>
|
280
|
+
|
281
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_releasePreparedStatements">_releasePreparedStatements</a></span></li>
|
282
|
+
|
283
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_setIsOurTransaction:">_setIsOurTransaction:</a></span></li>
|
284
|
+
|
285
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_setupCachingSchema">_setupCachingSchema</a></span></li>
|
286
|
+
|
287
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_storeDictionary:forKey:forClassNamed:error:">_storeDictionary:forKey:forClassNamed:error:</a></span></li>
|
288
|
+
|
289
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_stringFromValue:">_stringFromValue:</a></span></li>
|
290
|
+
|
291
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/addObject:error:">addObject:error:</a></span></li>
|
292
|
+
|
293
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/addObjectsFromArray:error:">addObjectsFromArray:error:</a></span></li>
|
294
|
+
|
295
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/allObjectClasses">allObjectClasses</a></span></li>
|
296
|
+
|
297
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bagWithName:">bagWithName:</a></span></li>
|
298
|
+
|
299
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bags">bags</a></span></li>
|
300
|
+
|
301
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bagsContainingObjectWithKey:">bagsContainingObjectWithKey:</a></span></li>
|
302
|
+
|
303
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bagsWithKeysInArray:">bagsWithKeysInArray:</a></span></li>
|
304
|
+
|
305
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bagsWithName:">bagsWithName:</a></span></li>
|
306
|
+
|
307
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/beginTransactionAndReturnError:">beginTransactionAndReturnError:</a></span></li>
|
308
|
+
|
309
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/clearIndexesAndReturnError:">clearIndexesAndReturnError:</a></span></li>
|
310
|
+
|
311
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/closeWithError:">closeWithError:</a></span></li>
|
312
|
+
|
313
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/commitTransactionAndReturnError:">commitTransactionAndReturnError:</a></span></li>
|
314
|
+
|
315
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/compactStoreAndReturnError:">compactStoreAndReturnError:</a></span></li>
|
316
|
+
|
317
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/countOfObjectsOfClassNamed:">countOfObjectsOfClassNamed:</a></span></li>
|
318
|
+
|
319
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/description">description</a></span></li>
|
320
|
+
|
321
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dictionaryDescription">dictionaryDescription</a></span></li>
|
322
|
+
|
323
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/discardUnsavedChanges">discardUnsavedChanges</a></span></li>
|
324
|
+
|
325
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/filePath">filePath</a></span></li>
|
326
|
+
|
327
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initStoreWithType:path:">initStoreWithType:path:</a></span></li>
|
328
|
+
|
329
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/isClosed">isClosed</a></span></li>
|
330
|
+
|
331
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/objectsOfClassNamed:">objectsOfClassNamed:</a></span></li>
|
332
|
+
|
333
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/objectsOfClassNamed:usingSortDescriptors:">objectsOfClassNamed:usingSortDescriptors:</a></span></li>
|
334
|
+
|
335
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/objectsWithKeysInArray:">objectsWithKeysInArray:</a></span></li>
|
336
|
+
|
337
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/openWithError:">openWithError:</a></span></li>
|
338
|
+
|
339
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/rebuildIndexesAndReturnError:">rebuildIndexesAndReturnError:</a></span></li>
|
340
|
+
|
341
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeAllObjectsFromStoreAndReturnError:">removeAllObjectsFromStoreAndReturnError:</a></span></li>
|
342
|
+
|
343
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeObject:error:">removeObject:error:</a></span></li>
|
344
|
+
|
345
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeObjectsInArray:error:">removeObjectsInArray:error:</a></span></li>
|
346
|
+
|
347
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeObjectsWithKeysInArray:error:">removeObjectsWithKeysInArray:error:</a></span></li>
|
348
|
+
|
349
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/rollbackTransactionAndReturnError:">rollbackTransactionAndReturnError:</a></span></li>
|
350
|
+
|
351
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/saveStoreAndReturnError:">saveStoreAndReturnError:</a></span></li>
|
352
|
+
|
353
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/saveStoreToDirectoryAtPath:compactDatabase:error:">saveStoreToDirectoryAtPath:compactDatabase:error:</a></span></li>
|
354
|
+
|
355
|
+
</ul></li>
|
356
|
+
|
357
|
+
|
358
|
+
</ul>
|
359
|
+
</nav>
|
360
|
+
<article>
|
361
|
+
<div id="contents" class="isShowingTOC" role="main">
|
362
|
+
<a title="NSFNanoStore Class Reference" name="top"></a>
|
363
|
+
<div class="main-navigation navigation-top">
|
364
|
+
<ul>
|
365
|
+
<li><a href="../index.html">Index</a></li>
|
366
|
+
<li><a href="../hierarchy.html">Hierarchy</a></li>
|
367
|
+
</ul>
|
368
|
+
</div>
|
369
|
+
<div id="header">
|
370
|
+
<div class="section-header">
|
371
|
+
<h1 class="title title-header">NSFNanoStore Class Reference</h1>
|
372
|
+
</div>
|
373
|
+
</div>
|
374
|
+
<div id="container">
|
375
|
+
|
376
|
+
<div class="section section-specification"><table cellspacing="0"><tbody>
|
377
|
+
<tr>
|
378
|
+
<td class="specification-title">Inherits from</td>
|
379
|
+
<td class="specification-value">NSObject</td>
|
380
|
+
</tr><tr>
|
381
|
+
<td class="specification-title">Declared in</td>
|
382
|
+
<td class="specification-value">NSFNanoStore.h</td>
|
383
|
+
</tr>
|
384
|
+
</tbody></table></div>
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
<div class="section section-overview">
|
390
|
+
<a title="Overview" name="overview"></a>
|
391
|
+
<h2 class="subtitle subtitle-overview">Overview</h2>
|
392
|
+
<p>@class NSFNanoStore
|
393
|
+
* The document store is where the objects get saved. It can be file-based (permanent of temporary) or memory-backed.
|
394
|
+
*
|
395
|
+
* @details <b>Example:</b>
|
396
|
+
@code
|
397
|
+
// Instantiate a NanoStore and open it
|
398
|
+
NSFNanoStore *nanoStore = [NSFNanoStore createAndOpenStoreWithType:NSFMemoryStoreType path:nil error:nil];</p>
|
399
|
+
|
400
|
+
<p>// Add some data to the document store
|
401
|
+
NSDictionary <em>info = …;
|
402
|
+
<a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> </em>object = [NSFNanoObject nanoObjectWithDictionary:info];
|
403
|
+
[nanoStore addObject:object error:nil];</p>
|
404
|
+
|
405
|
+
<p>// Return all objects via <a href="../Classes/NSFNanoSearch.html">NSFNanoSearch</a>
|
406
|
+
<a href="../Classes/NSFNanoSearch.html">NSFNanoSearch</a> <em>search = [NSFNanoSearch searchWithStore:nanoStore];
|
407
|
+
NSDictionary </em>searchResults = [search searchObjectsWithReturnType:NSFReturnObjects error:nil];</p>
|
408
|
+
|
409
|
+
<p>// Return the keys of all objects
|
410
|
+
NSArray *keys = [search searchObjectsWithReturnType:NSFReturnKeys error:nil];</p>
|
411
|
+
|
412
|
+
<p>// Search one or more objects with a series of keys via NSFNanoStore
|
413
|
+
NSArray *objects = [nanoStore objectsWithKeysInArray:[NSArray arrayWithObject:@“ABC-123”]];</p>
|
414
|
+
|
415
|
+
<p>// Search an object with a given key via NSFNanoSearch
|
416
|
+
[search setKey:@“ABC-123”];
|
417
|
+
objects = [search searchObjectsWithReturnType:NSFReturnObjects error:nil];</p>
|
418
|
+
|
419
|
+
<p>// Remove an object from the document store
|
420
|
+
[nanoStore removeObject:object error:nil];</p>
|
421
|
+
|
422
|
+
<p>// Close the document store
|
423
|
+
[nanoStore closeWithError:nil];
|
424
|
+
@endcode</p>
|
425
|
+
|
426
|
+
<p>\cond</p>
|
427
|
+
</div>
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
<div class="section section-tasks">
|
434
|
+
<a title="Tasks" name="tasks"></a>
|
435
|
+
<h2 class="subtitle subtitle-tasks">Tasks</h2>
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
<h3 class="subsubtitle task-title">Other Methods</h3>
|
440
|
+
|
441
|
+
<ul class="task-list">
|
442
|
+
<li>
|
443
|
+
<span class="tooltip">
|
444
|
+
<code><a href="#//api/name/nanoStoreEngine"> nanoStoreEngine</a></code>
|
445
|
+
<span class="tooltip"><ul>
|
446
|
+
<li>A reference to the engine used by the document store, which contains a reference to the SQLite database.</li>
|
447
|
+
</ul>
|
448
|
+
</span>
|
449
|
+
</span>
|
450
|
+
<span class="task-item-suffix">property</span>
|
451
|
+
|
452
|
+
</li><li>
|
453
|
+
<span class="tooltip">
|
454
|
+
<code><a href="#//api/name/nanoEngineProcessingMode"> nanoEngineProcessingMode</a></code>
|
455
|
+
<span class="tooltip"><ul>
|
456
|
+
<li>The type of engine mode used by NanoStore to process data in the document store.
|
457
|
+
The mode can be one of two options: <i>NSFEngineProcessingDefaultMode</i> and <i>NSFEngineProcessingFastMode</i>. See <i>NSFEngineProcessingMode</i>
|
458
|
+
to learn more about how these options affect the engine behavior.</li>
|
459
|
+
</ul>
|
460
|
+
</span>
|
461
|
+
</span>
|
462
|
+
<span class="task-item-suffix">property</span>
|
463
|
+
|
464
|
+
</li><li>
|
465
|
+
<span class="tooltip">
|
466
|
+
<code><a href="#//api/name/saveInterval"> saveInterval</a></code>
|
467
|
+
<span class="tooltip"><ul>
|
468
|
+
<li>Number of iterations that will trigger an automatic save.</li>
|
469
|
+
</ul>
|
470
|
+
</span>
|
471
|
+
</span>
|
472
|
+
<span class="task-item-suffix">property</span>
|
473
|
+
|
474
|
+
</li><li>
|
475
|
+
<span class="tooltip">
|
476
|
+
<code><a href="#//api/name/hasUnsavedChanges"> hasUnsavedChanges</a></code>
|
477
|
+
<span class="tooltip"><ul>
|
478
|
+
<li>Whether there are objects that haven’t been saved to the store.</li>
|
479
|
+
</ul>
|
480
|
+
</span>
|
481
|
+
</span>
|
482
|
+
<span class="task-item-suffix">property</span>
|
483
|
+
|
484
|
+
</li>
|
485
|
+
</ul>
|
486
|
+
|
487
|
+
|
488
|
+
<a title="Creating and Initializing NanoStore" name="task_Creating and Initializing NanoStore"></a>
|
489
|
+
<h3 class="subsubtitle task-title">Creating and Initializing NanoStore</h3>
|
490
|
+
|
491
|
+
<ul class="task-list">
|
492
|
+
<li>
|
493
|
+
<span class="tooltip">
|
494
|
+
<code><a href="#//api/name/createStoreWithType:path:">+ createStoreWithType:path:</a></code>
|
495
|
+
<span class="tooltip"><p>Creates and returns a document store of a specific type at a given file path.</p></span>
|
496
|
+
</span>
|
497
|
+
|
498
|
+
|
499
|
+
</li><li>
|
500
|
+
<span class="tooltip">
|
501
|
+
<code><a href="#//api/name/createAndOpenStoreWithType:path:error:">+ createAndOpenStoreWithType:path:error:</a></code>
|
502
|
+
<span class="tooltip"><p>Creates, opens and returns a document store of a specific type at a given file path.</p></span>
|
503
|
+
</span>
|
504
|
+
|
505
|
+
|
506
|
+
</li><li>
|
507
|
+
<span class="tooltip">
|
508
|
+
<code><a href="#//api/name/initStoreWithType:path:">– initStoreWithType:path:</a></code>
|
509
|
+
<span class="tooltip"><p>Initializes a newly allocated document store of a specific type at a given file path.</p></span>
|
510
|
+
</span>
|
511
|
+
|
512
|
+
|
513
|
+
</li>
|
514
|
+
</ul>
|
515
|
+
|
516
|
+
|
517
|
+
<a title="Opening and Closing" name="task_Opening and Closing"></a>
|
518
|
+
<h3 class="subsubtitle task-title">Opening and Closing</h3>
|
519
|
+
|
520
|
+
<ul class="task-list">
|
521
|
+
<li>
|
522
|
+
<span class="tooltip">
|
523
|
+
<code><a href="#//api/name/openWithError:">– openWithError:</a></code>
|
524
|
+
<span class="tooltip"><p>Opens the document store, making it ready for manipulation.</p></span>
|
525
|
+
</span>
|
526
|
+
|
527
|
+
|
528
|
+
</li><li>
|
529
|
+
<span class="tooltip">
|
530
|
+
<code><a href="#//api/name/closeWithError:">– closeWithError:</a></code>
|
531
|
+
<span class="tooltip"><p>Closes the document store.</p></span>
|
532
|
+
</span>
|
533
|
+
|
534
|
+
|
535
|
+
</li>
|
536
|
+
</ul>
|
537
|
+
|
538
|
+
|
539
|
+
<a title="Accessors" name="task_Accessors"></a>
|
540
|
+
<h3 class="subsubtitle task-title">Accessors</h3>
|
541
|
+
|
542
|
+
<ul class="task-list">
|
543
|
+
<li>
|
544
|
+
<span class="tooltip">
|
545
|
+
<code><a href="#//api/name/filePath">– filePath</a></code>
|
546
|
+
<span class="tooltip"><p>Location where the document store is found.</p></span>
|
547
|
+
</span>
|
548
|
+
|
549
|
+
|
550
|
+
</li><li>
|
551
|
+
<span class="tooltip">
|
552
|
+
<code><a href="#//api/name/isClosed">– isClosed</a></code>
|
553
|
+
<span class="tooltip"><p>Checks whether the document store is closed or open.</p></span>
|
554
|
+
</span>
|
555
|
+
|
556
|
+
|
557
|
+
</li>
|
558
|
+
</ul>
|
559
|
+
|
560
|
+
|
561
|
+
<a title="Adding and Removing Objects" name="task_Adding and Removing Objects"></a>
|
562
|
+
<h3 class="subsubtitle task-title">Adding and Removing Objects</h3>
|
563
|
+
|
564
|
+
<ul class="task-list">
|
565
|
+
<li>
|
566
|
+
<span class="tooltip">
|
567
|
+
<code><a href="#//api/name/addObject:error:">– addObject:error:</a></code>
|
568
|
+
<span class="tooltip"><p>Adds an \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object to the document store.</p></span>
|
569
|
+
</span>
|
570
|
+
|
571
|
+
|
572
|
+
</li><li>
|
573
|
+
<span class="tooltip">
|
574
|
+
<code><a href="#//api/name/addObjectsFromArray:error:">– addObjectsFromArray:error:</a></code>
|
575
|
+
<span class="tooltip"><p>Adds a series of \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant objects to the document store.</p></span>
|
576
|
+
</span>
|
577
|
+
|
578
|
+
|
579
|
+
</li><li>
|
580
|
+
<span class="tooltip">
|
581
|
+
<code><a href="#//api/name/removeObject:error:">– removeObject:error:</a></code>
|
582
|
+
<span class="tooltip"><p>Removes an object from the document store.</p></span>
|
583
|
+
</span>
|
584
|
+
|
585
|
+
|
586
|
+
</li><li>
|
587
|
+
<span class="tooltip">
|
588
|
+
<code><a href="#//api/name/removeObjectsWithKeysInArray:error:">– removeObjectsWithKeysInArray:error:</a></code>
|
589
|
+
<span class="tooltip"><p>Removes the list of objects with the specified keys from the document store.</p></span>
|
590
|
+
</span>
|
591
|
+
|
592
|
+
|
593
|
+
</li><li>
|
594
|
+
<span class="tooltip">
|
595
|
+
<code><a href="#//api/name/removeObjectsInArray:error:">– removeObjectsInArray:error:</a></code>
|
596
|
+
<span class="tooltip"><p>Removes the list of objects from the document store.</p></span>
|
597
|
+
</span>
|
598
|
+
|
599
|
+
|
600
|
+
</li><li>
|
601
|
+
<span class="tooltip">
|
602
|
+
<code><a href="#//api/name/removeAllObjectsFromStoreAndReturnError:">– removeAllObjectsFromStoreAndReturnError:</a></code>
|
603
|
+
<span class="tooltip"><p>Removes all objects from the document store.</p></span>
|
604
|
+
</span>
|
605
|
+
|
606
|
+
|
607
|
+
</li>
|
608
|
+
</ul>
|
609
|
+
|
610
|
+
|
611
|
+
<a title="Searching and Gathering Data" name="task_Searching and Gathering Data"></a>
|
612
|
+
<h3 class="subsubtitle task-title">Searching and Gathering Data</h3>
|
613
|
+
|
614
|
+
<ul class="task-list">
|
615
|
+
<li>
|
616
|
+
<span class="tooltip">
|
617
|
+
<code><a href="#//api/name/bags">– bags</a></code>
|
618
|
+
<span class="tooltip"><p>Returns a new array containing the bags found in the document store.</p></span>
|
619
|
+
</span>
|
620
|
+
|
621
|
+
|
622
|
+
</li><li>
|
623
|
+
<span class="tooltip">
|
624
|
+
<code><a href="#//api/name/bagWithName:">– bagWithName:</a></code>
|
625
|
+
<span class="tooltip"><p>Retrieves the bag associated with the specified name.</p></span>
|
626
|
+
</span>
|
627
|
+
|
628
|
+
|
629
|
+
</li><li>
|
630
|
+
<span class="tooltip">
|
631
|
+
<code><a href="#//api/name/bagsWithName:">– bagsWithName:</a></code>
|
632
|
+
<span class="tooltip"><p>Retrieves all <a href="#//api/name/bags">bags</a> associated with the specified name.</p></span>
|
633
|
+
</span>
|
634
|
+
|
635
|
+
|
636
|
+
</li><li>
|
637
|
+
<span class="tooltip">
|
638
|
+
<code><a href="#//api/name/bagsWithKeysInArray:">– bagsWithKeysInArray:</a></code>
|
639
|
+
<span class="tooltip"><p>Returns a new array containing the <a href="#//api/name/bags">bags</a> found in the document store matching the specified list of keys.</p></span>
|
640
|
+
</span>
|
641
|
+
|
642
|
+
|
643
|
+
</li><li>
|
644
|
+
<span class="tooltip">
|
645
|
+
<code><a href="#//api/name/bagsContainingObjectWithKey:">– bagsContainingObjectWithKey:</a></code>
|
646
|
+
<span class="tooltip"><p>Returns a new array containing the <a href="#//api/name/bags">bags</a> found in the document store which contain the object specified by the key.</p></span>
|
647
|
+
</span>
|
648
|
+
|
649
|
+
|
650
|
+
</li><li>
|
651
|
+
<span class="tooltip">
|
652
|
+
<code><a href="#//api/name/objectsWithKeysInArray:">– objectsWithKeysInArray:</a></code>
|
653
|
+
<span class="tooltip"><p>Returns a new array containing the objects found in the document store matching the specified list of keys.</p></span>
|
654
|
+
</span>
|
655
|
+
|
656
|
+
|
657
|
+
</li><li>
|
658
|
+
<span class="tooltip">
|
659
|
+
<code><a href="#//api/name/allObjectClasses">– allObjectClasses</a></code>
|
660
|
+
<span class="tooltip"><p>Returns a new array containing the objects classes in the document store.</p></span>
|
661
|
+
</span>
|
662
|
+
|
663
|
+
|
664
|
+
</li><li>
|
665
|
+
<span class="tooltip">
|
666
|
+
<code><a href="#//api/name/objectsOfClassNamed:">– objectsOfClassNamed:</a></code>
|
667
|
+
<span class="tooltip"><p>Returns an array containing the objects in the document store which match a specific class name.</p></span>
|
668
|
+
</span>
|
669
|
+
|
670
|
+
|
671
|
+
</li><li>
|
672
|
+
<span class="tooltip">
|
673
|
+
<code><a href="#//api/name/objectsOfClassNamed:usingSortDescriptors:">– objectsOfClassNamed:usingSortDescriptors:</a></code>
|
674
|
+
<span class="tooltip"><p>Returns a sorted array containing the objects in the document store which match a specific class name.</p></span>
|
675
|
+
</span>
|
676
|
+
|
677
|
+
|
678
|
+
</li><li>
|
679
|
+
<span class="tooltip">
|
680
|
+
<code><a href="#//api/name/countOfObjectsOfClassNamed:">– countOfObjectsOfClassNamed:</a></code>
|
681
|
+
<span class="tooltip"><p>Returns the number of objects in the document store which match a specific class name.</p></span>
|
682
|
+
</span>
|
683
|
+
|
684
|
+
|
685
|
+
</li>
|
686
|
+
</ul>
|
687
|
+
|
688
|
+
|
689
|
+
<a title="Saving and Maintenance" name="task_Saving and Maintenance"></a>
|
690
|
+
<h3 class="subsubtitle task-title">Saving and Maintenance</h3>
|
691
|
+
|
692
|
+
<ul class="task-list">
|
693
|
+
<li>
|
694
|
+
<span class="tooltip">
|
695
|
+
<code><a href="#//api/name/saveStoreAndReturnError:">– saveStoreAndReturnError:</a></code>
|
696
|
+
<span class="tooltip"><p>Saves the uncommitted changes to the document store.</p></span>
|
697
|
+
</span>
|
698
|
+
|
699
|
+
|
700
|
+
</li><li>
|
701
|
+
<span class="tooltip">
|
702
|
+
<code><a href="#//api/name/discardUnsavedChanges">– discardUnsavedChanges</a></code>
|
703
|
+
<span class="tooltip"><p>Discards the uncommitted changes that were added to the document store.</p></span>
|
704
|
+
</span>
|
705
|
+
|
706
|
+
|
707
|
+
</li><li>
|
708
|
+
<span class="tooltip">
|
709
|
+
<code><a href="#//api/name/compactStoreAndReturnError:">– compactStoreAndReturnError:</a></code>
|
710
|
+
<span class="tooltip"><p>Compact the database file size.</p></span>
|
711
|
+
</span>
|
712
|
+
|
713
|
+
|
714
|
+
</li><li>
|
715
|
+
<span class="tooltip">
|
716
|
+
<code><a href="#//api/name/clearIndexesAndReturnError:">– clearIndexesAndReturnError:</a></code>
|
717
|
+
<span class="tooltip"><p>Remove all indexes from the document store.</p></span>
|
718
|
+
</span>
|
719
|
+
|
720
|
+
|
721
|
+
</li><li>
|
722
|
+
<span class="tooltip">
|
723
|
+
<code><a href="#//api/name/rebuildIndexesAndReturnError:">– rebuildIndexesAndReturnError:</a></code>
|
724
|
+
<span class="tooltip"><p>Recreate all indexes from the document store.</p></span>
|
725
|
+
</span>
|
726
|
+
|
727
|
+
|
728
|
+
</li><li>
|
729
|
+
<span class="tooltip">
|
730
|
+
<code><a href="#//api/name/saveStoreToDirectoryAtPath:compactDatabase:error:">– saveStoreToDirectoryAtPath:compactDatabase:error:</a></code>
|
731
|
+
<span class="tooltip"><p>Makes a copy of the document store to a different location and optionally compacts it to its minimum size.</p></span>
|
732
|
+
</span>
|
733
|
+
|
734
|
+
|
735
|
+
</li>
|
736
|
+
</ul>
|
737
|
+
|
738
|
+
|
739
|
+
<a title="Transactions" name="task_Transactions"></a>
|
740
|
+
<h3 class="subsubtitle task-title">Transactions</h3>
|
741
|
+
|
742
|
+
<ul class="task-list">
|
743
|
+
<li>
|
744
|
+
<span class="tooltip">
|
745
|
+
<code><a href="#//api/name/beginTransactionAndReturnError:">– beginTransactionAndReturnError:</a></code>
|
746
|
+
<span class="tooltip"><p>Start a transaction.</p></span>
|
747
|
+
</span>
|
748
|
+
|
749
|
+
|
750
|
+
</li><li>
|
751
|
+
<span class="tooltip">
|
752
|
+
<code><a href="#//api/name/commitTransactionAndReturnError:">– commitTransactionAndReturnError:</a></code>
|
753
|
+
<span class="tooltip"><p>Commit a transaction.</p></span>
|
754
|
+
</span>
|
755
|
+
|
756
|
+
|
757
|
+
</li><li>
|
758
|
+
<span class="tooltip">
|
759
|
+
<code><a href="#//api/name/rollbackTransactionAndReturnError:">– rollbackTransactionAndReturnError:</a></code>
|
760
|
+
<span class="tooltip"><p>Rollback a transaction.</p></span>
|
761
|
+
</span>
|
762
|
+
|
763
|
+
|
764
|
+
</li>
|
765
|
+
</ul>
|
766
|
+
|
767
|
+
|
768
|
+
<a title="Miscellaneous" name="task_Miscellaneous"></a>
|
769
|
+
<h3 class="subsubtitle task-title">Miscellaneous</h3>
|
770
|
+
|
771
|
+
<ul class="task-list">
|
772
|
+
<li>
|
773
|
+
<span class="tooltip">
|
774
|
+
<code><a href="#//api/name/description">– description</a></code>
|
775
|
+
<span class="tooltip"><p>Returns a string representation of the store.</p></span>
|
776
|
+
</span>
|
777
|
+
|
778
|
+
|
779
|
+
</li><li>
|
780
|
+
<span class="tooltip">
|
781
|
+
<code><a href="#//api/name/JSONDescription">– JSONDescription</a></code>
|
782
|
+
<span class="tooltip"><p>Returns a JSON representation of the store.</p></span>
|
783
|
+
</span>
|
784
|
+
|
785
|
+
|
786
|
+
</li>
|
787
|
+
</ul>
|
788
|
+
|
789
|
+
|
790
|
+
<a title="Private Methods" name="task_Private Methods"></a>
|
791
|
+
<h3 class="subsubtitle task-title">Private Methods</h3>
|
792
|
+
|
793
|
+
<ul class="task-list">
|
794
|
+
<li>
|
795
|
+
<span class="tooltip">
|
796
|
+
<code><a href="#//api/name/dictionaryDescription">– dictionaryDescription</a></code>
|
797
|
+
|
798
|
+
</span>
|
799
|
+
|
800
|
+
|
801
|
+
</li><li>
|
802
|
+
<span class="tooltip">
|
803
|
+
<code><a href="#//api/name/_createAndOpenDebugDatabase">+ _createAndOpenDebugDatabase</a></code>
|
804
|
+
|
805
|
+
</span>
|
806
|
+
|
807
|
+
|
808
|
+
</li><li>
|
809
|
+
<span class="tooltip">
|
810
|
+
<code><a href="#//api/name/_executeSQL:">– _executeSQL:</a></code>
|
811
|
+
|
812
|
+
</span>
|
813
|
+
|
814
|
+
|
815
|
+
</li><li>
|
816
|
+
<span class="tooltip">
|
817
|
+
<code><a href="#//api/name/_nestedDescriptionWithPrefixedSpace:">– _nestedDescriptionWithPrefixedSpace:</a></code>
|
818
|
+
|
819
|
+
</span>
|
820
|
+
|
821
|
+
|
822
|
+
</li><li>
|
823
|
+
<span class="tooltip">
|
824
|
+
<code><a href="#//api/name/_initializePreparedStatementsWithError:">– _initializePreparedStatementsWithError:</a></code>
|
825
|
+
|
826
|
+
</span>
|
827
|
+
|
828
|
+
|
829
|
+
</li><li>
|
830
|
+
<span class="tooltip">
|
831
|
+
<code><a href="#//api/name/_releasePreparedStatements">– _releasePreparedStatements</a></code>
|
832
|
+
|
833
|
+
</span>
|
834
|
+
|
835
|
+
|
836
|
+
</li><li>
|
837
|
+
<span class="tooltip">
|
838
|
+
<code><a href="#//api/name/_setIsOurTransaction:">– _setIsOurTransaction:</a></code>
|
839
|
+
|
840
|
+
</span>
|
841
|
+
|
842
|
+
|
843
|
+
</li><li>
|
844
|
+
<span class="tooltip">
|
845
|
+
<code><a href="#//api/name/_isOurTransaction">– _isOurTransaction</a></code>
|
846
|
+
|
847
|
+
</span>
|
848
|
+
|
849
|
+
|
850
|
+
</li><li>
|
851
|
+
<span class="tooltip">
|
852
|
+
<code><a href="#//api/name/_setupCachingSchema">– _setupCachingSchema</a></code>
|
853
|
+
|
854
|
+
</span>
|
855
|
+
|
856
|
+
|
857
|
+
</li><li>
|
858
|
+
<span class="tooltip">
|
859
|
+
<code><a href="#//api/name/_storeDictionary:forKey:forClassNamed:error:">– _storeDictionary:forKey:forClassNamed:error:</a></code>
|
860
|
+
|
861
|
+
</span>
|
862
|
+
|
863
|
+
|
864
|
+
</li><li>
|
865
|
+
<span class="tooltip">
|
866
|
+
<code><a href="#//api/name/__storeDictionaries:forKeys:error:">– __storeDictionaries:forKeys:error:</a></code>
|
867
|
+
|
868
|
+
</span>
|
869
|
+
|
870
|
+
|
871
|
+
</li><li>
|
872
|
+
<span class="tooltip">
|
873
|
+
<code><a href="#//api/name/_bindValue:forAttribute:parameterNumber:usingSQLite3Statement:">– _bindValue:forAttribute:parameterNumber:usingSQLite3Statement:</a></code>
|
874
|
+
|
875
|
+
</span>
|
876
|
+
|
877
|
+
|
878
|
+
</li><li>
|
879
|
+
<span class="tooltip">
|
880
|
+
<code><a href="#//api/name/_checkNanoStoreIsReadyAndReturnError:">– _checkNanoStoreIsReadyAndReturnError:</a></code>
|
881
|
+
|
882
|
+
</span>
|
883
|
+
|
884
|
+
|
885
|
+
</li><li>
|
886
|
+
<span class="tooltip">
|
887
|
+
<code><a href="#//api/name/_NSFDatatypeOfObject:">– _NSFDatatypeOfObject:</a></code>
|
888
|
+
|
889
|
+
</span>
|
890
|
+
|
891
|
+
|
892
|
+
</li><li>
|
893
|
+
<span class="tooltip">
|
894
|
+
<code><a href="#//api/name/_stringFromValue:">– _stringFromValue:</a></code>
|
895
|
+
|
896
|
+
</span>
|
897
|
+
|
898
|
+
|
899
|
+
</li><li>
|
900
|
+
<span class="tooltip">
|
901
|
+
<code><a href="#//api/name/_calendarDateToString:">+ _calendarDateToString:</a></code>
|
902
|
+
|
903
|
+
</span>
|
904
|
+
|
905
|
+
|
906
|
+
</li><li>
|
907
|
+
<span class="tooltip">
|
908
|
+
<code><a href="#//api/name/_flattenCollection:keys:values:">– _flattenCollection:keys:values:</a></code>
|
909
|
+
|
910
|
+
</span>
|
911
|
+
|
912
|
+
|
913
|
+
</li><li>
|
914
|
+
<span class="tooltip">
|
915
|
+
<code><a href="#//api/name/_flattenCollection:keyPath:keys:values:">– _flattenCollection:keyPath:keys:values:</a></code>
|
916
|
+
|
917
|
+
</span>
|
918
|
+
|
919
|
+
|
920
|
+
</li><li>
|
921
|
+
<span class="tooltip">
|
922
|
+
<code><a href="#//api/name/_prepareSQLite3Statement:theSQLStatement:">– _prepareSQLite3Statement:theSQLStatement:</a></code>
|
923
|
+
|
924
|
+
</span>
|
925
|
+
|
926
|
+
|
927
|
+
</li><li>
|
928
|
+
<span class="tooltip">
|
929
|
+
<code><a href="#//api/name/_executeSQLite3StepUsingSQLite3Statement:">– _executeSQLite3StepUsingSQLite3Statement:</a></code>
|
930
|
+
|
931
|
+
</span>
|
932
|
+
|
933
|
+
|
934
|
+
</li><li>
|
935
|
+
<span class="tooltip">
|
936
|
+
<code><a href="#//api/name/_addObjectsFromArray:forceSave:error:">– _addObjectsFromArray:forceSave:error:</a></code>
|
937
|
+
|
938
|
+
</span>
|
939
|
+
|
940
|
+
|
941
|
+
</li><li>
|
942
|
+
<span class="tooltip">
|
943
|
+
<code><a href="#//api/name/_defaultTestData">+ _defaultTestData</a></code>
|
944
|
+
|
945
|
+
</span>
|
946
|
+
|
947
|
+
|
948
|
+
</li><li>
|
949
|
+
<span class="tooltip">
|
950
|
+
<code><a href="#//api/name/_backupFileStoreToDirectoryAtPath:extension:compact:error:">– _backupFileStoreToDirectoryAtPath:extension:compact:error:</a></code>
|
951
|
+
|
952
|
+
</span>
|
953
|
+
|
954
|
+
|
955
|
+
</li><li>
|
956
|
+
<span class="tooltip">
|
957
|
+
<code><a href="#//api/name/_backupMemoryStoreToDirectoryAtPath:extension:compact:error:">– _backupMemoryStoreToDirectoryAtPath:extension:compact:error:</a></code>
|
958
|
+
|
959
|
+
</span>
|
960
|
+
|
961
|
+
|
962
|
+
</li>
|
963
|
+
</ul>
|
964
|
+
|
965
|
+
</div>
|
966
|
+
|
967
|
+
|
968
|
+
|
969
|
+
|
970
|
+
|
971
|
+
<div class="section section-methods">
|
972
|
+
<a title="Properties" name="properties"></a>
|
973
|
+
<h2 class="subtitle subtitle-methods">Properties</h2>
|
974
|
+
|
975
|
+
<div class="section-method">
|
976
|
+
<a name="//api/name/hasUnsavedChanges" title="hasUnsavedChanges"></a>
|
977
|
+
<h3 class="subsubtitle method-title">hasUnsavedChanges</h3>
|
978
|
+
|
979
|
+
|
980
|
+
|
981
|
+
<div class="method-subsection brief-description">
|
982
|
+
<ul>
|
983
|
+
<li>Whether there are objects that haven’t been saved to the store.</li>
|
984
|
+
</ul>
|
985
|
+
|
986
|
+
</div>
|
987
|
+
|
988
|
+
|
989
|
+
|
990
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) BOOL hasUnsavedChanges</code></div>
|
991
|
+
|
992
|
+
|
993
|
+
|
994
|
+
|
995
|
+
|
996
|
+
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
<div class="method-subsection discussion-section">
|
1001
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1002
|
+
<ul>
|
1003
|
+
<li>Whether there are objects that haven’t been saved to the store.</li>
|
1004
|
+
</ul>
|
1005
|
+
|
1006
|
+
</div>
|
1007
|
+
|
1008
|
+
|
1009
|
+
|
1010
|
+
|
1011
|
+
|
1012
|
+
|
1013
|
+
|
1014
|
+
<div class="method-subsection declared-in-section">
|
1015
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1016
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1017
|
+
</div>
|
1018
|
+
|
1019
|
+
|
1020
|
+
</div>
|
1021
|
+
|
1022
|
+
<div class="section-method">
|
1023
|
+
<a name="//api/name/nanoEngineProcessingMode" title="nanoEngineProcessingMode"></a>
|
1024
|
+
<h3 class="subsubtitle method-title">nanoEngineProcessingMode</h3>
|
1025
|
+
|
1026
|
+
|
1027
|
+
|
1028
|
+
<div class="method-subsection brief-description">
|
1029
|
+
<ul>
|
1030
|
+
<li>The type of engine mode used by NanoStore to process data in the document store.
|
1031
|
+
The mode can be one of two options: <i>NSFEngineProcessingDefaultMode</i> and <i>NSFEngineProcessingFastMode</i>. See <i>NSFEngineProcessingMode</i>
|
1032
|
+
to learn more about how these options affect the engine behavior.</li>
|
1033
|
+
</ul>
|
1034
|
+
|
1035
|
+
</div>
|
1036
|
+
|
1037
|
+
|
1038
|
+
|
1039
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readwrite) NSFEngineProcessingMode nanoEngineProcessingMode</code></div>
|
1040
|
+
|
1041
|
+
|
1042
|
+
|
1043
|
+
|
1044
|
+
|
1045
|
+
|
1046
|
+
|
1047
|
+
|
1048
|
+
|
1049
|
+
<div class="method-subsection discussion-section">
|
1050
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1051
|
+
<ul>
|
1052
|
+
<li>The type of engine mode used by NanoStore to process data in the document store.
|
1053
|
+
The mode can be one of two options: <i>NSFEngineProcessingDefaultMode</i> and <i>NSFEngineProcessingFastMode</i>. See <i>NSFEngineProcessingMode</i>
|
1054
|
+
to learn more about how these options affect the engine behavior.</li>
|
1055
|
+
</ul>
|
1056
|
+
|
1057
|
+
|
1058
|
+
<p>In default mode, the pragmas are set as follows:</p>
|
1059
|
+
|
1060
|
+
<ul>
|
1061
|
+
<li>PRAGMA fullfsync = OFF;</li>
|
1062
|
+
<li>PRAGMA synchronous = FULL;</li>
|
1063
|
+
<li>PRAGMA journal_mode = DELETE;</li>
|
1064
|
+
<li>PRAGMA temp_store = DEFAULT;</li>
|
1065
|
+
</ul>
|
1066
|
+
|
1067
|
+
|
1068
|
+
<p>In fast mode, the pragmas are set to:</p>
|
1069
|
+
|
1070
|
+
<ul>
|
1071
|
+
<li>PRAGMA fullfsync = OFF;</li>
|
1072
|
+
<li>PRAGMA synchronous = OFF;</li>
|
1073
|
+
<li>PRAGMA journal_mode = MEMORY;</li>
|
1074
|
+
<li>PRAGMA temp_store = MEMORY;</li>
|
1075
|
+
</ul>
|
1076
|
+
<div class="note"><p><strong>Note:</strong> Set this property before you open the document store.</p></div>
|
1077
|
+
</div>
|
1078
|
+
|
1079
|
+
|
1080
|
+
|
1081
|
+
|
1082
|
+
|
1083
|
+
<div class="method-subsection see-also-section">
|
1084
|
+
<h4 class="method-subtitle">See Also</h4>
|
1085
|
+
<ul>
|
1086
|
+
|
1087
|
+
<li><code><ul>
|
1088
|
+
<li>(BOOL)<a href="#//api/name/openWithError:">– openWithError:</a>(out NSError **)outError;</li>
|
1089
|
+
</ul>
|
1090
|
+
</code></li>
|
1091
|
+
|
1092
|
+
</ul>
|
1093
|
+
</div>
|
1094
|
+
|
1095
|
+
|
1096
|
+
|
1097
|
+
<div class="method-subsection declared-in-section">
|
1098
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1099
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1100
|
+
</div>
|
1101
|
+
|
1102
|
+
|
1103
|
+
</div>
|
1104
|
+
|
1105
|
+
<div class="section-method">
|
1106
|
+
<a name="//api/name/nanoStoreEngine" title="nanoStoreEngine"></a>
|
1107
|
+
<h3 class="subsubtitle method-title">nanoStoreEngine</h3>
|
1108
|
+
|
1109
|
+
|
1110
|
+
|
1111
|
+
<div class="method-subsection brief-description">
|
1112
|
+
<ul>
|
1113
|
+
<li>A reference to the engine used by the document store, which contains a reference to the SQLite database.</li>
|
1114
|
+
</ul>
|
1115
|
+
|
1116
|
+
</div>
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
1120
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readonly) NSFNanoEngine *nanoStoreEngine</code></div>
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
|
1127
|
+
|
1128
|
+
|
1129
|
+
|
1130
|
+
<div class="method-subsection discussion-section">
|
1131
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1132
|
+
<ul>
|
1133
|
+
<li>A reference to the engine used by the document store, which contains a reference to the SQLite database.</li>
|
1134
|
+
</ul>
|
1135
|
+
|
1136
|
+
</div>
|
1137
|
+
|
1138
|
+
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
1142
|
+
|
1143
|
+
|
1144
|
+
<div class="method-subsection declared-in-section">
|
1145
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1146
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1147
|
+
</div>
|
1148
|
+
|
1149
|
+
|
1150
|
+
</div>
|
1151
|
+
|
1152
|
+
<div class="section-method">
|
1153
|
+
<a name="//api/name/saveInterval" title="saveInterval"></a>
|
1154
|
+
<h3 class="subsubtitle method-title">saveInterval</h3>
|
1155
|
+
|
1156
|
+
|
1157
|
+
|
1158
|
+
<div class="method-subsection brief-description">
|
1159
|
+
<ul>
|
1160
|
+
<li>Number of iterations that will trigger an automatic save.</li>
|
1161
|
+
</ul>
|
1162
|
+
|
1163
|
+
</div>
|
1164
|
+
|
1165
|
+
|
1166
|
+
|
1167
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readwrite) NSUInteger saveInterval</code></div>
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
1171
|
+
|
1172
|
+
|
1173
|
+
|
1174
|
+
|
1175
|
+
|
1176
|
+
|
1177
|
+
<div class="method-subsection discussion-section">
|
1178
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1179
|
+
<ul>
|
1180
|
+
<li>Number of iterations that will trigger an automatic save.</li>
|
1181
|
+
</ul>
|
1182
|
+
|
1183
|
+
</div>
|
1184
|
+
|
1185
|
+
|
1186
|
+
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
1190
|
+
|
1191
|
+
<div class="method-subsection declared-in-section">
|
1192
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1193
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1194
|
+
</div>
|
1195
|
+
|
1196
|
+
|
1197
|
+
</div>
|
1198
|
+
|
1199
|
+
</div>
|
1200
|
+
|
1201
|
+
|
1202
|
+
|
1203
|
+
<div class="section section-methods">
|
1204
|
+
<a title="Class Methods" name="class_methods"></a>
|
1205
|
+
<h2 class="subtitle subtitle-methods">Class Methods</h2>
|
1206
|
+
|
1207
|
+
<div class="section-method">
|
1208
|
+
<a name="//api/name/_calendarDateToString:" title="_calendarDateToString:"></a>
|
1209
|
+
<h3 class="subsubtitle method-title">_calendarDateToString:</h3>
|
1210
|
+
|
1211
|
+
|
1212
|
+
|
1213
|
+
<div class="method-subsection method-declaration"><code>+ (NSString *)_calendarDateToString:(NSDate *)<em>aDate</em></code></div>
|
1214
|
+
|
1215
|
+
|
1216
|
+
</div>
|
1217
|
+
|
1218
|
+
<div class="section-method">
|
1219
|
+
<a name="//api/name/_createAndOpenDebugDatabase" title="_createAndOpenDebugDatabase"></a>
|
1220
|
+
<h3 class="subsubtitle method-title">_createAndOpenDebugDatabase</h3>
|
1221
|
+
|
1222
|
+
|
1223
|
+
|
1224
|
+
<div class="method-subsection method-declaration"><code>+ (NSFNanoStore *)_createAndOpenDebugDatabase</code></div>
|
1225
|
+
|
1226
|
+
|
1227
|
+
</div>
|
1228
|
+
|
1229
|
+
<div class="section-method">
|
1230
|
+
<a name="//api/name/_defaultTestData" title="_defaultTestData"></a>
|
1231
|
+
<h3 class="subsubtitle method-title">_defaultTestData</h3>
|
1232
|
+
|
1233
|
+
|
1234
|
+
|
1235
|
+
<div class="method-subsection method-declaration"><code>+ (NSDictionary *)_defaultTestData</code></div>
|
1236
|
+
|
1237
|
+
|
1238
|
+
</div>
|
1239
|
+
|
1240
|
+
<div class="section-method">
|
1241
|
+
<a name="//api/name/createAndOpenStoreWithType:path:error:" title="createAndOpenStoreWithType:path:error:"></a>
|
1242
|
+
<h3 class="subsubtitle method-title">createAndOpenStoreWithType:path:error:</h3>
|
1243
|
+
|
1244
|
+
|
1245
|
+
|
1246
|
+
<div class="method-subsection brief-description">
|
1247
|
+
<p>Creates, opens and returns a document store of a specific type at a given file path.</p>
|
1248
|
+
</div>
|
1249
|
+
|
1250
|
+
|
1251
|
+
|
1252
|
+
<div class="method-subsection method-declaration"><code>+ (NSFNanoStore *)createAndOpenStoreWithType:(NSFNanoStoreType)<em>theType</em> path:(NSString *)<em>thePath</em> error:(out NSError **)<em>outError</em></code></div>
|
1253
|
+
|
1254
|
+
|
1255
|
+
|
1256
|
+
<div class="method-subsection arguments-section parameters">
|
1257
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
1258
|
+
|
1259
|
+
<dl class="argument-def parameter-def">
|
1260
|
+
<dt><em>theType</em></dt>
|
1261
|
+
<dd><p>the type of document store that will be created.</p></dd>
|
1262
|
+
</dl>
|
1263
|
+
|
1264
|
+
<dl class="argument-def parameter-def">
|
1265
|
+
<dt><em>thePath</em></dt>
|
1266
|
+
<dd><p>the file path where the document store will be created. Can be nil (see warning for additional info).</p></dd>
|
1267
|
+
</dl>
|
1268
|
+
|
1269
|
+
<dl class="argument-def parameter-def">
|
1270
|
+
<dt><em>outError</em></dt>
|
1271
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
1272
|
+
</dl>
|
1273
|
+
|
1274
|
+
</div>
|
1275
|
+
|
1276
|
+
|
1277
|
+
|
1278
|
+
<div class="method-subsection return">
|
1279
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
1280
|
+
<p>A document store upon success, nil otherwise.
|
1281
|
+
@note
|
1282
|
+
If you need to configure settings for the document store, you can use \link <a href="#//api/name/createStoreWithType:path:">createStoreWithType:path:</a> + (NSFNanoStore <em>)createStoreWithType:(NSFNanoStoreType)theType path:(NSString </em>)thePath \endlink instead.
|
1283
|
+
@warning
|
1284
|
+
The path is only meaningful for document stores of type @ref NSFPersistentStoreType “NSFPersistentStoreType”. It must not be nil.
|
1285
|
+
@throws NSFUnexpectedParameterException is thrown if the file path is nil or empty and the type is set to @ref NSFPersistentStoreType “NSFPersistentStoreType”.</p>
|
1286
|
+
</div>
|
1287
|
+
|
1288
|
+
|
1289
|
+
|
1290
|
+
|
1291
|
+
|
1292
|
+
<div class="method-subsection discussion-section">
|
1293
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1294
|
+
<p>Creates, opens and returns a document store of a specific type at a given file path.</p>
|
1295
|
+
</div>
|
1296
|
+
|
1297
|
+
|
1298
|
+
|
1299
|
+
|
1300
|
+
|
1301
|
+
<div class="method-subsection see-also-section">
|
1302
|
+
<h4 class="method-subtitle">See Also</h4>
|
1303
|
+
<ul>
|
1304
|
+
|
1305
|
+
<li><code><p>\link <a href="#//api/name/openWithError:">– openWithError:</a> – (BOOL)<a href="#//api/name/openWithError:">– openWithError:</a>(out NSError **)outError \endlink</p></code></li>
|
1306
|
+
|
1307
|
+
<li><code><p>\link <a href="#//api/name/createStoreWithType:path:">+ createStoreWithType:path:</a> + (NSFNanoStore <em>)createStoreWithType:(NSFNanoStoreType)theType path:(NSString </em>)thePath \endlink</p></code></li>
|
1308
|
+
|
1309
|
+
</ul>
|
1310
|
+
</div>
|
1311
|
+
|
1312
|
+
|
1313
|
+
|
1314
|
+
<div class="method-subsection declared-in-section">
|
1315
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1316
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1317
|
+
</div>
|
1318
|
+
|
1319
|
+
|
1320
|
+
</div>
|
1321
|
+
|
1322
|
+
<div class="section-method">
|
1323
|
+
<a name="//api/name/createStoreWithType:path:" title="createStoreWithType:path:"></a>
|
1324
|
+
<h3 class="subsubtitle method-title">createStoreWithType:path:</h3>
|
1325
|
+
|
1326
|
+
|
1327
|
+
|
1328
|
+
<div class="method-subsection brief-description">
|
1329
|
+
<p>Creates and returns a document store of a specific type at a given file path.</p>
|
1330
|
+
</div>
|
1331
|
+
|
1332
|
+
|
1333
|
+
|
1334
|
+
<div class="method-subsection method-declaration"><code>+ (NSFNanoStore *)createStoreWithType:(NSFNanoStoreType)<em>theType</em> path:(NSString *)<em>thePath</em></code></div>
|
1335
|
+
|
1336
|
+
|
1337
|
+
|
1338
|
+
<div class="method-subsection arguments-section parameters">
|
1339
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
1340
|
+
|
1341
|
+
<dl class="argument-def parameter-def">
|
1342
|
+
<dt><em>theType</em></dt>
|
1343
|
+
<dd><p>the type of document store that will be created.</p></dd>
|
1344
|
+
</dl>
|
1345
|
+
|
1346
|
+
<dl class="argument-def parameter-def">
|
1347
|
+
<dt><em>thePath</em></dt>
|
1348
|
+
<dd><p>the file path where the document store will be created. Can be nil (see warning for additional info).</p></dd>
|
1349
|
+
</dl>
|
1350
|
+
|
1351
|
+
</div>
|
1352
|
+
|
1353
|
+
|
1354
|
+
|
1355
|
+
<div class="method-subsection return">
|
1356
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
1357
|
+
<p>A document store upon success, nil otherwise.
|
1358
|
+
@note
|
1359
|
+
To manipulate the document store, you must first open it. If you don’t need to configure settings for the document store, you can use
|
1360
|
+
\link <a href="#//api/name/createAndOpenStoreWithType:path:error:">createAndOpenStoreWithType:path:error:</a> + (NSFNanoStore <em>)createAndOpenStoreWithType:(NSFNanoStoreType)theType path:(NSString </em>)thePath error:(out NSError **)outError \endlink instead.
|
1361
|
+
@warning
|
1362
|
+
The path is only meaningful for document stores of type \link NSFGlobals::NSFPersistentStoreType NSFPersistentStoreType \endlink. It must not be nil.
|
1363
|
+
@throws NSFUnexpectedParameterException is thrown if the file path is nil or empty and the type is set to @ref NSFPersistentStoreType “NSFPersistentStoreType”.</p>
|
1364
|
+
</div>
|
1365
|
+
|
1366
|
+
|
1367
|
+
|
1368
|
+
|
1369
|
+
|
1370
|
+
<div class="method-subsection discussion-section">
|
1371
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1372
|
+
<p>Creates and returns a document store of a specific type at a given file path.</p>
|
1373
|
+
</div>
|
1374
|
+
|
1375
|
+
|
1376
|
+
|
1377
|
+
|
1378
|
+
|
1379
|
+
<div class="method-subsection see-also-section">
|
1380
|
+
<h4 class="method-subtitle">See Also</h4>
|
1381
|
+
<ul>
|
1382
|
+
|
1383
|
+
<li><code><p>\link <a href="#//api/name/openWithError:">– openWithError:</a> – (BOOL)<a href="#//api/name/openWithError:">– openWithError:</a>(out NSError **)outError \endlink</p></code></li>
|
1384
|
+
|
1385
|
+
<li><code><p>\link <a href="#//api/name/createAndOpenStoreWithType:path:error:">+ createAndOpenStoreWithType:path:error:</a> + (NSFNanoStore <em>)createAndOpenStoreWithType:(NSFNanoStoreType)theType path:(NSString </em>)thePath error:(out NSError **)outError \endlink</p></code></li>
|
1386
|
+
|
1387
|
+
</ul>
|
1388
|
+
</div>
|
1389
|
+
|
1390
|
+
|
1391
|
+
|
1392
|
+
<div class="method-subsection declared-in-section">
|
1393
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1394
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1395
|
+
</div>
|
1396
|
+
|
1397
|
+
|
1398
|
+
</div>
|
1399
|
+
|
1400
|
+
</div>
|
1401
|
+
|
1402
|
+
|
1403
|
+
|
1404
|
+
<div class="section section-methods">
|
1405
|
+
<a title="Instance Methods" name="instance_methods"></a>
|
1406
|
+
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
|
1407
|
+
|
1408
|
+
<div class="section-method">
|
1409
|
+
<a name="//api/name/JSONDescription" title="JSONDescription"></a>
|
1410
|
+
<h3 class="subsubtitle method-title">JSONDescription</h3>
|
1411
|
+
|
1412
|
+
|
1413
|
+
|
1414
|
+
<div class="method-subsection brief-description">
|
1415
|
+
<p>Returns a JSON representation of the store.</p>
|
1416
|
+
</div>
|
1417
|
+
|
1418
|
+
|
1419
|
+
|
1420
|
+
<div class="method-subsection method-declaration"><code>- (NSString *)JSONDescription</code></div>
|
1421
|
+
|
1422
|
+
|
1423
|
+
|
1424
|
+
|
1425
|
+
|
1426
|
+
|
1427
|
+
|
1428
|
+
|
1429
|
+
|
1430
|
+
<div class="method-subsection discussion-section">
|
1431
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1432
|
+
<p>Returns a JSON representation of the store.</p>
|
1433
|
+
</div>
|
1434
|
+
|
1435
|
+
|
1436
|
+
|
1437
|
+
|
1438
|
+
|
1439
|
+
|
1440
|
+
|
1441
|
+
<div class="method-subsection declared-in-section">
|
1442
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1443
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1444
|
+
</div>
|
1445
|
+
|
1446
|
+
|
1447
|
+
</div>
|
1448
|
+
|
1449
|
+
<div class="section-method">
|
1450
|
+
<a name="//api/name/_NSFDatatypeOfObject:" title="_NSFDatatypeOfObject:"></a>
|
1451
|
+
<h3 class="subsubtitle method-title">_NSFDatatypeOfObject:</h3>
|
1452
|
+
|
1453
|
+
|
1454
|
+
|
1455
|
+
<div class="method-subsection method-declaration"><code>- (NSFNanoDatatype)_NSFDatatypeOfObject:(id)<em>value</em></code></div>
|
1456
|
+
|
1457
|
+
|
1458
|
+
</div>
|
1459
|
+
|
1460
|
+
<div class="section-method">
|
1461
|
+
<a name="//api/name/__storeDictionaries:forKeys:error:" title="__storeDictionaries:forKeys:error:"></a>
|
1462
|
+
<h3 class="subsubtitle method-title">__storeDictionaries:forKeys:error:</h3>
|
1463
|
+
|
1464
|
+
|
1465
|
+
|
1466
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)__storeDictionaries:(NSArray *)<em>someObjects</em> forKeys:(NSArray *)<em>someKeys</em> error:(out NSError **)<em>outError</em></code></div>
|
1467
|
+
|
1468
|
+
|
1469
|
+
</div>
|
1470
|
+
|
1471
|
+
<div class="section-method">
|
1472
|
+
<a name="//api/name/_addObjectsFromArray:forceSave:error:" title="_addObjectsFromArray:forceSave:error:"></a>
|
1473
|
+
<h3 class="subsubtitle method-title">_addObjectsFromArray:forceSave:error:</h3>
|
1474
|
+
|
1475
|
+
|
1476
|
+
|
1477
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_addObjectsFromArray:(NSArray *)<em>someObjects</em> forceSave:(BOOL)<em>forceSave</em> error:(out NSError **)<em>outError</em></code></div>
|
1478
|
+
|
1479
|
+
|
1480
|
+
</div>
|
1481
|
+
|
1482
|
+
<div class="section-method">
|
1483
|
+
<a name="//api/name/_backupFileStoreToDirectoryAtPath:extension:compact:error:" title="_backupFileStoreToDirectoryAtPath:extension:compact:error:"></a>
|
1484
|
+
<h3 class="subsubtitle method-title">_backupFileStoreToDirectoryAtPath:extension:compact:error:</h3>
|
1485
|
+
|
1486
|
+
|
1487
|
+
|
1488
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_backupFileStoreToDirectoryAtPath:(NSString *)<em>aPath</em> extension:(NSString *)<em>anExtension</em> compact:(BOOL)<em>flag</em> error:(out NSError **)<em>outError</em></code></div>
|
1489
|
+
|
1490
|
+
|
1491
|
+
</div>
|
1492
|
+
|
1493
|
+
<div class="section-method">
|
1494
|
+
<a name="//api/name/_backupMemoryStoreToDirectoryAtPath:extension:compact:error:" title="_backupMemoryStoreToDirectoryAtPath:extension:compact:error:"></a>
|
1495
|
+
<h3 class="subsubtitle method-title">_backupMemoryStoreToDirectoryAtPath:extension:compact:error:</h3>
|
1496
|
+
|
1497
|
+
|
1498
|
+
|
1499
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_backupMemoryStoreToDirectoryAtPath:(NSString *)<em>aPath</em> extension:(NSString *)<em>anExtension</em> compact:(BOOL)<em>flag</em> error:(out NSError **)<em>outError</em></code></div>
|
1500
|
+
|
1501
|
+
|
1502
|
+
</div>
|
1503
|
+
|
1504
|
+
<div class="section-method">
|
1505
|
+
<a name="//api/name/_bindValue:forAttribute:parameterNumber:usingSQLite3Statement:" title="_bindValue:forAttribute:parameterNumber:usingSQLite3Statement:"></a>
|
1506
|
+
<h3 class="subsubtitle method-title">_bindValue:forAttribute:parameterNumber:usingSQLite3Statement:</h3>
|
1507
|
+
|
1508
|
+
|
1509
|
+
|
1510
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_bindValue:(id)<em>aValue</em> forAttribute:(NSString *)<em>anAttribute</em> parameterNumber:(NSInteger)<em>aParamNumber</em> usingSQLite3Statement:(sqlite3_stmt *)<em>aStatement</em></code></div>
|
1511
|
+
|
1512
|
+
|
1513
|
+
</div>
|
1514
|
+
|
1515
|
+
<div class="section-method">
|
1516
|
+
<a name="//api/name/_checkNanoStoreIsReadyAndReturnError:" title="_checkNanoStoreIsReadyAndReturnError:"></a>
|
1517
|
+
<h3 class="subsubtitle method-title">_checkNanoStoreIsReadyAndReturnError:</h3>
|
1518
|
+
|
1519
|
+
|
1520
|
+
|
1521
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_checkNanoStoreIsReadyAndReturnError:(out NSError **)<em>outError</em></code></div>
|
1522
|
+
|
1523
|
+
|
1524
|
+
</div>
|
1525
|
+
|
1526
|
+
<div class="section-method">
|
1527
|
+
<a name="//api/name/_executeSQL:" title="_executeSQL:"></a>
|
1528
|
+
<h3 class="subsubtitle method-title">_executeSQL:</h3>
|
1529
|
+
|
1530
|
+
|
1531
|
+
|
1532
|
+
<div class="method-subsection method-declaration"><code>- (NSFNanoResult *)_executeSQL:(NSString *)<em>theSQLStatement</em></code></div>
|
1533
|
+
|
1534
|
+
|
1535
|
+
</div>
|
1536
|
+
|
1537
|
+
<div class="section-method">
|
1538
|
+
<a name="//api/name/_executeSQLite3StepUsingSQLite3Statement:" title="_executeSQLite3StepUsingSQLite3Statement:"></a>
|
1539
|
+
<h3 class="subsubtitle method-title">_executeSQLite3StepUsingSQLite3Statement:</h3>
|
1540
|
+
|
1541
|
+
|
1542
|
+
|
1543
|
+
<div class="method-subsection method-declaration"><code>- (void)_executeSQLite3StepUsingSQLite3Statement:(sqlite3_stmt *)<em>aStatement</em></code></div>
|
1544
|
+
|
1545
|
+
|
1546
|
+
</div>
|
1547
|
+
|
1548
|
+
<div class="section-method">
|
1549
|
+
<a name="//api/name/_flattenCollection:keyPath:keys:values:" title="_flattenCollection:keyPath:keys:values:"></a>
|
1550
|
+
<h3 class="subsubtitle method-title">_flattenCollection:keyPath:keys:values:</h3>
|
1551
|
+
|
1552
|
+
|
1553
|
+
|
1554
|
+
<div class="method-subsection method-declaration"><code>- (void)_flattenCollection:(id)<em>someObject</em> keyPath:(NSMutableArray **)<em>aKeyPath</em> keys:(NSMutableArray **)<em>someKeys</em> values:(NSMutableArray **)<em>someValues</em></code></div>
|
1555
|
+
|
1556
|
+
|
1557
|
+
</div>
|
1558
|
+
|
1559
|
+
<div class="section-method">
|
1560
|
+
<a name="//api/name/_flattenCollection:keys:values:" title="_flattenCollection:keys:values:"></a>
|
1561
|
+
<h3 class="subsubtitle method-title">_flattenCollection:keys:values:</h3>
|
1562
|
+
|
1563
|
+
|
1564
|
+
|
1565
|
+
<div class="method-subsection method-declaration"><code>- (void)_flattenCollection:(NSDictionary *)<em>info</em> keys:(NSMutableArray **)<em>flattenedKeys</em> values:(NSMutableArray **)<em>flattenedValues</em></code></div>
|
1566
|
+
|
1567
|
+
|
1568
|
+
</div>
|
1569
|
+
|
1570
|
+
<div class="section-method">
|
1571
|
+
<a name="//api/name/_initializePreparedStatementsWithError:" title="_initializePreparedStatementsWithError:"></a>
|
1572
|
+
<h3 class="subsubtitle method-title">_initializePreparedStatementsWithError:</h3>
|
1573
|
+
|
1574
|
+
|
1575
|
+
|
1576
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_initializePreparedStatementsWithError:(out NSError **)<em>outError</em></code></div>
|
1577
|
+
|
1578
|
+
|
1579
|
+
</div>
|
1580
|
+
|
1581
|
+
<div class="section-method">
|
1582
|
+
<a name="//api/name/_isOurTransaction" title="_isOurTransaction"></a>
|
1583
|
+
<h3 class="subsubtitle method-title">_isOurTransaction</h3>
|
1584
|
+
|
1585
|
+
|
1586
|
+
|
1587
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_isOurTransaction</code></div>
|
1588
|
+
|
1589
|
+
|
1590
|
+
</div>
|
1591
|
+
|
1592
|
+
<div class="section-method">
|
1593
|
+
<a name="//api/name/_nestedDescriptionWithPrefixedSpace:" title="_nestedDescriptionWithPrefixedSpace:"></a>
|
1594
|
+
<h3 class="subsubtitle method-title">_nestedDescriptionWithPrefixedSpace:</h3>
|
1595
|
+
|
1596
|
+
|
1597
|
+
|
1598
|
+
<div class="method-subsection method-declaration"><code>- (NSString *)_nestedDescriptionWithPrefixedSpace:(NSString *)<em>prefixedSpace</em></code></div>
|
1599
|
+
|
1600
|
+
|
1601
|
+
</div>
|
1602
|
+
|
1603
|
+
<div class="section-method">
|
1604
|
+
<a name="//api/name/_prepareSQLite3Statement:theSQLStatement:" title="_prepareSQLite3Statement:theSQLStatement:"></a>
|
1605
|
+
<h3 class="subsubtitle method-title">_prepareSQLite3Statement:theSQLStatement:</h3>
|
1606
|
+
|
1607
|
+
|
1608
|
+
|
1609
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_prepareSQLite3Statement:(sqlite3_stmt **)<em>aStatement</em> theSQLStatement:(NSString *)<em>aSQLQuery</em></code></div>
|
1610
|
+
|
1611
|
+
|
1612
|
+
</div>
|
1613
|
+
|
1614
|
+
<div class="section-method">
|
1615
|
+
<a name="//api/name/_releasePreparedStatements" title="_releasePreparedStatements"></a>
|
1616
|
+
<h3 class="subsubtitle method-title">_releasePreparedStatements</h3>
|
1617
|
+
|
1618
|
+
|
1619
|
+
|
1620
|
+
<div class="method-subsection method-declaration"><code>- (void)_releasePreparedStatements</code></div>
|
1621
|
+
|
1622
|
+
|
1623
|
+
</div>
|
1624
|
+
|
1625
|
+
<div class="section-method">
|
1626
|
+
<a name="//api/name/_setIsOurTransaction:" title="_setIsOurTransaction:"></a>
|
1627
|
+
<h3 class="subsubtitle method-title">_setIsOurTransaction:</h3>
|
1628
|
+
|
1629
|
+
|
1630
|
+
|
1631
|
+
<div class="method-subsection method-declaration"><code>- (void)_setIsOurTransaction:(BOOL)<em>value</em></code></div>
|
1632
|
+
|
1633
|
+
|
1634
|
+
</div>
|
1635
|
+
|
1636
|
+
<div class="section-method">
|
1637
|
+
<a name="//api/name/_setupCachingSchema" title="_setupCachingSchema"></a>
|
1638
|
+
<h3 class="subsubtitle method-title">_setupCachingSchema</h3>
|
1639
|
+
|
1640
|
+
|
1641
|
+
|
1642
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_setupCachingSchema</code></div>
|
1643
|
+
|
1644
|
+
|
1645
|
+
</div>
|
1646
|
+
|
1647
|
+
<div class="section-method">
|
1648
|
+
<a name="//api/name/_storeDictionary:forKey:forClassNamed:error:" title="_storeDictionary:forKey:forClassNamed:error:"></a>
|
1649
|
+
<h3 class="subsubtitle method-title">_storeDictionary:forKey:forClassNamed:error:</h3>
|
1650
|
+
|
1651
|
+
|
1652
|
+
|
1653
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)_storeDictionary:(NSDictionary *)<em>someInfo</em> forKey:(NSString *)<em>aKey</em> forClassNamed:(NSString *)<em>classType</em> error:(out NSError **)<em>outError</em></code></div>
|
1654
|
+
|
1655
|
+
|
1656
|
+
</div>
|
1657
|
+
|
1658
|
+
<div class="section-method">
|
1659
|
+
<a name="//api/name/_stringFromValue:" title="_stringFromValue:"></a>
|
1660
|
+
<h3 class="subsubtitle method-title">_stringFromValue:</h3>
|
1661
|
+
|
1662
|
+
|
1663
|
+
|
1664
|
+
<div class="method-subsection method-declaration"><code>- (NSString *)_stringFromValue:(id)<em>aValue</em></code></div>
|
1665
|
+
|
1666
|
+
|
1667
|
+
</div>
|
1668
|
+
|
1669
|
+
<div class="section-method">
|
1670
|
+
<a name="//api/name/addObject:error:" title="addObject:error:"></a>
|
1671
|
+
<h3 class="subsubtitle method-title">addObject:error:</h3>
|
1672
|
+
|
1673
|
+
|
1674
|
+
|
1675
|
+
<div class="method-subsection brief-description">
|
1676
|
+
<p>Adds an \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object to the document store.</p>
|
1677
|
+
</div>
|
1678
|
+
|
1679
|
+
|
1680
|
+
|
1681
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)addObject:(id<NSFNanoObjectProtocol>)<em>theObject</em> error:(out NSError **)<em>outError</em></code></div>
|
1682
|
+
|
1683
|
+
|
1684
|
+
|
1685
|
+
<div class="method-subsection arguments-section parameters">
|
1686
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
1687
|
+
|
1688
|
+
<dl class="argument-def parameter-def">
|
1689
|
+
<dt><em>theObject</em></dt>
|
1690
|
+
<dd><p>is added to the document store.</p></dd>
|
1691
|
+
</dl>
|
1692
|
+
|
1693
|
+
<dl class="argument-def parameter-def">
|
1694
|
+
<dt><em>outError</em></dt>
|
1695
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
1696
|
+
</dl>
|
1697
|
+
|
1698
|
+
</div>
|
1699
|
+
|
1700
|
+
|
1701
|
+
|
1702
|
+
<div class="method-subsection return">
|
1703
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
1704
|
+
<p>YES upon success, NO otherwise.</p>
|
1705
|
+
</div>
|
1706
|
+
|
1707
|
+
|
1708
|
+
|
1709
|
+
|
1710
|
+
|
1711
|
+
<div class="method-subsection discussion-section">
|
1712
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1713
|
+
<p>Adds an \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object to the document store.</p><div class="warning"><p><strong>Warning:</strong> This value cannot be nil and it must be \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant.
|
1714
|
+
@throws NSFNonConformingNanoObjectProtocolException is thrown if the object is non-\link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink compliant.</p></div>
|
1715
|
+
</div>
|
1716
|
+
|
1717
|
+
|
1718
|
+
|
1719
|
+
|
1720
|
+
|
1721
|
+
<div class="method-subsection see-also-section">
|
1722
|
+
<h4 class="method-subtitle">See Also</h4>
|
1723
|
+
<ul>
|
1724
|
+
|
1725
|
+
<li><code><p>\link <a href="#//api/name/addObjectsFromArray:error:">– addObjectsFromArray:error:</a> – (BOOL)addObjectsFromArray:(NSArray *)theObjects error:(out NSError **)outError \endlink</p></code></li>
|
1726
|
+
|
1727
|
+
</ul>
|
1728
|
+
</div>
|
1729
|
+
|
1730
|
+
|
1731
|
+
|
1732
|
+
<div class="method-subsection declared-in-section">
|
1733
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1734
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1735
|
+
</div>
|
1736
|
+
|
1737
|
+
|
1738
|
+
</div>
|
1739
|
+
|
1740
|
+
<div class="section-method">
|
1741
|
+
<a name="//api/name/addObjectsFromArray:error:" title="addObjectsFromArray:error:"></a>
|
1742
|
+
<h3 class="subsubtitle method-title">addObjectsFromArray:error:</h3>
|
1743
|
+
|
1744
|
+
|
1745
|
+
|
1746
|
+
<div class="method-subsection brief-description">
|
1747
|
+
<p>Adds a series of \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant objects to the document store.</p>
|
1748
|
+
</div>
|
1749
|
+
|
1750
|
+
|
1751
|
+
|
1752
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)addObjectsFromArray:(NSArray *)<em>theObjects</em> error:(out NSError **)<em>outError</em></code></div>
|
1753
|
+
|
1754
|
+
|
1755
|
+
|
1756
|
+
<div class="method-subsection arguments-section parameters">
|
1757
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
1758
|
+
|
1759
|
+
<dl class="argument-def parameter-def">
|
1760
|
+
<dt><em>theObjects</em></dt>
|
1761
|
+
<dd><p>is an array of objects to be added to the document store. The objects must be \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant.</p></dd>
|
1762
|
+
</dl>
|
1763
|
+
|
1764
|
+
<dl class="argument-def parameter-def">
|
1765
|
+
<dt><em>outError</em></dt>
|
1766
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
1767
|
+
</dl>
|
1768
|
+
|
1769
|
+
</div>
|
1770
|
+
|
1771
|
+
|
1772
|
+
|
1773
|
+
<div class="method-subsection return">
|
1774
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
1775
|
+
<p>YES upon success, NO otherwise.</p>
|
1776
|
+
</div>
|
1777
|
+
|
1778
|
+
|
1779
|
+
|
1780
|
+
|
1781
|
+
|
1782
|
+
<div class="method-subsection discussion-section">
|
1783
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1784
|
+
<p>Adds a series of \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant objects to the document store.</p><div class="warning"><p><strong>Warning:</strong> The objects of the array must be \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant.
|
1785
|
+
@throws NSFNonConformingNanoObjectProtocolException is thrown if the object is non-\link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink compliant.</p></div>
|
1786
|
+
</div>
|
1787
|
+
|
1788
|
+
|
1789
|
+
|
1790
|
+
|
1791
|
+
|
1792
|
+
<div class="method-subsection see-also-section">
|
1793
|
+
<h4 class="method-subtitle">See Also</h4>
|
1794
|
+
<ul>
|
1795
|
+
|
1796
|
+
<li><code><p>\link <a href="#//api/name/addObject:error:">– addObject:error:</a> – (BOOL)addObject:(id <<a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>>)theObject error:(out NSError **)outError \endlink</p></code></li>
|
1797
|
+
|
1798
|
+
</ul>
|
1799
|
+
</div>
|
1800
|
+
|
1801
|
+
|
1802
|
+
|
1803
|
+
<div class="method-subsection declared-in-section">
|
1804
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1805
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1806
|
+
</div>
|
1807
|
+
|
1808
|
+
|
1809
|
+
</div>
|
1810
|
+
|
1811
|
+
<div class="section-method">
|
1812
|
+
<a name="//api/name/allObjectClasses" title="allObjectClasses"></a>
|
1813
|
+
<h3 class="subsubtitle method-title">allObjectClasses</h3>
|
1814
|
+
|
1815
|
+
|
1816
|
+
|
1817
|
+
<div class="method-subsection brief-description">
|
1818
|
+
<p>Returns a new array containing the objects classes in the document store.</p>
|
1819
|
+
</div>
|
1820
|
+
|
1821
|
+
|
1822
|
+
|
1823
|
+
<div class="method-subsection method-declaration"><code>- (NSArray *)allObjectClasses</code></div>
|
1824
|
+
|
1825
|
+
|
1826
|
+
|
1827
|
+
|
1828
|
+
|
1829
|
+
<div class="method-subsection return">
|
1830
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
1831
|
+
<p>An array of the class names found in the document store.</p>
|
1832
|
+
</div>
|
1833
|
+
|
1834
|
+
|
1835
|
+
|
1836
|
+
|
1837
|
+
|
1838
|
+
<div class="method-subsection discussion-section">
|
1839
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1840
|
+
<p>Returns a new array containing the objects classes in the document store.</p><div class="note"><p><strong>Note:</strong> The classes can be <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a>, <a href="../Classes/NSFNanoBag.html">NSFNanoBag</a> or any \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object.</p></div>
|
1841
|
+
</div>
|
1842
|
+
|
1843
|
+
|
1844
|
+
|
1845
|
+
|
1846
|
+
|
1847
|
+
|
1848
|
+
|
1849
|
+
<div class="method-subsection declared-in-section">
|
1850
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1851
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1852
|
+
</div>
|
1853
|
+
|
1854
|
+
|
1855
|
+
</div>
|
1856
|
+
|
1857
|
+
<div class="section-method">
|
1858
|
+
<a name="//api/name/bagWithName:" title="bagWithName:"></a>
|
1859
|
+
<h3 class="subsubtitle method-title">bagWithName:</h3>
|
1860
|
+
|
1861
|
+
|
1862
|
+
|
1863
|
+
<div class="method-subsection brief-description">
|
1864
|
+
<p>Retrieves the bag associated with the specified name.</p>
|
1865
|
+
</div>
|
1866
|
+
|
1867
|
+
|
1868
|
+
|
1869
|
+
<div class="method-subsection method-declaration"><code>- (NSFNanoBag *)bagWithName:(NSString *)<em>theName</em></code></div>
|
1870
|
+
|
1871
|
+
|
1872
|
+
|
1873
|
+
<div class="method-subsection arguments-section parameters">
|
1874
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
1875
|
+
|
1876
|
+
<dl class="argument-def parameter-def">
|
1877
|
+
<dt><em>theName</em></dt>
|
1878
|
+
<dd><p>the name of the bag.</p></dd>
|
1879
|
+
</dl>
|
1880
|
+
|
1881
|
+
</div>
|
1882
|
+
|
1883
|
+
|
1884
|
+
|
1885
|
+
<div class="method-subsection return">
|
1886
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
1887
|
+
<p>The bag that matches the specified name, nil otherwise.</p>
|
1888
|
+
</div>
|
1889
|
+
|
1890
|
+
|
1891
|
+
|
1892
|
+
|
1893
|
+
|
1894
|
+
<div class="method-subsection discussion-section">
|
1895
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1896
|
+
<p>Retrieves the bag associated with the specified name.</p><div class="note"><p><strong>Note:</strong> Check properties savedObjects, unsavedObjects and removedObjects to find out the current state of the bag.</p></div>
|
1897
|
+
</div>
|
1898
|
+
|
1899
|
+
|
1900
|
+
|
1901
|
+
|
1902
|
+
|
1903
|
+
|
1904
|
+
|
1905
|
+
<div class="method-subsection declared-in-section">
|
1906
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1907
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1908
|
+
</div>
|
1909
|
+
|
1910
|
+
|
1911
|
+
</div>
|
1912
|
+
|
1913
|
+
<div class="section-method">
|
1914
|
+
<a name="//api/name/bags" title="bags"></a>
|
1915
|
+
<h3 class="subsubtitle method-title">bags</h3>
|
1916
|
+
|
1917
|
+
|
1918
|
+
|
1919
|
+
<div class="method-subsection brief-description">
|
1920
|
+
<p>Returns a new array containing the bags found in the document store.</p>
|
1921
|
+
</div>
|
1922
|
+
|
1923
|
+
|
1924
|
+
|
1925
|
+
<div class="method-subsection method-declaration"><code>- (NSArray *)bags</code></div>
|
1926
|
+
|
1927
|
+
|
1928
|
+
|
1929
|
+
|
1930
|
+
|
1931
|
+
<div class="method-subsection return">
|
1932
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
1933
|
+
<p>An array with the bags found in the document store.</p>
|
1934
|
+
</div>
|
1935
|
+
|
1936
|
+
|
1937
|
+
|
1938
|
+
|
1939
|
+
|
1940
|
+
<div class="method-subsection discussion-section">
|
1941
|
+
<h4 class="method-subtitle">Discussion</h4>
|
1942
|
+
<p>Returns a new array containing the bags found in the document store.</p>
|
1943
|
+
</div>
|
1944
|
+
|
1945
|
+
|
1946
|
+
|
1947
|
+
|
1948
|
+
|
1949
|
+
<div class="method-subsection see-also-section">
|
1950
|
+
<h4 class="method-subtitle">See Also</h4>
|
1951
|
+
<ul>
|
1952
|
+
|
1953
|
+
<li><code><p>\link <a href="#//api/name/bagsWithKeysInArray:">– bagsWithKeysInArray:</a> – (NSArray <em>)<a href="#//api/name/bagsWithKeysInArray:">– bagsWithKeysInArray:</a>(NSArray </em>)theKeys \endlink</p></code></li>
|
1954
|
+
|
1955
|
+
<li><code><p>\link <a href="#//api/name/bagsContainingObjectWithKey:">– bagsContainingObjectWithKey:</a> – (NSArray <em>)<a href="#//api/name/bagsContainingObjectWithKey:">– bagsContainingObjectWithKey:</a>(NSString </em>)theKey \endlink</p></code></li>
|
1956
|
+
|
1957
|
+
</ul>
|
1958
|
+
</div>
|
1959
|
+
|
1960
|
+
|
1961
|
+
|
1962
|
+
<div class="method-subsection declared-in-section">
|
1963
|
+
<h4 class="method-subtitle">Declared In</h4>
|
1964
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
1965
|
+
</div>
|
1966
|
+
|
1967
|
+
|
1968
|
+
</div>
|
1969
|
+
|
1970
|
+
<div class="section-method">
|
1971
|
+
<a name="//api/name/bagsContainingObjectWithKey:" title="bagsContainingObjectWithKey:"></a>
|
1972
|
+
<h3 class="subsubtitle method-title">bagsContainingObjectWithKey:</h3>
|
1973
|
+
|
1974
|
+
|
1975
|
+
|
1976
|
+
<div class="method-subsection brief-description">
|
1977
|
+
<p>Returns a new array containing the <a href="#//api/name/bags">bags</a> found in the document store which contain the object specified by the key.</p>
|
1978
|
+
</div>
|
1979
|
+
|
1980
|
+
|
1981
|
+
|
1982
|
+
<div class="method-subsection method-declaration"><code>- (NSArray *)bagsContainingObjectWithKey:(NSString *)<em>theKey</em></code></div>
|
1983
|
+
|
1984
|
+
|
1985
|
+
|
1986
|
+
<div class="method-subsection arguments-section parameters">
|
1987
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
1988
|
+
|
1989
|
+
<dl class="argument-def parameter-def">
|
1990
|
+
<dt><em>theKey</em></dt>
|
1991
|
+
<dd><p>the key of the object.</p></dd>
|
1992
|
+
</dl>
|
1993
|
+
|
1994
|
+
</div>
|
1995
|
+
|
1996
|
+
|
1997
|
+
|
1998
|
+
<div class="method-subsection return">
|
1999
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2000
|
+
<p>An array with the <a href="#//api/name/bags">bags</a> that contain the object matching the specified key.</p>
|
2001
|
+
</div>
|
2002
|
+
|
2003
|
+
|
2004
|
+
|
2005
|
+
|
2006
|
+
|
2007
|
+
<div class="method-subsection discussion-section">
|
2008
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2009
|
+
<p>Returns a new array containing the <a href="#//api/name/bags">bags</a> found in the document store which contain the object specified by the key.</p>
|
2010
|
+
</div>
|
2011
|
+
|
2012
|
+
|
2013
|
+
|
2014
|
+
|
2015
|
+
|
2016
|
+
<div class="method-subsection see-also-section">
|
2017
|
+
<h4 class="method-subtitle">See Also</h4>
|
2018
|
+
<ul>
|
2019
|
+
|
2020
|
+
<li><code><p>\link <a href="#//api/name/bags">– bags</a> – (NSArray *)<a href="#//api/name/bags">– bags</a> \endlink</p></code></li>
|
2021
|
+
|
2022
|
+
<li><code><p>\link <a href="#//api/name/bagsWithKeysInArray:">– bagsWithKeysInArray:</a> – (NSArray <em>)<a href="#//api/name/bagsWithKeysInArray:">– bagsWithKeysInArray:</a>(NSArray </em>)theKeys \endlink</p></code></li>
|
2023
|
+
|
2024
|
+
</ul>
|
2025
|
+
</div>
|
2026
|
+
|
2027
|
+
|
2028
|
+
|
2029
|
+
<div class="method-subsection declared-in-section">
|
2030
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2031
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2032
|
+
</div>
|
2033
|
+
|
2034
|
+
|
2035
|
+
</div>
|
2036
|
+
|
2037
|
+
<div class="section-method">
|
2038
|
+
<a name="//api/name/bagsWithKeysInArray:" title="bagsWithKeysInArray:"></a>
|
2039
|
+
<h3 class="subsubtitle method-title">bagsWithKeysInArray:</h3>
|
2040
|
+
|
2041
|
+
|
2042
|
+
|
2043
|
+
<div class="method-subsection brief-description">
|
2044
|
+
<p>Returns a new array containing the <a href="#//api/name/bags">bags</a> found in the document store matching the specified list of keys.</p>
|
2045
|
+
</div>
|
2046
|
+
|
2047
|
+
|
2048
|
+
|
2049
|
+
<div class="method-subsection method-declaration"><code>- (NSArray *)bagsWithKeysInArray:(NSArray *)<em>theKeys</em></code></div>
|
2050
|
+
|
2051
|
+
|
2052
|
+
|
2053
|
+
<div class="method-subsection arguments-section parameters">
|
2054
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2055
|
+
|
2056
|
+
<dl class="argument-def parameter-def">
|
2057
|
+
<dt><em>theKeys</em></dt>
|
2058
|
+
<dd><p>the list of bag keys.</p></dd>
|
2059
|
+
</dl>
|
2060
|
+
|
2061
|
+
</div>
|
2062
|
+
|
2063
|
+
|
2064
|
+
|
2065
|
+
<div class="method-subsection return">
|
2066
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2067
|
+
<p>An array with the <a href="#//api/name/bags">bags</a> that match the specified list of keys.</p>
|
2068
|
+
</div>
|
2069
|
+
|
2070
|
+
|
2071
|
+
|
2072
|
+
|
2073
|
+
|
2074
|
+
<div class="method-subsection discussion-section">
|
2075
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2076
|
+
<p>Returns a new array containing the <a href="#//api/name/bags">bags</a> found in the document store matching the specified list of keys.</p>
|
2077
|
+
</div>
|
2078
|
+
|
2079
|
+
|
2080
|
+
|
2081
|
+
|
2082
|
+
|
2083
|
+
<div class="method-subsection see-also-section">
|
2084
|
+
<h4 class="method-subtitle">See Also</h4>
|
2085
|
+
<ul>
|
2086
|
+
|
2087
|
+
<li><code><p>\link <a href="#//api/name/bags">– bags</a> – (NSArray *)<a href="#//api/name/bags">– bags</a> \endlink</p></code></li>
|
2088
|
+
|
2089
|
+
<li><code><p>\link <a href="#//api/name/bagsContainingObjectWithKey:">– bagsContainingObjectWithKey:</a> – (NSArray <em>)<a href="#//api/name/bagsContainingObjectWithKey:">– bagsContainingObjectWithKey:</a>(NSString </em>)theKey \endlink</p></code></li>
|
2090
|
+
|
2091
|
+
</ul>
|
2092
|
+
</div>
|
2093
|
+
|
2094
|
+
|
2095
|
+
|
2096
|
+
<div class="method-subsection declared-in-section">
|
2097
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2098
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2099
|
+
</div>
|
2100
|
+
|
2101
|
+
|
2102
|
+
</div>
|
2103
|
+
|
2104
|
+
<div class="section-method">
|
2105
|
+
<a name="//api/name/bagsWithName:" title="bagsWithName:"></a>
|
2106
|
+
<h3 class="subsubtitle method-title">bagsWithName:</h3>
|
2107
|
+
|
2108
|
+
|
2109
|
+
|
2110
|
+
<div class="method-subsection brief-description">
|
2111
|
+
<p>Retrieves all <a href="#//api/name/bags">bags</a> associated with the specified name.</p>
|
2112
|
+
</div>
|
2113
|
+
|
2114
|
+
|
2115
|
+
|
2116
|
+
<div class="method-subsection method-declaration"><code>- (NSArray *)bagsWithName:(NSString *)<em>theName</em></code></div>
|
2117
|
+
|
2118
|
+
|
2119
|
+
|
2120
|
+
<div class="method-subsection arguments-section parameters">
|
2121
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2122
|
+
|
2123
|
+
<dl class="argument-def parameter-def">
|
2124
|
+
<dt><em>theName</em></dt>
|
2125
|
+
<dd><p>the name of the bag.</p></dd>
|
2126
|
+
</dl>
|
2127
|
+
|
2128
|
+
</div>
|
2129
|
+
|
2130
|
+
|
2131
|
+
|
2132
|
+
<div class="method-subsection return">
|
2133
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2134
|
+
<p>The <a href="#//api/name/bags">bags</a> that match the specified name, an empty array otherwise.</p>
|
2135
|
+
</div>
|
2136
|
+
|
2137
|
+
|
2138
|
+
|
2139
|
+
|
2140
|
+
|
2141
|
+
<div class="method-subsection discussion-section">
|
2142
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2143
|
+
<p>Retrieves all <a href="#//api/name/bags">bags</a> associated with the specified name.</p>
|
2144
|
+
</div>
|
2145
|
+
|
2146
|
+
|
2147
|
+
|
2148
|
+
|
2149
|
+
|
2150
|
+
|
2151
|
+
|
2152
|
+
<div class="method-subsection declared-in-section">
|
2153
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2154
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2155
|
+
</div>
|
2156
|
+
|
2157
|
+
|
2158
|
+
</div>
|
2159
|
+
|
2160
|
+
<div class="section-method">
|
2161
|
+
<a name="//api/name/beginTransactionAndReturnError:" title="beginTransactionAndReturnError:"></a>
|
2162
|
+
<h3 class="subsubtitle method-title">beginTransactionAndReturnError:</h3>
|
2163
|
+
|
2164
|
+
|
2165
|
+
|
2166
|
+
<div class="method-subsection brief-description">
|
2167
|
+
<p>Start a transaction.</p>
|
2168
|
+
</div>
|
2169
|
+
|
2170
|
+
|
2171
|
+
|
2172
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)beginTransactionAndReturnError:(out NSError **)<em>outError</em></code></div>
|
2173
|
+
|
2174
|
+
|
2175
|
+
|
2176
|
+
<div class="method-subsection arguments-section parameters">
|
2177
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2178
|
+
|
2179
|
+
<dl class="argument-def parameter-def">
|
2180
|
+
<dt><em>outError</em></dt>
|
2181
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
2182
|
+
</dl>
|
2183
|
+
|
2184
|
+
</div>
|
2185
|
+
|
2186
|
+
|
2187
|
+
|
2188
|
+
<div class="method-subsection return">
|
2189
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2190
|
+
<p>YES upon success, NO otherwise.
|
2191
|
+
@attention Use this method instead of the ones provided by <a href="../Classes/NSFNanoEngine.html">NSFNanoEngine</a>.</p>
|
2192
|
+
</div>
|
2193
|
+
|
2194
|
+
|
2195
|
+
|
2196
|
+
|
2197
|
+
|
2198
|
+
<div class="method-subsection discussion-section">
|
2199
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2200
|
+
<p>Start a transaction.</p>
|
2201
|
+
</div>
|
2202
|
+
|
2203
|
+
|
2204
|
+
|
2205
|
+
|
2206
|
+
|
2207
|
+
<div class="method-subsection see-also-section">
|
2208
|
+
<h4 class="method-subtitle">See Also</h4>
|
2209
|
+
<ul>
|
2210
|
+
|
2211
|
+
<li><code><p>\link <a href="#//api/name/clearIndexesAndReturnError:">– clearIndexesAndReturnError:</a> – (BOOL)<a href="#//api/name/clearIndexesAndReturnError:">– clearIndexesAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
2212
|
+
|
2213
|
+
<li><code><p>\link <a href="#//api/name/commitTransactionAndReturnError:">– commitTransactionAndReturnError:</a> – (BOOL)<a href="#//api/name/commitTransactionAndReturnError:">– commitTransactionAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
2214
|
+
|
2215
|
+
<li><code><p>\link <a href="#//api/name/rollbackTransactionAndReturnError:">– rollbackTransactionAndReturnError:</a> – (BOOL)<a href="#//api/name/rollbackTransactionAndReturnError:">– rollbackTransactionAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
2216
|
+
|
2217
|
+
</ul>
|
2218
|
+
</div>
|
2219
|
+
|
2220
|
+
|
2221
|
+
|
2222
|
+
<div class="method-subsection declared-in-section">
|
2223
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2224
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2225
|
+
</div>
|
2226
|
+
|
2227
|
+
|
2228
|
+
</div>
|
2229
|
+
|
2230
|
+
<div class="section-method">
|
2231
|
+
<a name="//api/name/clearIndexesAndReturnError:" title="clearIndexesAndReturnError:"></a>
|
2232
|
+
<h3 class="subsubtitle method-title">clearIndexesAndReturnError:</h3>
|
2233
|
+
|
2234
|
+
|
2235
|
+
|
2236
|
+
<div class="method-subsection brief-description">
|
2237
|
+
<p>Remove all indexes from the document store.</p>
|
2238
|
+
</div>
|
2239
|
+
|
2240
|
+
|
2241
|
+
|
2242
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)clearIndexesAndReturnError:(out NSError **)<em>outError</em></code></div>
|
2243
|
+
|
2244
|
+
|
2245
|
+
|
2246
|
+
<div class="method-subsection arguments-section parameters">
|
2247
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2248
|
+
|
2249
|
+
<dl class="argument-def parameter-def">
|
2250
|
+
<dt><em>outError</em></dt>
|
2251
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
2252
|
+
</dl>
|
2253
|
+
|
2254
|
+
</div>
|
2255
|
+
|
2256
|
+
|
2257
|
+
|
2258
|
+
<div class="method-subsection return">
|
2259
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2260
|
+
<p>YES upon success, NO otherwise.</p>
|
2261
|
+
</div>
|
2262
|
+
|
2263
|
+
|
2264
|
+
|
2265
|
+
|
2266
|
+
|
2267
|
+
<div class="method-subsection discussion-section">
|
2268
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2269
|
+
<p>Remove all indexes from the document store.</p><div class="note"><p><strong>Note:</strong> Clearing the indexes could speed up document store manipulations (insertions, updates and deletions).</p></div>
|
2270
|
+
</div>
|
2271
|
+
|
2272
|
+
|
2273
|
+
|
2274
|
+
|
2275
|
+
|
2276
|
+
<div class="method-subsection see-also-section">
|
2277
|
+
<h4 class="method-subtitle">See Also</h4>
|
2278
|
+
<ul>
|
2279
|
+
|
2280
|
+
<li><code><p>\link <a href="#//api/name/rebuildIndexesAndReturnError:">– rebuildIndexesAndReturnError:</a> – (BOOL)<a href="#//api/name/rebuildIndexesAndReturnError:">– rebuildIndexesAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
2281
|
+
|
2282
|
+
</ul>
|
2283
|
+
</div>
|
2284
|
+
|
2285
|
+
|
2286
|
+
|
2287
|
+
<div class="method-subsection declared-in-section">
|
2288
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2289
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2290
|
+
</div>
|
2291
|
+
|
2292
|
+
|
2293
|
+
</div>
|
2294
|
+
|
2295
|
+
<div class="section-method">
|
2296
|
+
<a name="//api/name/closeWithError:" title="closeWithError:"></a>
|
2297
|
+
<h3 class="subsubtitle method-title">closeWithError:</h3>
|
2298
|
+
|
2299
|
+
|
2300
|
+
|
2301
|
+
<div class="method-subsection brief-description">
|
2302
|
+
<p>Closes the document store.</p>
|
2303
|
+
</div>
|
2304
|
+
|
2305
|
+
|
2306
|
+
|
2307
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)closeWithError:(out NSError **)<em>outError</em></code></div>
|
2308
|
+
|
2309
|
+
|
2310
|
+
|
2311
|
+
<div class="method-subsection arguments-section parameters">
|
2312
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2313
|
+
|
2314
|
+
<dl class="argument-def parameter-def">
|
2315
|
+
<dt><em>outError</em></dt>
|
2316
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
2317
|
+
</dl>
|
2318
|
+
|
2319
|
+
</div>
|
2320
|
+
|
2321
|
+
|
2322
|
+
|
2323
|
+
|
2324
|
+
|
2325
|
+
|
2326
|
+
|
2327
|
+
<div class="method-subsection discussion-section">
|
2328
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2329
|
+
<p>Closes the document store.</p>
|
2330
|
+
</div>
|
2331
|
+
|
2332
|
+
|
2333
|
+
|
2334
|
+
|
2335
|
+
|
2336
|
+
<div class="method-subsection see-also-section">
|
2337
|
+
<h4 class="method-subtitle">See Also</h4>
|
2338
|
+
<ul>
|
2339
|
+
|
2340
|
+
<li><code><p>\link <a href="#//api/name/isClosed">– isClosed</a> – (BOOL)<a href="#//api/name/isClosed">– isClosed</a> \endlink</p></code></li>
|
2341
|
+
|
2342
|
+
</ul>
|
2343
|
+
</div>
|
2344
|
+
|
2345
|
+
|
2346
|
+
|
2347
|
+
<div class="method-subsection declared-in-section">
|
2348
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2349
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2350
|
+
</div>
|
2351
|
+
|
2352
|
+
|
2353
|
+
</div>
|
2354
|
+
|
2355
|
+
<div class="section-method">
|
2356
|
+
<a name="//api/name/commitTransactionAndReturnError:" title="commitTransactionAndReturnError:"></a>
|
2357
|
+
<h3 class="subsubtitle method-title">commitTransactionAndReturnError:</h3>
|
2358
|
+
|
2359
|
+
|
2360
|
+
|
2361
|
+
<div class="method-subsection brief-description">
|
2362
|
+
<p>Commit a transaction.</p>
|
2363
|
+
</div>
|
2364
|
+
|
2365
|
+
|
2366
|
+
|
2367
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)commitTransactionAndReturnError:(out NSError **)<em>outError</em></code></div>
|
2368
|
+
|
2369
|
+
|
2370
|
+
|
2371
|
+
<div class="method-subsection arguments-section parameters">
|
2372
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2373
|
+
|
2374
|
+
<dl class="argument-def parameter-def">
|
2375
|
+
<dt><em>outError</em></dt>
|
2376
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
2377
|
+
</dl>
|
2378
|
+
|
2379
|
+
</div>
|
2380
|
+
|
2381
|
+
|
2382
|
+
|
2383
|
+
<div class="method-subsection return">
|
2384
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2385
|
+
<p>YES upon success, NO otherwise.
|
2386
|
+
@attention Use this method instead of the ones provided by <a href="../Classes/NSFNanoEngine.html">NSFNanoEngine</a>.</p>
|
2387
|
+
</div>
|
2388
|
+
|
2389
|
+
|
2390
|
+
|
2391
|
+
|
2392
|
+
|
2393
|
+
<div class="method-subsection discussion-section">
|
2394
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2395
|
+
<p>Commit a transaction.</p>
|
2396
|
+
</div>
|
2397
|
+
|
2398
|
+
|
2399
|
+
|
2400
|
+
|
2401
|
+
|
2402
|
+
<div class="method-subsection see-also-section">
|
2403
|
+
<h4 class="method-subtitle">See Also</h4>
|
2404
|
+
<ul>
|
2405
|
+
|
2406
|
+
<li><code><p>\link <a href="#//api/name/rebuildIndexesAndReturnError:">– rebuildIndexesAndReturnError:</a> – (BOOL)<a href="#//api/name/rebuildIndexesAndReturnError:">– rebuildIndexesAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
2407
|
+
|
2408
|
+
<li><code><p>\link <a href="#//api/name/beginTransactionAndReturnError:">– beginTransactionAndReturnError:</a> – (BOOL)<a href="#//api/name/beginTransactionAndReturnError:">– beginTransactionAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
2409
|
+
|
2410
|
+
<li><code><p>\link <a href="#//api/name/rollbackTransactionAndReturnError:">– rollbackTransactionAndReturnError:</a> – (BOOL)<a href="#//api/name/rollbackTransactionAndReturnError:">– rollbackTransactionAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
2411
|
+
|
2412
|
+
</ul>
|
2413
|
+
</div>
|
2414
|
+
|
2415
|
+
|
2416
|
+
|
2417
|
+
<div class="method-subsection declared-in-section">
|
2418
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2419
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2420
|
+
</div>
|
2421
|
+
|
2422
|
+
|
2423
|
+
</div>
|
2424
|
+
|
2425
|
+
<div class="section-method">
|
2426
|
+
<a name="//api/name/compactStoreAndReturnError:" title="compactStoreAndReturnError:"></a>
|
2427
|
+
<h3 class="subsubtitle method-title">compactStoreAndReturnError:</h3>
|
2428
|
+
|
2429
|
+
|
2430
|
+
|
2431
|
+
<div class="method-subsection brief-description">
|
2432
|
+
<p>Compact the database file size.</p>
|
2433
|
+
</div>
|
2434
|
+
|
2435
|
+
|
2436
|
+
|
2437
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)compactStoreAndReturnError:(out NSError **)<em>outError</em></code></div>
|
2438
|
+
|
2439
|
+
|
2440
|
+
|
2441
|
+
<div class="method-subsection arguments-section parameters">
|
2442
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2443
|
+
|
2444
|
+
<dl class="argument-def parameter-def">
|
2445
|
+
<dt><em>outError</em></dt>
|
2446
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
2447
|
+
</dl>
|
2448
|
+
|
2449
|
+
</div>
|
2450
|
+
|
2451
|
+
|
2452
|
+
|
2453
|
+
<div class="method-subsection return">
|
2454
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2455
|
+
<p>YES upon success, NO otherwise.</p>
|
2456
|
+
</div>
|
2457
|
+
|
2458
|
+
|
2459
|
+
|
2460
|
+
|
2461
|
+
|
2462
|
+
<div class="method-subsection discussion-section">
|
2463
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2464
|
+
<p>Compact the database file size.</p>
|
2465
|
+
</div>
|
2466
|
+
|
2467
|
+
|
2468
|
+
|
2469
|
+
|
2470
|
+
|
2471
|
+
|
2472
|
+
|
2473
|
+
<div class="method-subsection declared-in-section">
|
2474
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2475
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2476
|
+
</div>
|
2477
|
+
|
2478
|
+
|
2479
|
+
</div>
|
2480
|
+
|
2481
|
+
<div class="section-method">
|
2482
|
+
<a name="//api/name/countOfObjectsOfClassNamed:" title="countOfObjectsOfClassNamed:"></a>
|
2483
|
+
<h3 class="subsubtitle method-title">countOfObjectsOfClassNamed:</h3>
|
2484
|
+
|
2485
|
+
|
2486
|
+
|
2487
|
+
<div class="method-subsection brief-description">
|
2488
|
+
<p>Returns the number of objects in the document store which match a specific class name.</p>
|
2489
|
+
</div>
|
2490
|
+
|
2491
|
+
|
2492
|
+
|
2493
|
+
<div class="method-subsection method-declaration"><code>- (long long)countOfObjectsOfClassNamed:(NSString *)<em>theClassName</em></code></div>
|
2494
|
+
|
2495
|
+
|
2496
|
+
|
2497
|
+
<div class="method-subsection arguments-section parameters">
|
2498
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2499
|
+
|
2500
|
+
<dl class="argument-def parameter-def">
|
2501
|
+
<dt><em>theClassName</em></dt>
|
2502
|
+
<dd><p>the name of the class that will be used for searching. Cannot be NULL.</p></dd>
|
2503
|
+
</dl>
|
2504
|
+
|
2505
|
+
</div>
|
2506
|
+
|
2507
|
+
|
2508
|
+
|
2509
|
+
<div class="method-subsection return">
|
2510
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2511
|
+
<p>The count of objects of the specified class name.</p>
|
2512
|
+
</div>
|
2513
|
+
|
2514
|
+
|
2515
|
+
|
2516
|
+
|
2517
|
+
|
2518
|
+
<div class="method-subsection discussion-section">
|
2519
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2520
|
+
<p>Returns the number of objects in the document store which match a specific class name.</p><div class="note"><p><strong>Note:</strong> The classes can be <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a>, <a href="../Classes/NSFNanoBag.html">NSFNanoBag</a> or any \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object.
|
2521
|
+
@throws NSFUnexpectedParameterException is thrown if the class name is nil or empty.</p></div>
|
2522
|
+
</div>
|
2523
|
+
|
2524
|
+
|
2525
|
+
|
2526
|
+
|
2527
|
+
|
2528
|
+
|
2529
|
+
|
2530
|
+
<div class="method-subsection declared-in-section">
|
2531
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2532
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2533
|
+
</div>
|
2534
|
+
|
2535
|
+
|
2536
|
+
</div>
|
2537
|
+
|
2538
|
+
<div class="section-method">
|
2539
|
+
<a name="//api/name/description" title="description"></a>
|
2540
|
+
<h3 class="subsubtitle method-title">description</h3>
|
2541
|
+
|
2542
|
+
|
2543
|
+
|
2544
|
+
<div class="method-subsection brief-description">
|
2545
|
+
<p>Returns a string representation of the store.</p>
|
2546
|
+
</div>
|
2547
|
+
|
2548
|
+
|
2549
|
+
|
2550
|
+
<div class="method-subsection method-declaration"><code>- (NSString *)description</code></div>
|
2551
|
+
|
2552
|
+
|
2553
|
+
|
2554
|
+
|
2555
|
+
|
2556
|
+
|
2557
|
+
|
2558
|
+
|
2559
|
+
|
2560
|
+
<div class="method-subsection discussion-section">
|
2561
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2562
|
+
<p>Returns a string representation of the store.</p><div class="note"><p><strong>Note:</strong> Check properties <a href="#//api/name/nanoEngineProcessingMode">nanoEngineProcessingMode</a> and <a href="#//api/name/saveInterval">saveInterval</a> to find out the current state of the object.</p></div>
|
2563
|
+
</div>
|
2564
|
+
|
2565
|
+
|
2566
|
+
|
2567
|
+
|
2568
|
+
|
2569
|
+
|
2570
|
+
|
2571
|
+
<div class="method-subsection declared-in-section">
|
2572
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2573
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2574
|
+
</div>
|
2575
|
+
|
2576
|
+
|
2577
|
+
</div>
|
2578
|
+
|
2579
|
+
<div class="section-method">
|
2580
|
+
<a name="//api/name/dictionaryDescription" title="dictionaryDescription"></a>
|
2581
|
+
<h3 class="subsubtitle method-title">dictionaryDescription</h3>
|
2582
|
+
|
2583
|
+
|
2584
|
+
|
2585
|
+
<div class="method-subsection method-declaration"><code>- (NSFOrderedDictionary *)dictionaryDescription</code></div>
|
2586
|
+
|
2587
|
+
|
2588
|
+
</div>
|
2589
|
+
|
2590
|
+
<div class="section-method">
|
2591
|
+
<a name="//api/name/discardUnsavedChanges" title="discardUnsavedChanges"></a>
|
2592
|
+
<h3 class="subsubtitle method-title">discardUnsavedChanges</h3>
|
2593
|
+
|
2594
|
+
|
2595
|
+
|
2596
|
+
<div class="method-subsection brief-description">
|
2597
|
+
<p>Discards the uncommitted changes that were added to the document store.</p>
|
2598
|
+
</div>
|
2599
|
+
|
2600
|
+
|
2601
|
+
|
2602
|
+
<div class="method-subsection method-declaration"><code>- (void)discardUnsavedChanges</code></div>
|
2603
|
+
|
2604
|
+
|
2605
|
+
|
2606
|
+
|
2607
|
+
|
2608
|
+
|
2609
|
+
|
2610
|
+
|
2611
|
+
|
2612
|
+
<div class="method-subsection discussion-section">
|
2613
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2614
|
+
<p>Discards the uncommitted changes that were added to the document store.</p>
|
2615
|
+
</div>
|
2616
|
+
|
2617
|
+
|
2618
|
+
|
2619
|
+
|
2620
|
+
|
2621
|
+
<div class="method-subsection see-also-section">
|
2622
|
+
<h4 class="method-subtitle">See Also</h4>
|
2623
|
+
<ul>
|
2624
|
+
|
2625
|
+
<li><code><p>\link <a href="#//api/name/saveStoreAndReturnError:">– saveStoreAndReturnError:</a> – (BOOL)<a href="#//api/name/saveStoreAndReturnError:">– saveStoreAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
2626
|
+
|
2627
|
+
</ul>
|
2628
|
+
</div>
|
2629
|
+
|
2630
|
+
|
2631
|
+
|
2632
|
+
<div class="method-subsection declared-in-section">
|
2633
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2634
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2635
|
+
</div>
|
2636
|
+
|
2637
|
+
|
2638
|
+
</div>
|
2639
|
+
|
2640
|
+
<div class="section-method">
|
2641
|
+
<a name="//api/name/filePath" title="filePath"></a>
|
2642
|
+
<h3 class="subsubtitle method-title">filePath</h3>
|
2643
|
+
|
2644
|
+
|
2645
|
+
|
2646
|
+
<div class="method-subsection brief-description">
|
2647
|
+
<p>Location where the document store is found.</p>
|
2648
|
+
</div>
|
2649
|
+
|
2650
|
+
|
2651
|
+
|
2652
|
+
<div class="method-subsection method-declaration"><code>- (NSString *)filePath</code></div>
|
2653
|
+
|
2654
|
+
|
2655
|
+
|
2656
|
+
|
2657
|
+
|
2658
|
+
|
2659
|
+
|
2660
|
+
|
2661
|
+
|
2662
|
+
<div class="method-subsection discussion-section">
|
2663
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2664
|
+
<p>Location where the document store is found.</p><div class="note"><p><strong>Note:</strong> If the document store is file-based, its path will be returned. If it’s a memory-backed document store, \link :Globals::NSFMemoryDatabase NSFMemoryDatabase \endlink will be returned instead.</p></div>
|
2665
|
+
</div>
|
2666
|
+
|
2667
|
+
|
2668
|
+
|
2669
|
+
|
2670
|
+
|
2671
|
+
|
2672
|
+
|
2673
|
+
<div class="method-subsection declared-in-section">
|
2674
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2675
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2676
|
+
</div>
|
2677
|
+
|
2678
|
+
|
2679
|
+
</div>
|
2680
|
+
|
2681
|
+
<div class="section-method">
|
2682
|
+
<a name="//api/name/initStoreWithType:path:" title="initStoreWithType:path:"></a>
|
2683
|
+
<h3 class="subsubtitle method-title">initStoreWithType:path:</h3>
|
2684
|
+
|
2685
|
+
|
2686
|
+
|
2687
|
+
<div class="method-subsection brief-description">
|
2688
|
+
<p>Initializes a newly allocated document store of a specific type at a given file path.</p>
|
2689
|
+
</div>
|
2690
|
+
|
2691
|
+
|
2692
|
+
|
2693
|
+
<div class="method-subsection method-declaration"><code>- (id)initStoreWithType:(NSFNanoStoreType)<em>theType</em> path:(NSString *)<em>thePath</em></code></div>
|
2694
|
+
|
2695
|
+
|
2696
|
+
|
2697
|
+
<div class="method-subsection arguments-section parameters">
|
2698
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2699
|
+
|
2700
|
+
<dl class="argument-def parameter-def">
|
2701
|
+
<dt><em>theType</em></dt>
|
2702
|
+
<dd><p>the type of document store that will be created.</p></dd>
|
2703
|
+
</dl>
|
2704
|
+
|
2705
|
+
<dl class="argument-def parameter-def">
|
2706
|
+
<dt><em>thePath</em></dt>
|
2707
|
+
<dd><p>the file path where the document store will be created. Can be nil (see note for additional info).</p></dd>
|
2708
|
+
</dl>
|
2709
|
+
|
2710
|
+
</div>
|
2711
|
+
|
2712
|
+
|
2713
|
+
|
2714
|
+
<div class="method-subsection return">
|
2715
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2716
|
+
<p>A document store upon success, nil otherwise.
|
2717
|
+
@note
|
2718
|
+
To manipulate the document store, you must first open it. If you don’t need to configure settings for the document store, you can use
|
2719
|
+
\link <a href="#//api/name/createAndOpenStoreWithType:path:error:">createAndOpenStoreWithType:path:error:</a> + (NSFNanoStore <em>)createAndOpenStoreWithType:(NSFNanoStoreType)theType path:(NSString </em>)thePath error:(out NSError **)outError \endlink instead.
|
2720
|
+
@warning
|
2721
|
+
The path is only meaningful for document stores of type @ref NSFPersistentStoreType “NSFPersistentStoreType”. It must not be nil.
|
2722
|
+
@throws NSFUnexpectedParameterException is thrown if the file path is nil and the type is set to @ref NSFPersistentStoreType “NSFPersistentStoreType”.</p>
|
2723
|
+
</div>
|
2724
|
+
|
2725
|
+
|
2726
|
+
|
2727
|
+
|
2728
|
+
|
2729
|
+
<div class="method-subsection discussion-section">
|
2730
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2731
|
+
<p>Initializes a newly allocated document store of a specific type at a given file path.</p>
|
2732
|
+
</div>
|
2733
|
+
|
2734
|
+
|
2735
|
+
|
2736
|
+
|
2737
|
+
|
2738
|
+
<div class="method-subsection see-also-section">
|
2739
|
+
<h4 class="method-subtitle">See Also</h4>
|
2740
|
+
<ul>
|
2741
|
+
|
2742
|
+
<li><code><p>\link <a href="#//api/name/openWithError:">– openWithError:</a> – (BOOL)<a href="#//api/name/openWithError:">– openWithError:</a>(out NSError **)outError \endlink</p></code></li>
|
2743
|
+
|
2744
|
+
<li><code><p>\link <a href="#//api/name/createAndOpenStoreWithType:path:error:">+ createAndOpenStoreWithType:path:error:</a> + (NSFNanoStore <em>)createAndOpenStoreWithType:(NSFNanoStoreType)theType path:(NSString </em>)thePath error:(out NSError **)outError \endlink</p></code></li>
|
2745
|
+
|
2746
|
+
</ul>
|
2747
|
+
</div>
|
2748
|
+
|
2749
|
+
|
2750
|
+
|
2751
|
+
<div class="method-subsection declared-in-section">
|
2752
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2753
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2754
|
+
</div>
|
2755
|
+
|
2756
|
+
|
2757
|
+
</div>
|
2758
|
+
|
2759
|
+
<div class="section-method">
|
2760
|
+
<a name="//api/name/isClosed" title="isClosed"></a>
|
2761
|
+
<h3 class="subsubtitle method-title">isClosed</h3>
|
2762
|
+
|
2763
|
+
|
2764
|
+
|
2765
|
+
<div class="method-subsection brief-description">
|
2766
|
+
<p>Checks whether the document store is closed or open.</p>
|
2767
|
+
</div>
|
2768
|
+
|
2769
|
+
|
2770
|
+
|
2771
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)isClosed</code></div>
|
2772
|
+
|
2773
|
+
|
2774
|
+
|
2775
|
+
|
2776
|
+
|
2777
|
+
|
2778
|
+
|
2779
|
+
|
2780
|
+
|
2781
|
+
<div class="method-subsection discussion-section">
|
2782
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2783
|
+
<p>Checks whether the document store is closed or open.</p>
|
2784
|
+
</div>
|
2785
|
+
|
2786
|
+
|
2787
|
+
|
2788
|
+
|
2789
|
+
|
2790
|
+
|
2791
|
+
|
2792
|
+
<div class="method-subsection declared-in-section">
|
2793
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2794
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2795
|
+
</div>
|
2796
|
+
|
2797
|
+
|
2798
|
+
</div>
|
2799
|
+
|
2800
|
+
<div class="section-method">
|
2801
|
+
<a name="//api/name/objectsOfClassNamed:" title="objectsOfClassNamed:"></a>
|
2802
|
+
<h3 class="subsubtitle method-title">objectsOfClassNamed:</h3>
|
2803
|
+
|
2804
|
+
|
2805
|
+
|
2806
|
+
<div class="method-subsection brief-description">
|
2807
|
+
<p>Returns an array containing the objects in the document store which match a specific class name.</p>
|
2808
|
+
</div>
|
2809
|
+
|
2810
|
+
|
2811
|
+
|
2812
|
+
<div class="method-subsection method-declaration"><code>- (NSArray *)objectsOfClassNamed:(NSString *)<em>theClassName</em></code></div>
|
2813
|
+
|
2814
|
+
|
2815
|
+
|
2816
|
+
<div class="method-subsection arguments-section parameters">
|
2817
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2818
|
+
|
2819
|
+
<dl class="argument-def parameter-def">
|
2820
|
+
<dt><em>theClassName</em></dt>
|
2821
|
+
<dd><p>the name of the class that will be used for searching. Cannot be NULL.</p></dd>
|
2822
|
+
</dl>
|
2823
|
+
|
2824
|
+
</div>
|
2825
|
+
|
2826
|
+
|
2827
|
+
|
2828
|
+
<div class="method-subsection return">
|
2829
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2830
|
+
<p>An array of objects of the specified class name.</p>
|
2831
|
+
</div>
|
2832
|
+
|
2833
|
+
|
2834
|
+
|
2835
|
+
|
2836
|
+
|
2837
|
+
<div class="method-subsection discussion-section">
|
2838
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2839
|
+
<p>Returns an array containing the objects in the document store which match a specific class name.</p><div class="note"><p><strong>Note:</strong> The classes can be <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a>, <a href="../Classes/NSFNanoBag.html">NSFNanoBag</a> or any \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object.
|
2840
|
+
@throws NSFUnexpectedParameterException is thrown if the class name is nil or empty.</p></div>
|
2841
|
+
</div>
|
2842
|
+
|
2843
|
+
|
2844
|
+
|
2845
|
+
|
2846
|
+
|
2847
|
+
|
2848
|
+
|
2849
|
+
<div class="method-subsection declared-in-section">
|
2850
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2851
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2852
|
+
</div>
|
2853
|
+
|
2854
|
+
|
2855
|
+
</div>
|
2856
|
+
|
2857
|
+
<div class="section-method">
|
2858
|
+
<a name="//api/name/objectsOfClassNamed:usingSortDescriptors:" title="objectsOfClassNamed:usingSortDescriptors:"></a>
|
2859
|
+
<h3 class="subsubtitle method-title">objectsOfClassNamed:usingSortDescriptors:</h3>
|
2860
|
+
|
2861
|
+
|
2862
|
+
|
2863
|
+
<div class="method-subsection brief-description">
|
2864
|
+
<p>Returns a sorted array containing the objects in the document store which match a specific class name.</p>
|
2865
|
+
</div>
|
2866
|
+
|
2867
|
+
|
2868
|
+
|
2869
|
+
<div class="method-subsection method-declaration"><code>- (NSArray *)objectsOfClassNamed:(NSString *)<em>theClassName</em> usingSortDescriptors:(NSArray *)<em>theSortDescriptors</em></code></div>
|
2870
|
+
|
2871
|
+
|
2872
|
+
|
2873
|
+
<div class="method-subsection arguments-section parameters">
|
2874
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2875
|
+
|
2876
|
+
<dl class="argument-def parameter-def">
|
2877
|
+
<dt><em>theClassName</em></dt>
|
2878
|
+
<dd><p>the name of the class that will be used for searching. Cannot be NULL.</p></dd>
|
2879
|
+
</dl>
|
2880
|
+
|
2881
|
+
<dl class="argument-def parameter-def">
|
2882
|
+
<dt><em>theSortDescriptors</em></dt>
|
2883
|
+
<dd><p>the array of descriptors used to sort the array. May be NULL.</p></dd>
|
2884
|
+
</dl>
|
2885
|
+
|
2886
|
+
</div>
|
2887
|
+
|
2888
|
+
|
2889
|
+
|
2890
|
+
<div class="method-subsection return">
|
2891
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2892
|
+
<p>An array of objects of the specified class name sorted if the sort descriptor was specified.</p>
|
2893
|
+
</div>
|
2894
|
+
|
2895
|
+
|
2896
|
+
|
2897
|
+
|
2898
|
+
|
2899
|
+
<div class="method-subsection discussion-section">
|
2900
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2901
|
+
<p>Returns a sorted array containing the objects in the document store which match a specific class name.</p><div class="note"><p><strong>Note:</strong> The classes can be <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a>, <a href="../Classes/NSFNanoBag.html">NSFNanoBag</a> or any \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object.
|
2902
|
+
@throws NSFUnexpectedParameterException is thrown if the class name is nil or empty.</p></div>
|
2903
|
+
</div>
|
2904
|
+
|
2905
|
+
|
2906
|
+
|
2907
|
+
|
2908
|
+
|
2909
|
+
|
2910
|
+
|
2911
|
+
<div class="method-subsection declared-in-section">
|
2912
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2913
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2914
|
+
</div>
|
2915
|
+
|
2916
|
+
|
2917
|
+
</div>
|
2918
|
+
|
2919
|
+
<div class="section-method">
|
2920
|
+
<a name="//api/name/objectsWithKeysInArray:" title="objectsWithKeysInArray:"></a>
|
2921
|
+
<h3 class="subsubtitle method-title">objectsWithKeysInArray:</h3>
|
2922
|
+
|
2923
|
+
|
2924
|
+
|
2925
|
+
<div class="method-subsection brief-description">
|
2926
|
+
<p>Returns a new array containing the objects found in the document store matching the specified list of keys.</p>
|
2927
|
+
</div>
|
2928
|
+
|
2929
|
+
|
2930
|
+
|
2931
|
+
<div class="method-subsection method-declaration"><code>- (NSArray *)objectsWithKeysInArray:(NSArray *)<em>theKeys</em></code></div>
|
2932
|
+
|
2933
|
+
|
2934
|
+
|
2935
|
+
<div class="method-subsection arguments-section parameters">
|
2936
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2937
|
+
|
2938
|
+
<dl class="argument-def parameter-def">
|
2939
|
+
<dt><em>theKeys</em></dt>
|
2940
|
+
<dd><p>the list of \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object keys.</p></dd>
|
2941
|
+
</dl>
|
2942
|
+
|
2943
|
+
</div>
|
2944
|
+
|
2945
|
+
|
2946
|
+
|
2947
|
+
<div class="method-subsection return">
|
2948
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
2949
|
+
<p>An array with the objects matching the specified list of keys.</p>
|
2950
|
+
</div>
|
2951
|
+
|
2952
|
+
|
2953
|
+
|
2954
|
+
|
2955
|
+
|
2956
|
+
<div class="method-subsection discussion-section">
|
2957
|
+
<h4 class="method-subtitle">Discussion</h4>
|
2958
|
+
<p>Returns a new array containing the objects found in the document store matching the specified list of keys.</p><div class="note"><p><strong>Note:</strong> The keys can belong to any object class: <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a>, <a href="../Classes/NSFNanoBag.html">NSFNanoBag</a> or any \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object.</p></div>
|
2959
|
+
</div>
|
2960
|
+
|
2961
|
+
|
2962
|
+
|
2963
|
+
|
2964
|
+
|
2965
|
+
|
2966
|
+
|
2967
|
+
<div class="method-subsection declared-in-section">
|
2968
|
+
<h4 class="method-subtitle">Declared In</h4>
|
2969
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
2970
|
+
</div>
|
2971
|
+
|
2972
|
+
|
2973
|
+
</div>
|
2974
|
+
|
2975
|
+
<div class="section-method">
|
2976
|
+
<a name="//api/name/openWithError:" title="openWithError:"></a>
|
2977
|
+
<h3 class="subsubtitle method-title">openWithError:</h3>
|
2978
|
+
|
2979
|
+
|
2980
|
+
|
2981
|
+
<div class="method-subsection brief-description">
|
2982
|
+
<p>Opens the document store, making it ready for manipulation.</p>
|
2983
|
+
</div>
|
2984
|
+
|
2985
|
+
|
2986
|
+
|
2987
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)openWithError:(out NSError **)<em>outError</em></code></div>
|
2988
|
+
|
2989
|
+
|
2990
|
+
|
2991
|
+
<div class="method-subsection arguments-section parameters">
|
2992
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
2993
|
+
|
2994
|
+
<dl class="argument-def parameter-def">
|
2995
|
+
<dt><em>outError</em></dt>
|
2996
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
2997
|
+
</dl>
|
2998
|
+
|
2999
|
+
</div>
|
3000
|
+
|
3001
|
+
|
3002
|
+
|
3003
|
+
<div class="method-subsection return">
|
3004
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
3005
|
+
<p>YES upon success, NO otherwise.</p>
|
3006
|
+
</div>
|
3007
|
+
|
3008
|
+
|
3009
|
+
|
3010
|
+
|
3011
|
+
|
3012
|
+
<div class="method-subsection discussion-section">
|
3013
|
+
<h4 class="method-subtitle">Discussion</h4>
|
3014
|
+
<p>Opens the document store, making it ready for manipulation.</p><div class="note"><p><strong>Note:</strong> The document store needs to be opened only after opening a document store via
|
3015
|
+
\link <a href="#//api/name/createStoreWithType:path:">createStoreWithType:path:</a> + (NSFNanoStore <em>)createStoreWithType:(NSFNanoStoreType)theType path:(NSString </em>)thePath\endlink.
|
3016
|
+
The property <a href="#//api/name/nanoEngineProcessingMode">nanoEngineProcessingMode</a> allows to set the type of engine mode used by NanoStore to process data in the document store. Set this property before you open the document store.</p></div>
|
3017
|
+
</div>
|
3018
|
+
|
3019
|
+
|
3020
|
+
|
3021
|
+
|
3022
|
+
|
3023
|
+
<div class="method-subsection see-also-section">
|
3024
|
+
<h4 class="method-subtitle">See Also</h4>
|
3025
|
+
<ul>
|
3026
|
+
|
3027
|
+
<li><code><p>\link <a href="#//api/name/createStoreWithType:path:">+ createStoreWithType:path:</a> + (NSFNanoStore <em>)createStoreWithType:(NSFNanoStoreType)theType path:(NSString </em>)thePath \endlink</p></code></li>
|
3028
|
+
|
3029
|
+
</ul>
|
3030
|
+
</div>
|
3031
|
+
|
3032
|
+
|
3033
|
+
|
3034
|
+
<div class="method-subsection declared-in-section">
|
3035
|
+
<h4 class="method-subtitle">Declared In</h4>
|
3036
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
3037
|
+
</div>
|
3038
|
+
|
3039
|
+
|
3040
|
+
</div>
|
3041
|
+
|
3042
|
+
<div class="section-method">
|
3043
|
+
<a name="//api/name/rebuildIndexesAndReturnError:" title="rebuildIndexesAndReturnError:"></a>
|
3044
|
+
<h3 class="subsubtitle method-title">rebuildIndexesAndReturnError:</h3>
|
3045
|
+
|
3046
|
+
|
3047
|
+
|
3048
|
+
<div class="method-subsection brief-description">
|
3049
|
+
<p>Recreate all indexes from the document store.</p>
|
3050
|
+
</div>
|
3051
|
+
|
3052
|
+
|
3053
|
+
|
3054
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)rebuildIndexesAndReturnError:(out NSError **)<em>outError</em></code></div>
|
3055
|
+
|
3056
|
+
|
3057
|
+
|
3058
|
+
<div class="method-subsection arguments-section parameters">
|
3059
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
3060
|
+
|
3061
|
+
<dl class="argument-def parameter-def">
|
3062
|
+
<dt><em>outError</em></dt>
|
3063
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
3064
|
+
</dl>
|
3065
|
+
|
3066
|
+
</div>
|
3067
|
+
|
3068
|
+
|
3069
|
+
|
3070
|
+
<div class="method-subsection return">
|
3071
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
3072
|
+
<p>YES upon success, NO otherwise.</p>
|
3073
|
+
</div>
|
3074
|
+
|
3075
|
+
|
3076
|
+
|
3077
|
+
|
3078
|
+
|
3079
|
+
<div class="method-subsection discussion-section">
|
3080
|
+
<h4 class="method-subtitle">Discussion</h4>
|
3081
|
+
<p>Recreate all indexes from the document store.</p><div class="note"><p><strong>Note:</strong> Rebuilding the indexes recreates the indexes previously removed with \link <a href="#//api/name/clearIndexesAndReturnError:">clearIndexesAndReturnError:</a> – (BOOL)<a href="#//api/name/clearIndexesAndReturnError:">clearIndexesAndReturnError:</a>(out NSError **)outError \endlink.</p></div>
|
3082
|
+
</div>
|
3083
|
+
|
3084
|
+
|
3085
|
+
|
3086
|
+
|
3087
|
+
|
3088
|
+
<div class="method-subsection see-also-section">
|
3089
|
+
<h4 class="method-subtitle">See Also</h4>
|
3090
|
+
<ul>
|
3091
|
+
|
3092
|
+
<li><code><p>\link <a href="#//api/name/clearIndexesAndReturnError:">– clearIndexesAndReturnError:</a> – (BOOL)<a href="#//api/name/clearIndexesAndReturnError:">– clearIndexesAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
3093
|
+
|
3094
|
+
</ul>
|
3095
|
+
</div>
|
3096
|
+
|
3097
|
+
|
3098
|
+
|
3099
|
+
<div class="method-subsection declared-in-section">
|
3100
|
+
<h4 class="method-subtitle">Declared In</h4>
|
3101
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
3102
|
+
</div>
|
3103
|
+
|
3104
|
+
|
3105
|
+
</div>
|
3106
|
+
|
3107
|
+
<div class="section-method">
|
3108
|
+
<a name="//api/name/removeAllObjectsFromStoreAndReturnError:" title="removeAllObjectsFromStoreAndReturnError:"></a>
|
3109
|
+
<h3 class="subsubtitle method-title">removeAllObjectsFromStoreAndReturnError:</h3>
|
3110
|
+
|
3111
|
+
|
3112
|
+
|
3113
|
+
<div class="method-subsection brief-description">
|
3114
|
+
<p>Removes all objects from the document store.</p>
|
3115
|
+
</div>
|
3116
|
+
|
3117
|
+
|
3118
|
+
|
3119
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)removeAllObjectsFromStoreAndReturnError:(out NSError **)<em>outError</em></code></div>
|
3120
|
+
|
3121
|
+
|
3122
|
+
|
3123
|
+
<div class="method-subsection arguments-section parameters">
|
3124
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
3125
|
+
|
3126
|
+
<dl class="argument-def parameter-def">
|
3127
|
+
<dt><em>outError</em></dt>
|
3128
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
3129
|
+
</dl>
|
3130
|
+
|
3131
|
+
</div>
|
3132
|
+
|
3133
|
+
|
3134
|
+
|
3135
|
+
<div class="method-subsection return">
|
3136
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
3137
|
+
<p>YES upon success, NO otherwise.</p>
|
3138
|
+
</div>
|
3139
|
+
|
3140
|
+
|
3141
|
+
|
3142
|
+
|
3143
|
+
|
3144
|
+
<div class="method-subsection discussion-section">
|
3145
|
+
<h4 class="method-subtitle">Discussion</h4>
|
3146
|
+
<p>Removes all objects from the document store.</p><div class="note"><p><strong>Note:</strong> Please note that the unoccupied space will not be reclaimed, so after clearing the cache use \link <a href="#//api/name/compactStoreAndReturnError:">compactStoreAndReturnError:</a> – (BOOL)<a href="#//api/name/compactStoreAndReturnError:">compactStoreAndReturnError:</a>(out NSError **)outError \endlink
|
3147
|
+
if you want to decrease the database file size.</p></div>
|
3148
|
+
</div>
|
3149
|
+
|
3150
|
+
|
3151
|
+
|
3152
|
+
|
3153
|
+
|
3154
|
+
<div class="method-subsection see-also-section">
|
3155
|
+
<h4 class="method-subtitle">See Also</h4>
|
3156
|
+
<ul>
|
3157
|
+
|
3158
|
+
<li><code><p>\link <a href="#//api/name/removeObject:error:">– removeObject:error:</a> – (BOOL)removeObject:(id <<a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>>)theObject error:(out NSError **)outError \endlink</p></code></li>
|
3159
|
+
|
3160
|
+
<li><code><p>\link <a href="#//api/name/removeObjectsWithKeysInArray:error:">– removeObjectsWithKeysInArray:error:</a> – (BOOL)removeObjectsWithKeysInArray:(NSArray *)theKeys error:(out NSError **)outError \endlink</p></code></li>
|
3161
|
+
|
3162
|
+
<li><code><p>\link <a href="#//api/name/removeObjectsInArray:error:">– removeObjectsInArray:error:</a> – (BOOL)removeObjectsInArray:(NSArray *)theObjects error:(out NSError **)outError \endlink</p></code></li>
|
3163
|
+
|
3164
|
+
</ul>
|
3165
|
+
</div>
|
3166
|
+
|
3167
|
+
|
3168
|
+
|
3169
|
+
<div class="method-subsection declared-in-section">
|
3170
|
+
<h4 class="method-subtitle">Declared In</h4>
|
3171
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
3172
|
+
</div>
|
3173
|
+
|
3174
|
+
|
3175
|
+
</div>
|
3176
|
+
|
3177
|
+
<div class="section-method">
|
3178
|
+
<a name="//api/name/removeObject:error:" title="removeObject:error:"></a>
|
3179
|
+
<h3 class="subsubtitle method-title">removeObject:error:</h3>
|
3180
|
+
|
3181
|
+
|
3182
|
+
|
3183
|
+
<div class="method-subsection brief-description">
|
3184
|
+
<p>Removes an object from the document store.</p>
|
3185
|
+
</div>
|
3186
|
+
|
3187
|
+
|
3188
|
+
|
3189
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)removeObject:(id<NSFNanoObjectProtocol>)<em>theObject</em> error:(out NSError **)<em>outError</em></code></div>
|
3190
|
+
|
3191
|
+
|
3192
|
+
|
3193
|
+
<div class="method-subsection arguments-section parameters">
|
3194
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
3195
|
+
|
3196
|
+
<dl class="argument-def parameter-def">
|
3197
|
+
<dt><em>theObject</em></dt>
|
3198
|
+
<dd><p>the object to be removed from the document store.</p></dd>
|
3199
|
+
</dl>
|
3200
|
+
|
3201
|
+
<dl class="argument-def parameter-def">
|
3202
|
+
<dt><em>outError</em></dt>
|
3203
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
3204
|
+
</dl>
|
3205
|
+
|
3206
|
+
</div>
|
3207
|
+
|
3208
|
+
|
3209
|
+
|
3210
|
+
<div class="method-subsection return">
|
3211
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
3212
|
+
<p>YES upon success, NO otherwise.</p>
|
3213
|
+
</div>
|
3214
|
+
|
3215
|
+
|
3216
|
+
|
3217
|
+
|
3218
|
+
|
3219
|
+
<div class="method-subsection discussion-section">
|
3220
|
+
<h4 class="method-subtitle">Discussion</h4>
|
3221
|
+
<p>Removes an object from the document store.</p><div class="warning"><p><strong>Warning:</strong> The objects of the array must be \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant.</p></div>
|
3222
|
+
</div>
|
3223
|
+
|
3224
|
+
|
3225
|
+
|
3226
|
+
|
3227
|
+
|
3228
|
+
<div class="method-subsection see-also-section">
|
3229
|
+
<h4 class="method-subtitle">See Also</h4>
|
3230
|
+
<ul>
|
3231
|
+
|
3232
|
+
<li><code><p>\link <a href="#//api/name/removeObjectsWithKeysInArray:error:">– removeObjectsWithKeysInArray:error:</a> – (BOOL)removeObjectsWithKeysInArray:(NSArray *)theKeys error:(out NSError **)outError \endlink</p></code></li>
|
3233
|
+
|
3234
|
+
<li><code><p>\link <a href="#//api/name/removeObjectsInArray:error:">– removeObjectsInArray:error:</a> – (BOOL)removeObjectsInArray:(NSArray *)theObjects error:(out NSError **)outError \endlink</p></code></li>
|
3235
|
+
|
3236
|
+
<li><code><p>\link <a href="#//api/name/removeAllObjectsFromStoreAndReturnError:">– removeAllObjectsFromStoreAndReturnError:</a> – (BOOL)<a href="#//api/name/removeAllObjectsFromStoreAndReturnError:">– removeAllObjectsFromStoreAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
3237
|
+
|
3238
|
+
</ul>
|
3239
|
+
</div>
|
3240
|
+
|
3241
|
+
|
3242
|
+
|
3243
|
+
<div class="method-subsection declared-in-section">
|
3244
|
+
<h4 class="method-subtitle">Declared In</h4>
|
3245
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
3246
|
+
</div>
|
3247
|
+
|
3248
|
+
|
3249
|
+
</div>
|
3250
|
+
|
3251
|
+
<div class="section-method">
|
3252
|
+
<a name="//api/name/removeObjectsInArray:error:" title="removeObjectsInArray:error:"></a>
|
3253
|
+
<h3 class="subsubtitle method-title">removeObjectsInArray:error:</h3>
|
3254
|
+
|
3255
|
+
|
3256
|
+
|
3257
|
+
<div class="method-subsection brief-description">
|
3258
|
+
<p>Removes the list of objects from the document store.</p>
|
3259
|
+
</div>
|
3260
|
+
|
3261
|
+
|
3262
|
+
|
3263
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)removeObjectsInArray:(NSArray *)<em>theObjects</em> error:(out NSError **)<em>outError</em></code></div>
|
3264
|
+
|
3265
|
+
|
3266
|
+
|
3267
|
+
<div class="method-subsection arguments-section parameters">
|
3268
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
3269
|
+
|
3270
|
+
<dl class="argument-def parameter-def">
|
3271
|
+
<dt><em>theObjects</em></dt>
|
3272
|
+
<dd><p>the list of objects to be removed from the document store.</p></dd>
|
3273
|
+
</dl>
|
3274
|
+
|
3275
|
+
<dl class="argument-def parameter-def">
|
3276
|
+
<dt><em>outError</em></dt>
|
3277
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
3278
|
+
</dl>
|
3279
|
+
|
3280
|
+
</div>
|
3281
|
+
|
3282
|
+
|
3283
|
+
|
3284
|
+
<div class="method-subsection return">
|
3285
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
3286
|
+
<p>YES upon success, NO otherwise.</p>
|
3287
|
+
</div>
|
3288
|
+
|
3289
|
+
|
3290
|
+
|
3291
|
+
|
3292
|
+
|
3293
|
+
<div class="method-subsection discussion-section">
|
3294
|
+
<h4 class="method-subtitle">Discussion</h4>
|
3295
|
+
<p>Removes the list of objects from the document store.</p><div class="warning"><p><strong>Warning:</strong> The objects of the array must be \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant.</p></div>
|
3296
|
+
</div>
|
3297
|
+
|
3298
|
+
|
3299
|
+
|
3300
|
+
|
3301
|
+
|
3302
|
+
<div class="method-subsection see-also-section">
|
3303
|
+
<h4 class="method-subtitle">See Also</h4>
|
3304
|
+
<ul>
|
3305
|
+
|
3306
|
+
<li><code><p>\link <a href="#//api/name/removeObject:error:">– removeObject:error:</a> – (BOOL)removeObject:(id <<a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>>)theObject error:(out NSError **)outError \endlink</p></code></li>
|
3307
|
+
|
3308
|
+
<li><code><p>\link <a href="#//api/name/removeObjectsWithKeysInArray:error:">– removeObjectsWithKeysInArray:error:</a> – (BOOL)removeObjectsWithKeysInArray:(NSArray *)theKeys error:(out NSError **)outError \endlink</p></code></li>
|
3309
|
+
|
3310
|
+
<li><code><p>\link <a href="#//api/name/removeAllObjectsFromStoreAndReturnError:">– removeAllObjectsFromStoreAndReturnError:</a> – (BOOL)<a href="#//api/name/removeAllObjectsFromStoreAndReturnError:">– removeAllObjectsFromStoreAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
3311
|
+
|
3312
|
+
</ul>
|
3313
|
+
</div>
|
3314
|
+
|
3315
|
+
|
3316
|
+
|
3317
|
+
<div class="method-subsection declared-in-section">
|
3318
|
+
<h4 class="method-subtitle">Declared In</h4>
|
3319
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
3320
|
+
</div>
|
3321
|
+
|
3322
|
+
|
3323
|
+
</div>
|
3324
|
+
|
3325
|
+
<div class="section-method">
|
3326
|
+
<a name="//api/name/removeObjectsWithKeysInArray:error:" title="removeObjectsWithKeysInArray:error:"></a>
|
3327
|
+
<h3 class="subsubtitle method-title">removeObjectsWithKeysInArray:error:</h3>
|
3328
|
+
|
3329
|
+
|
3330
|
+
|
3331
|
+
<div class="method-subsection brief-description">
|
3332
|
+
<p>Removes the list of objects with the specified keys from the document store.</p>
|
3333
|
+
</div>
|
3334
|
+
|
3335
|
+
|
3336
|
+
|
3337
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)removeObjectsWithKeysInArray:(NSArray *)<em>theKeys</em> error:(out NSError **)<em>outError</em></code></div>
|
3338
|
+
|
3339
|
+
|
3340
|
+
|
3341
|
+
<div class="method-subsection arguments-section parameters">
|
3342
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
3343
|
+
|
3344
|
+
<dl class="argument-def parameter-def">
|
3345
|
+
<dt><em>theKeys</em></dt>
|
3346
|
+
<dd><p>the list of keys to be removed from the document store.</p></dd>
|
3347
|
+
</dl>
|
3348
|
+
|
3349
|
+
<dl class="argument-def parameter-def">
|
3350
|
+
<dt><em>outError</em></dt>
|
3351
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
3352
|
+
</dl>
|
3353
|
+
|
3354
|
+
</div>
|
3355
|
+
|
3356
|
+
|
3357
|
+
|
3358
|
+
<div class="method-subsection return">
|
3359
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
3360
|
+
<p>YES upon success, NO otherwise.</p>
|
3361
|
+
</div>
|
3362
|
+
|
3363
|
+
|
3364
|
+
|
3365
|
+
|
3366
|
+
|
3367
|
+
<div class="method-subsection discussion-section">
|
3368
|
+
<h4 class="method-subtitle">Discussion</h4>
|
3369
|
+
<p>Removes the list of objects with the specified keys from the document store.</p><div class="warning"><p><strong>Warning:</strong> The objects of the array must be \link <a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant.</p></div>
|
3370
|
+
</div>
|
3371
|
+
|
3372
|
+
|
3373
|
+
|
3374
|
+
|
3375
|
+
|
3376
|
+
<div class="method-subsection see-also-section">
|
3377
|
+
<h4 class="method-subtitle">See Also</h4>
|
3378
|
+
<ul>
|
3379
|
+
|
3380
|
+
<li><code><p>\link <a href="#//api/name/removeObject:error:">– removeObject:error:</a> – (BOOL)removeObject:(id <<a href="../Protocols/NSFNanoObjectProtocol.html">NSFNanoObjectProtocol</a>>)theObject error:(out NSError **)outError \endlink</p></code></li>
|
3381
|
+
|
3382
|
+
<li><code><p>\link <a href="#//api/name/removeObjectsInArray:error:">– removeObjectsInArray:error:</a> – (BOOL)removeObjectsInArray:(NSArray *)theObjects error:(out NSError **)outError \endlink</p></code></li>
|
3383
|
+
|
3384
|
+
<li><code><p>\link <a href="#//api/name/removeAllObjectsFromStoreAndReturnError:">– removeAllObjectsFromStoreAndReturnError:</a> – (BOOL)<a href="#//api/name/removeAllObjectsFromStoreAndReturnError:">– removeAllObjectsFromStoreAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
3385
|
+
|
3386
|
+
</ul>
|
3387
|
+
</div>
|
3388
|
+
|
3389
|
+
|
3390
|
+
|
3391
|
+
<div class="method-subsection declared-in-section">
|
3392
|
+
<h4 class="method-subtitle">Declared In</h4>
|
3393
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
3394
|
+
</div>
|
3395
|
+
|
3396
|
+
|
3397
|
+
</div>
|
3398
|
+
|
3399
|
+
<div class="section-method">
|
3400
|
+
<a name="//api/name/rollbackTransactionAndReturnError:" title="rollbackTransactionAndReturnError:"></a>
|
3401
|
+
<h3 class="subsubtitle method-title">rollbackTransactionAndReturnError:</h3>
|
3402
|
+
|
3403
|
+
|
3404
|
+
|
3405
|
+
<div class="method-subsection brief-description">
|
3406
|
+
<p>Rollback a transaction.</p>
|
3407
|
+
</div>
|
3408
|
+
|
3409
|
+
|
3410
|
+
|
3411
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)rollbackTransactionAndReturnError:(out NSError **)<em>outError</em></code></div>
|
3412
|
+
|
3413
|
+
|
3414
|
+
|
3415
|
+
<div class="method-subsection arguments-section parameters">
|
3416
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
3417
|
+
|
3418
|
+
<dl class="argument-def parameter-def">
|
3419
|
+
<dt><em>outError</em></dt>
|
3420
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
3421
|
+
</dl>
|
3422
|
+
|
3423
|
+
</div>
|
3424
|
+
|
3425
|
+
|
3426
|
+
|
3427
|
+
<div class="method-subsection return">
|
3428
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
3429
|
+
<p>YES upon success, NO otherwise.
|
3430
|
+
@attention Use this method instead of the ones provided by <a href="../Classes/NSFNanoEngine.html">NSFNanoEngine</a>.</p>
|
3431
|
+
</div>
|
3432
|
+
|
3433
|
+
|
3434
|
+
|
3435
|
+
|
3436
|
+
|
3437
|
+
<div class="method-subsection discussion-section">
|
3438
|
+
<h4 class="method-subtitle">Discussion</h4>
|
3439
|
+
<p>Rollback a transaction.</p>
|
3440
|
+
</div>
|
3441
|
+
|
3442
|
+
|
3443
|
+
|
3444
|
+
|
3445
|
+
|
3446
|
+
<div class="method-subsection see-also-section">
|
3447
|
+
<h4 class="method-subtitle">See Also</h4>
|
3448
|
+
<ul>
|
3449
|
+
|
3450
|
+
<li><code><p>\link <a href="#//api/name/rebuildIndexesAndReturnError:">– rebuildIndexesAndReturnError:</a> – (BOOL)<a href="#//api/name/rebuildIndexesAndReturnError:">– rebuildIndexesAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
3451
|
+
|
3452
|
+
<li><code><p>\link <a href="#//api/name/beginTransactionAndReturnError:">– beginTransactionAndReturnError:</a> – (BOOL)<a href="#//api/name/beginTransactionAndReturnError:">– beginTransactionAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
3453
|
+
|
3454
|
+
<li><code><p>\link <a href="#//api/name/commitTransactionAndReturnError:">– commitTransactionAndReturnError:</a> – (BOOL)<a href="#//api/name/commitTransactionAndReturnError:">– commitTransactionAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
3455
|
+
|
3456
|
+
</ul>
|
3457
|
+
</div>
|
3458
|
+
|
3459
|
+
|
3460
|
+
|
3461
|
+
<div class="method-subsection declared-in-section">
|
3462
|
+
<h4 class="method-subtitle">Declared In</h4>
|
3463
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
3464
|
+
</div>
|
3465
|
+
|
3466
|
+
|
3467
|
+
</div>
|
3468
|
+
|
3469
|
+
<div class="section-method">
|
3470
|
+
<a name="//api/name/saveStoreAndReturnError:" title="saveStoreAndReturnError:"></a>
|
3471
|
+
<h3 class="subsubtitle method-title">saveStoreAndReturnError:</h3>
|
3472
|
+
|
3473
|
+
|
3474
|
+
|
3475
|
+
<div class="method-subsection brief-description">
|
3476
|
+
<p>Saves the uncommitted changes to the document store.</p>
|
3477
|
+
</div>
|
3478
|
+
|
3479
|
+
|
3480
|
+
|
3481
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)saveStoreAndReturnError:(out NSError **)<em>outError</em></code></div>
|
3482
|
+
|
3483
|
+
|
3484
|
+
|
3485
|
+
<div class="method-subsection arguments-section parameters">
|
3486
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
3487
|
+
|
3488
|
+
<dl class="argument-def parameter-def">
|
3489
|
+
<dt><em>outError</em></dt>
|
3490
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
3491
|
+
</dl>
|
3492
|
+
|
3493
|
+
</div>
|
3494
|
+
|
3495
|
+
|
3496
|
+
|
3497
|
+
<div class="method-subsection return">
|
3498
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
3499
|
+
<p>YES upon success, NO otherwise.</p>
|
3500
|
+
</div>
|
3501
|
+
|
3502
|
+
|
3503
|
+
|
3504
|
+
|
3505
|
+
|
3506
|
+
<div class="method-subsection discussion-section">
|
3507
|
+
<h4 class="method-subtitle">Discussion</h4>
|
3508
|
+
<p>Saves the uncommitted changes to the document store.</p><div class="note"><p><strong>Note:</strong> After storing several objects and depending on the save interval, some objects could be left in the cache in an unsaved state.
|
3509
|
+
Therefore, it’s always a good idea to call \link saveStoreAndReturnError: – (BOOL)saveStoreAndReturnError:(out NSError **)outError \endlink</p></div>
|
3510
|
+
</div>
|
3511
|
+
|
3512
|
+
|
3513
|
+
|
3514
|
+
|
3515
|
+
|
3516
|
+
<div class="method-subsection see-also-section">
|
3517
|
+
<h4 class="method-subtitle">See Also</h4>
|
3518
|
+
<ul>
|
3519
|
+
|
3520
|
+
<li><code><p>\link <a href="#//api/name/discardUnsavedChanges">– discardUnsavedChanges</a> – (void)<a href="#//api/name/discardUnsavedChanges">– discardUnsavedChanges</a> \endlink</p></code></li>
|
3521
|
+
|
3522
|
+
</ul>
|
3523
|
+
</div>
|
3524
|
+
|
3525
|
+
|
3526
|
+
|
3527
|
+
<div class="method-subsection declared-in-section">
|
3528
|
+
<h4 class="method-subtitle">Declared In</h4>
|
3529
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
3530
|
+
</div>
|
3531
|
+
|
3532
|
+
|
3533
|
+
</div>
|
3534
|
+
|
3535
|
+
<div class="section-method">
|
3536
|
+
<a name="//api/name/saveStoreToDirectoryAtPath:compactDatabase:error:" title="saveStoreToDirectoryAtPath:compactDatabase:error:"></a>
|
3537
|
+
<h3 class="subsubtitle method-title">saveStoreToDirectoryAtPath:compactDatabase:error:</h3>
|
3538
|
+
|
3539
|
+
|
3540
|
+
|
3541
|
+
<div class="method-subsection brief-description">
|
3542
|
+
<p>Makes a copy of the document store to a different location and optionally compacts it to its minimum size.</p>
|
3543
|
+
</div>
|
3544
|
+
|
3545
|
+
|
3546
|
+
|
3547
|
+
<div class="method-subsection method-declaration"><code>- (BOOL)saveStoreToDirectoryAtPath:(NSString *)<em>thePath</em> compactDatabase:(BOOL)<em>shouldCompact</em> error:(out NSError **)<em>outError</em></code></div>
|
3548
|
+
|
3549
|
+
|
3550
|
+
|
3551
|
+
<div class="method-subsection arguments-section parameters">
|
3552
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
3553
|
+
|
3554
|
+
<dl class="argument-def parameter-def">
|
3555
|
+
<dt><em>thePath</em></dt>
|
3556
|
+
<dd><p>is the location where the document store should be copied to.</p></dd>
|
3557
|
+
</dl>
|
3558
|
+
|
3559
|
+
<dl class="argument-def parameter-def">
|
3560
|
+
<dt><em>shouldCompact</em></dt>
|
3561
|
+
<dd><p>is used to flag whether the document store should be compacted.</p></dd>
|
3562
|
+
</dl>
|
3563
|
+
|
3564
|
+
<dl class="argument-def parameter-def">
|
3565
|
+
<dt><em>outError</em></dt>
|
3566
|
+
<dd><p>is used if an error occurs. May be NULL.</p></dd>
|
3567
|
+
</dl>
|
3568
|
+
|
3569
|
+
</div>
|
3570
|
+
|
3571
|
+
|
3572
|
+
|
3573
|
+
<div class="method-subsection return">
|
3574
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
3575
|
+
<p>YES upon success, NO otherwise.</p>
|
3576
|
+
</div>
|
3577
|
+
|
3578
|
+
|
3579
|
+
|
3580
|
+
|
3581
|
+
|
3582
|
+
<div class="method-subsection discussion-section">
|
3583
|
+
<h4 class="method-subtitle">Discussion</h4>
|
3584
|
+
<p>Makes a copy of the document store to a different location and optionally compacts it to its minimum size.</p><div class="note"><p><strong>Note:</strong> Works with both, file-based and memory-backed document stores.</p></div>
|
3585
|
+
</div>
|
3586
|
+
|
3587
|
+
|
3588
|
+
|
3589
|
+
|
3590
|
+
|
3591
|
+
<div class="method-subsection see-also-section">
|
3592
|
+
<h4 class="method-subtitle">See Also</h4>
|
3593
|
+
<ul>
|
3594
|
+
|
3595
|
+
<li><code><p>\link <a href="#//api/name/clearIndexesAndReturnError:">– clearIndexesAndReturnError:</a> – (BOOL)<a href="#//api/name/clearIndexesAndReturnError:">– clearIndexesAndReturnError:</a>(out NSError **)outError \endlink</p></code></li>
|
3596
|
+
|
3597
|
+
</ul>
|
3598
|
+
</div>
|
3599
|
+
|
3600
|
+
|
3601
|
+
|
3602
|
+
<div class="method-subsection declared-in-section">
|
3603
|
+
<h4 class="method-subtitle">Declared In</h4>
|
3604
|
+
<code class="declared-in-ref">NSFNanoStore.h</code><br />
|
3605
|
+
</div>
|
3606
|
+
|
3607
|
+
|
3608
|
+
</div>
|
3609
|
+
|
3610
|
+
</div>
|
3611
|
+
|
3612
|
+
|
3613
|
+
</div>
|
3614
|
+
<div class="main-navigation navigation-bottom">
|
3615
|
+
<ul>
|
3616
|
+
<li><a href="../index.html">Index</a></li>
|
3617
|
+
<li><a href="../hierarchy.html">Hierarchy</a></li>
|
3618
|
+
</ul>
|
3619
|
+
</div>
|
3620
|
+
<div id="footer">
|
3621
|
+
<hr />
|
3622
|
+
<div class="footer-copyright">
|
3623
|
+
<p><span class="copyright">© 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
|
3624
|
+
|
3625
|
+
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
|
3626
|
+
|
3627
|
+
</div>
|
3628
|
+
</div>
|
3629
|
+
</div>
|
3630
|
+
</article>
|
3631
|
+
<script type="text/javascript">
|
3632
|
+
function jumpToChange()
|
3633
|
+
{
|
3634
|
+
window.location.hash = this.options[this.selectedIndex].value;
|
3635
|
+
}
|
3636
|
+
|
3637
|
+
function toggleTOC()
|
3638
|
+
{
|
3639
|
+
var contents = document.getElementById('contents');
|
3640
|
+
var tocContainer = document.getElementById('tocContainer');
|
3641
|
+
|
3642
|
+
if (this.getAttribute('class') == 'open')
|
3643
|
+
{
|
3644
|
+
this.setAttribute('class', '');
|
3645
|
+
contents.setAttribute('class', '');
|
3646
|
+
tocContainer.setAttribute('class', '');
|
3647
|
+
|
3648
|
+
window.name = "hideTOC";
|
3649
|
+
}
|
3650
|
+
else
|
3651
|
+
{
|
3652
|
+
this.setAttribute('class', 'open');
|
3653
|
+
contents.setAttribute('class', 'isShowingTOC');
|
3654
|
+
tocContainer.setAttribute('class', 'isShowingTOC');
|
3655
|
+
|
3656
|
+
window.name = "";
|
3657
|
+
}
|
3658
|
+
return false;
|
3659
|
+
}
|
3660
|
+
|
3661
|
+
function toggleTOCEntryChildren(e)
|
3662
|
+
{
|
3663
|
+
e.stopPropagation();
|
3664
|
+
var currentClass = this.getAttribute('class');
|
3665
|
+
if (currentClass == 'children') {
|
3666
|
+
this.setAttribute('class', 'children open');
|
3667
|
+
}
|
3668
|
+
else if (currentClass == 'children open') {
|
3669
|
+
this.setAttribute('class', 'children');
|
3670
|
+
}
|
3671
|
+
return false;
|
3672
|
+
}
|
3673
|
+
|
3674
|
+
function tocEntryClick(e)
|
3675
|
+
{
|
3676
|
+
e.stopPropagation();
|
3677
|
+
return true;
|
3678
|
+
}
|
3679
|
+
|
3680
|
+
function init()
|
3681
|
+
{
|
3682
|
+
var selectElement = document.getElementById('jumpTo');
|
3683
|
+
selectElement.addEventListener('change', jumpToChange, false);
|
3684
|
+
|
3685
|
+
var tocButton = document.getElementById('table_of_contents');
|
3686
|
+
tocButton.addEventListener('click', toggleTOC, false);
|
3687
|
+
|
3688
|
+
var taskTreeItem = document.getElementById('task_treeitem');
|
3689
|
+
if (taskTreeItem.getElementsByTagName('li').length > 0)
|
3690
|
+
{
|
3691
|
+
taskTreeItem.setAttribute('class', 'children');
|
3692
|
+
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
|
3693
|
+
}
|
3694
|
+
|
3695
|
+
var tocList = document.getElementById('toc');
|
3696
|
+
|
3697
|
+
var tocEntries = tocList.getElementsByTagName('li');
|
3698
|
+
for (var i = 0; i < tocEntries.length; i++) {
|
3699
|
+
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
|
3700
|
+
}
|
3701
|
+
|
3702
|
+
var tocLinks = tocList.getElementsByTagName('a');
|
3703
|
+
for (var i = 0; i < tocLinks.length; i++) {
|
3704
|
+
tocLinks[i].addEventListener('click', tocEntryClick, false);
|
3705
|
+
}
|
3706
|
+
|
3707
|
+
if (window.name == "hideTOC") {
|
3708
|
+
toggleTOC.call(tocButton);
|
3709
|
+
}
|
3710
|
+
}
|
3711
|
+
|
3712
|
+
window.onload = init;
|
3713
|
+
|
3714
|
+
// If showing in Xcode, hide the TOC and Header
|
3715
|
+
if (navigator.userAgent.match(/xcode/i)) {
|
3716
|
+
document.getElementById("contents").className = "hideInXcode"
|
3717
|
+
document.getElementById("tocContainer").className = "hideInXcode"
|
3718
|
+
document.getElementById("top_header").className = "hideInXcode"
|
3719
|
+
}
|
3720
|
+
|
3721
|
+
</script>
|
3722
|
+
</body>
|
3723
|
+
</html>
|