1 <div class="body-wrap">
2 <div class="top-tools">
3 <a class="inner-link" href="#Ext.sql.SQLiteStore-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4 <a class="inner-link" href="#Ext.sql.SQLiteStore-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5 <a class="inner-link" href="#Ext.sql.SQLiteStore-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6 <a class="inner-link" href="#Ext.sql.SQLiteStore-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7 <a class="bookmark" href="../docs/?class=Ext.sql.SQLiteStore"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
9 <div class="inheritance res-block">
10 <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
11 <img src="resources/elbow-end.gif"/><a ext:cls="Ext.data.Store" ext:member="" href="output/Ext.data.Store.html">Store</a>
12 <img src="resources/elbow-end.gif"/>SQLiteStore</pre></div>
13 <h1>Class Ext.sql.SQLiteStore</h1>
14 <table cellspacing="0">
15 <tr><td class="label">Package:</td><td class="hd-info">Ext.sql</td></tr>
16 <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/SQLiteStore.js" target="_blank">SQLiteStore.js</a></td></tr>
17 <tr><td class="label">Class:</td><td class="hd-info">SQLiteStore</td></tr>
18 <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.data.Store" ext:member="" href="output/Ext.data.Store.html">Store</a></td></tr>
20 <div class="description">
22 Convenience class which assists in setting up SQLiteStore's.
23 This class will create the necessary table if it does not exist.
24 This class requires that all fields stored in the database will also be kept
25 in the Ext.data.Store. </div>
27 <div class="hr"></div>
28 <a id="Ext.sql.SQLiteStore-configs"></a>
29 <h2>Config Options</h2>
30 <table cellspacing="0" class="member-table">
32 <th class="sig-header" colspan="2">Config Options</th>
33 <th class="msource-header">Defined By</th>
35 <tr class="config-row inherited">
\r
36 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
38 <a id="Ext.sql.SQLiteStore-autoLoad"></a>
\r
39 <b>autoLoad</b> : Boolean/Object <div class="mdesc">
\r
40 If passed, this store's load method is automatically called after creation with the autoLoad object </div>
\r
42 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#autoLoad" href="output/Ext.data.Store.html#autoLoad">Store</a></td>
\r
44 <tr class="config-row inherited alt">
\r
45 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
47 <a id="Ext.sql.SQLiteStore-baseParams"></a>
\r
48 <b>baseParams</b> : Object <div class="mdesc">
\r
49 An object containing properties which are to be sent as parameters on any HTTP request </div>
\r
51 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#baseParams" href="output/Ext.data.Store.html#baseParams">Store</a></td>
\r
53 <tr class="config-row inherited">
\r
54 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
56 <a id="Ext.sql.SQLiteStore-data"></a>
\r
57 <b>data</b> : Array <div class="mdesc">
\r
58 Inline data to be loaded when the store is initialized. </div>
\r
60 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#data" href="output/Ext.data.Store.html#data">Store</a></td>
\r
62 <tr class="config-row alt">
\r
63 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
65 <a id="Ext.sql.SQLiteStore-dbFile"></a>
\r
66 <b>dbFile</b> : String <div class="mdesc">
\r
67 Filename to create/open </div>
\r
69 <td class="msource">SQLiteStore</td>
\r
71 <tr class="config-row">
\r
72 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
74 <a id="Ext.sql.SQLiteStore-fields"></a>
\r
75 <b>fields</b> : Array <div class="mdesc">
\r
76 Array of fields to be used. Both name and type must be specified for every field. </div>
\r
78 <td class="msource">SQLiteStore</td>
\r
80 <tr class="config-row alt">
\r
81 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
83 <a id="Ext.sql.SQLiteStore-key"></a>
\r
84 <b>key</b> : String <div class="mdesc">
\r
85 This is the primary key for the table and the id for the Ext.data.Record. </div>
\r
87 <td class="msource">SQLiteStore</td>
\r
89 <tr class="config-row inherited expandable">
\r
90 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
92 <a id="Ext.sql.SQLiteStore-listeners"></a>
\r
93 <b>listeners</b> : Object <div class="mdesc">
\r
94 <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div>
\r
96 (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once. </div>
\r
99 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
\r
101 <tr class="config-row inherited alt">
\r
102 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
104 <a id="Ext.sql.SQLiteStore-proxy"></a>
\r
105 <b>proxy</b> : Ext.data.DataProxy <div class="mdesc">
\r
106 The Proxy object which provides access to a data object. </div>
\r
108 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#proxy" href="output/Ext.data.Store.html#proxy">Store</a></td>
\r
110 <tr class="config-row inherited expandable">
\r
111 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
113 <a id="Ext.sql.SQLiteStore-pruneModifiedRecords"></a>
\r
114 <b>pruneModifiedRecords</b> : boolean <div class="mdesc">
\r
115 <div class="short">True to clear all modified record information each time the store is loaded or when a record is removed. (defaults to...</div>
\r
117 True to clear all modified record information each time the store is loaded or when a record is removed. (defaults to false). </div>
\r
120 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#pruneModifiedRecords" href="output/Ext.data.Store.html#pruneModifiedRecords">Store</a></td>
\r
122 <tr class="config-row inherited alt expandable">
\r
123 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
125 <a id="Ext.sql.SQLiteStore-reader"></a>
\r
126 <b>reader</b> : Ext.data.DataReader <div class="mdesc">
\r
127 <div class="short">The DataReader object which processes the data object and returns an Array of Ext.data.Record objects which are cache...</div>
\r
129 The DataReader object which processes the data object and returns an Array of Ext.data.Record objects which are cached keyed by their <em>id</em> property. </div>
\r
132 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#reader" href="output/Ext.data.Store.html#reader">Store</a></td>
\r
134 <tr class="config-row inherited expandable">
\r
135 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
137 <a id="Ext.sql.SQLiteStore-remoteSort"></a>
\r
138 <b>remoteSort</b> : boolean <div class="mdesc">
\r
139 <div class="short">True if sorting is to be handled by requesting the Proxy to provide a refreshed version of the data object in sorted ...</div>
\r
141 True if sorting is to be handled by requesting the Proxy to provide a refreshed version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false). <p>If remote sorting is specified, then clicking on a column header causes the current page to be requested from the server with the addition of the following two parameters: <div class="mdetail-params"><ul> <li><b>sort</b> : String<p class="sub-desc">The name (as specified in the Record's Field definition) of the field to sort on.</p></li> <li><b>dir</b> : String<p class="sub-desc">The direction of the sort, "ASC" or "DESC" (case-sensitive).</p></li> </ul></div></p> </div>
\r
144 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#remoteSort" href="output/Ext.data.Store.html#remoteSort">Store</a></td>
\r
146 <tr class="config-row inherited alt expandable">
\r
147 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
149 <a id="Ext.sql.SQLiteStore-sortInfo"></a>
\r
150 <b>sortInfo</b> : Object <div class="mdesc">
\r
151 <div class="short">A config object in the format: {field: "fieldName", direction: "ASC|DESC"} to specify the sort order in the request o...</div>
\r
153 A config object in the format: {field: "fieldName", direction: "ASC|DESC"} to specify the sort order in the request of a remote Store's <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> operation. Note that for local sorting, the direction property is case-sensitive. </div>
\r
156 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#sortInfo" href="output/Ext.data.Store.html#sortInfo">Store</a></td>
\r
158 <tr class="config-row inherited">
\r
159 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
161 <a id="Ext.sql.SQLiteStore-storeId"></a>
\r
162 <b>storeId</b> : String <div class="mdesc">
\r
163 If passed, the id to use to register with the StoreMgr </div>
\r
165 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#storeId" href="output/Ext.data.Store.html#storeId">Store</a></td>
\r
167 <tr class="config-row inherited alt">
\r
168 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
170 <a id="Ext.sql.SQLiteStore-url"></a>
\r
171 <b>url</b> : String <div class="mdesc">
\r
172 If passed, an HttpProxy is created for the passed URL </div>
\r
174 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#url" href="output/Ext.data.Store.html#url">Store</a></td>
\r
177 <a id="Ext.sql.SQLiteStore-props"></a>
178 <h2>Public Properties</h2>
179 <table cellspacing="0" class="member-table">
181 <th class="sig-header" colspan="2">Property</th>
182 <th class="msource-header">Defined By</th>
184 <tr class="property-row inherited expandable">
\r
185 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
187 <a id="Ext.sql.SQLiteStore-baseParams"></a>
\r
188 <b>baseParams</b> : Object <div class="mdesc">
\r
189 <div class="short">An object containing properties which are used as parameters on any HTTP request.
190 This property can be changed after ...</div>
\r
192 An object containing properties which are used as parameters on any HTTP request.
193 This property can be changed after creating the Store to send different parameters. </div>
\r
196 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#baseParams" href="output/Ext.data.Store.html#baseParams">Store</a></td>
\r
198 <tr class="property-row inherited alt">
\r
199 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
201 <a id="Ext.sql.SQLiteStore-fields"></a>
\r
202 <b>fields</b> : Ext.util.MixedCollection <div class="mdesc">
\r
203 A MixedCollection containing the defined <a ext:cls="Ext.data.Field" href="output/Ext.data.Field.html">Field</a>s for the Records stored in this Store. Read-only. </div>
\r
205 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#fields" href="output/Ext.data.Store.html#fields">Store</a></td>
\r
207 <tr class="property-row inherited expandable">
\r
208 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
210 <a id="Ext.sql.SQLiteStore-lastOptions"></a>
\r
211 <b>lastOptions</b> : Object <div class="mdesc">
\r
212 <div class="short">Contains the last options object used as the parameter to the load method. See load
213 for the details of what this may ...</div>
\r
215 Contains the last options object used as the parameter to the load method. See <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a>
216 for the details of what this may contain. This may be useful for accessing any params which
217 were used to load the current Record cache. </div>
\r
220 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#lastOptions" href="output/Ext.data.Store.html#lastOptions">Store</a></td>
\r
222 <tr class="property-row inherited alt expandable">
\r
223 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
225 <a id="Ext.sql.SQLiteStore-paramNames"></a>
\r
226 <b>paramNames</b> : Object <div class="mdesc">
\r
227 <div class="short">An object containing properties which specify the names of the paging and
228 sorting parameters passed to remote servers...</div>
\r
230 <p>An object containing properties which specify the names of the paging and
231 sorting parameters passed to remote servers when loading blocks of data. By default, this
232 object takes the following form:</p><pre><code>{
233 start : <em>"start"</em>, <i>// The parameter name which specifies the start row</i>
234 limit : <em>"limit"</em>, <i>// The parameter name which specifies number of rows to <b>return</b></i>
235 sort : <em>"sort"</em>, <i>// The parameter name which specifies the column to sort on</i>
236 dir : <em>"dir"</em> <i>// The parameter name which specifies the sort direction</i>
238 <p>The server must produce the requested data block upon receipt of these parameter names.
239 If different parameter names are required, this property can be overriden using a configuration
241 <p>A <a ext:cls="Ext.PagingToolbar" href="output/Ext.PagingToolbar.html">PagingToolbar</a> bound to this grid uses this property to determine
242 the parameter names to use in its requests. </div>
\r
245 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#paramNames" href="output/Ext.data.Store.html#paramNames">Store</a></td>
\r
247 <tr class="property-row inherited expandable">
\r
248 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
250 <a id="Ext.sql.SQLiteStore-recordType"></a>
\r
251 <b>recordType</b> : Function <div class="mdesc">
\r
252 <div class="short">The Record constructor as supplied to (or created by) the Reader. Read-only.
253 If the Reader was constructed by passin...</div>
\r
255 The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Record</a> constructor as supplied to (or created by) the <a ext:cls="Ext.data.Reader" ext:member="Reader" href="output/Ext.data.Reader.html#Reader">Reader</a>. Read-only.
256 <p>If the Reader was constructed by passing in an Array of field definition objects, instead of an created
257 Record constructor it will have <a ext:cls="Ext.data.Record" ext:member="create" href="output/Ext.data.Record.html#create">created a constructor</a> from that Array.</p>
258 <p>This property may be used to create new Records of the type held in this Store.</p> </div>
\r
261 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#recordType" href="output/Ext.data.Store.html#recordType">Store</a></td>
\r
264 <a id="Ext.sql.SQLiteStore-methods"></a>
265 <h2>Public Methods</h2>
266 <table cellspacing="0" class="member-table">
268 <th class="sig-header" colspan="2">Method</th>
269 <th class="msource-header">Defined By</th>
271 <tr class="method-row inherited expandable">
\r
272 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
274 <a id="Ext.sql.SQLiteStore-add"></a>
\r
275 <b>add</b>( <code>Ext.data.Record[] records</code> ) : void <div class="mdesc">
\r
276 <div class="short">Add Records to the Store and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.</div>
\r
278 Add Records to the Store and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event. <div class="mdetail-params">
\r
279 <strong>Parameters:</strong>
\r
280 <ul><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">An Array of Ext.data.Record objects to add to the cache.</div></li> </ul>
\r
281 <strong>Returns:</strong>
\r
283 <li><code>void</code></li>
\r
289 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#add" href="output/Ext.data.Store.html#add">Store</a></td>
\r
291 <tr class="method-row inherited alt expandable">
\r
292 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
294 <a id="Ext.sql.SQLiteStore-addEvents"></a>
\r
295 <b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc">
\r
296 <div class="short">Used to define events on this Observable</div>
\r
298 Used to define events on this Observable <div class="mdetail-params">
\r
299 <strong>Parameters:</strong>
\r
300 <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
\r
301 <strong>Returns:</strong>
\r
303 <li><code>void</code></li>
\r
309 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
\r
311 <tr class="method-row inherited expandable">
\r
312 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
314 <a id="Ext.sql.SQLiteStore-addListener"></a>
\r
315 <b>addListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc">
\r
316 <div class="short">Appends an event handler to this component</div>
\r
318 Appends an event handler to this component <div class="mdetail-params">
\r
319 <strong>Parameters:</strong>
\r
320 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
321 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
322 properties. This may contain any of the following properties:<ul>
323 <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
324 <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
325 <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
326 <li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
327 by the specified number of milliseconds. If the event fires again within that time, the original
328 handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
331 <b>Combining Options</b><br>
332 Using the options argument, it is possible to combine different types of listeners:<br>
334 A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
335 <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
341 <b>Attaching multiple handlers in 1 call</b><br>
342 The method also allows for a single argument to be passed which is a config object containing properties
343 which specify multiple handlers.
347 fn: <b>this</b>.onClick,
351 <em>'mouseover'</em> : {
352 fn: <b>this</b>.onMouseOver,
355 <em>'mouseout'</em> : {
356 fn: <b>this</b>.onMouseOut,
361 Or a shorthand syntax:<br>
363 <em>'click'</em> : <b>this</b>.onClick,
364 <em>'mouseover'</em> : <b>this</b>.onMouseOver,
365 <em>'mouseout'</em> : <b>this</b>.onMouseOut,
367 });</code></pre></div></li> </ul>
\r
368 <strong>Returns:</strong>
\r
370 <li><code>void</code></li>
\r
376 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
\r
378 <tr class="method-row inherited alt expandable">
\r
379 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
381 <a id="Ext.sql.SQLiteStore-addSorted"></a>
\r
382 <b>addSorted</b>( <code>Ext.data.Record record</code> ) : void <div class="mdesc">
\r
383 <div class="short">(Local sort only) Inserts the passed Record into the Store at the index where it
384 should go based on the current sort ...</div>
\r
386 (Local sort only) Inserts the passed Record into the Store at the index where it
387 should go based on the current sort information. <div class="mdetail-params">
\r
388 <strong>Parameters:</strong>
\r
389 <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc"></div></li> </ul>
\r
390 <strong>Returns:</strong>
\r
392 <li><code>void</code></li>
\r
398 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#addSorted" href="output/Ext.data.Store.html#addSorted">Store</a></td>
\r
400 <tr class="method-row inherited expandable">
\r
401 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
403 <a id="Ext.sql.SQLiteStore-clearFilter"></a>
\r
404 <b>clearFilter</b>( <code>Boolean suppressEvent</code> ) : void <div class="mdesc">
\r
405 <div class="short">Revert to a view of the Record cache with no filtering applied.</div>
\r
407 Revert to a view of the Record cache with no filtering applied. <div class="mdetail-params">
\r
408 <strong>Parameters:</strong>
\r
409 <ul><li><code>suppressEvent</code> : Boolean<div class="sub-desc">If true the filter is cleared silently without notifying listeners</div></li> </ul>
\r
410 <strong>Returns:</strong>
\r
412 <li><code>void</code></li>
\r
418 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#clearFilter" href="output/Ext.data.Store.html#clearFilter">Store</a></td>
\r
420 <tr class="method-row inherited alt expandable">
\r
421 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
423 <a id="Ext.sql.SQLiteStore-collect"></a>
\r
424 <b>collect</b>( <code>String dataIndex</code>, <span class="optional" title="Optional">[<code>Boolean allowNull</code>]</span>, <span class="optional" title="Optional">[<code>Boolean bypassFilter</code>]</span> ) : Array <div class="mdesc">
\r
425 <div class="short">Collects unique values for a particular dataIndex from this store.</div>
\r
427 Collects unique values for a particular dataIndex from this store. <div class="mdetail-params">
\r
428 <strong>Parameters:</strong>
\r
429 <ul><li><code>dataIndex</code> : String<div class="sub-desc">The property to collect</div></li><li><code>allowNull</code> : Boolean<div class="sub-desc">(optional) Pass true to allow null, undefined or empty string values</div></li><li><code>bypassFilter</code> : Boolean<div class="sub-desc">(optional) Pass true to collect from all records, even ones which are filtered</div></li> </ul>
\r
430 <strong>Returns:</strong>
\r
432 <li><code>Array</code><div class="sub-desc">An array of the unique values</div></li>
\r
438 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#collect" href="output/Ext.data.Store.html#collect">Store</a></td>
\r
440 <tr class="method-row inherited expandable">
\r
441 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
443 <a id="Ext.sql.SQLiteStore-commitChanges"></a>
\r
444 <b>commitChanges</b>() : void <div class="mdesc">
\r
445 <div class="short">Commit all Records with outstanding changes. To handle updates for changes, subscribe to the
446 Store's "update" event, ...</div>
\r
448 Commit all Records with outstanding changes. To handle updates for changes, subscribe to the
449 Store's "update" event, and perform updating when the third parameter is Ext.data.Record.COMMIT. <div class="mdetail-params">
\r
450 <strong>Parameters:</strong>
\r
451 <ul><li>None.</li> </ul>
\r
452 <strong>Returns:</strong>
\r
454 <li><code>void</code></li>
\r
460 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#commitChanges" href="output/Ext.data.Store.html#commitChanges">Store</a></td>
\r
462 <tr class="method-row alt expandable">
\r
463 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
465 <a id="Ext.sql.SQLiteStore-constructor"></a>
\r
466 <b>constructor</b>() : void <div class="mdesc">
\r
467 <div class="short"></div>
\r
469 <div class="mdetail-params">
\r
470 <strong>Parameters:</strong>
\r
471 <ul><li>None.</li> </ul>
\r
472 <strong>Returns:</strong>
\r
474 <li><code>void</code></li>
\r
480 <td class="msource">SQLiteStore</td>
\r
482 <tr class="method-row inherited expandable">
\r
483 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
485 <a id="Ext.sql.SQLiteStore-each"></a>
\r
486 <b>each</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
\r
487 <div class="short">Calls the specified function for each of the Records in the cache.</div>
\r
489 Calls the specified function for each of the Records in the cache. <div class="mdetail-params">
\r
490 <strong>Parameters:</strong>
\r
491 <ul><li><code>fn</code> : Function<div class="sub-desc">The function to call. The Record is passed as the first parameter.
492 Returning <tt>false</tt> aborts and exits the iteration.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to call the function (defaults to the Record).</div></li> </ul>
\r
493 <strong>Returns:</strong>
\r
495 <li><code>void</code></li>
\r
501 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#each" href="output/Ext.data.Store.html#each">Store</a></td>
\r
503 <tr class="method-row inherited alt expandable">
\r
504 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
506 <a id="Ext.sql.SQLiteStore-filter"></a>
\r
507 <b>filter</b>( <code>String field</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span> ) : void <div class="mdesc">
\r
508 <div class="short">Filter the records by a specified property.</div>
\r
510 Filter the records by a specified property. <div class="mdetail-params">
\r
511 <strong>Parameters:</strong>
\r
512 <ul><li><code>field</code> : String<div class="sub-desc">A field on your records</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the field
513 should begin with, or a RegExp to test against the field.</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li> </ul>
\r
514 <strong>Returns:</strong>
\r
516 <li><code>void</code></li>
\r
522 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#filter" href="output/Ext.data.Store.html#filter">Store</a></td>
\r
524 <tr class="method-row inherited expandable">
\r
525 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
527 <a id="Ext.sql.SQLiteStore-filterBy"></a>
\r
528 <b>filterBy</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
\r
529 <div class="short">Filter by a function. The specified function will be called for each
530 Record in this Store. If the function returns tr...</div>
\r
532 Filter by a function. The specified function will be called for each
533 Record in this Store. If the function returns <tt>true</tt> the Record is included,
534 otherwise it is filtered out. <div class="mdetail-params">
\r
535 <strong>Parameters:</strong>
\r
536 <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
537 <li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
538 to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
539 <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
540 </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li> </ul>
\r
541 <strong>Returns:</strong>
\r
543 <li><code>void</code></li>
\r
549 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#filterBy" href="output/Ext.data.Store.html#filterBy">Store</a></td>
\r
551 <tr class="method-row inherited alt expandable">
\r
552 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
554 <a id="Ext.sql.SQLiteStore-find"></a>
\r
555 <b>find</b>( <code>String property</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Number startIndex</code>]</span>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span> ) : Number <div class="mdesc">
\r
556 <div class="short">Finds the index of the first matching record in this store by a specific property/value.</div>
\r
558 Finds the index of the first matching record in this store by a specific property/value. <div class="mdetail-params">
\r
559 <strong>Parameters:</strong>
\r
560 <ul><li><code>property</code> : String<div class="sub-desc">A property on your objects</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the property value
561 should begin with, or a RegExp to test against the property.</div></li><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The index to start searching at</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part of the string, not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li> </ul>
\r
562 <strong>Returns:</strong>
\r
564 <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>
\r
570 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#find" href="output/Ext.data.Store.html#find">Store</a></td>
\r
572 <tr class="method-row inherited expandable">
\r
573 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
575 <a id="Ext.sql.SQLiteStore-findBy"></a>
\r
576 <b>findBy</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Number startIndex</code>]</span> ) : Number <div class="mdesc">
\r
577 <div class="short">Find the index of the first matching Record in this Store by a function.
578 If the function returns true it is considere...</div>
\r
580 Find the index of the first matching Record in this Store by a function.
581 If the function returns <tt>true</tt> it is considered a match. <div class="mdetail-params">
\r
582 <strong>Parameters:</strong>
\r
583 <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
584 <li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
585 to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
586 <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
587 </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The index to start searching at</div></li> </ul>
\r
588 <strong>Returns:</strong>
\r
590 <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>
\r
596 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#findBy" href="output/Ext.data.Store.html#findBy">Store</a></td>
\r
598 <tr class="method-row inherited alt expandable">
\r
599 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
601 <a id="Ext.sql.SQLiteStore-fireEvent"></a>
\r
602 <b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc">
\r
603 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
\r
605 Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
\r
606 <strong>Parameters:</strong>
\r
607 <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul>
\r
608 <strong>Returns:</strong>
\r
610 <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
\r
616 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
\r
618 <tr class="method-row inherited expandable">
\r
619 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
621 <a id="Ext.sql.SQLiteStore-getAt"></a>
\r
622 <b>getAt</b>( <code>Number index</code> ) : Ext.data.Record <div class="mdesc">
\r
623 <div class="short">Get the Record at the specified index.</div>
\r
625 Get the Record at the specified index. <div class="mdetail-params">
\r
626 <strong>Parameters:</strong>
\r
627 <ul><li><code>index</code> : Number<div class="sub-desc">The index of the Record to find.</div></li> </ul>
\r
628 <strong>Returns:</strong>
\r
630 <li><code>Ext.data.Record</code><div class="sub-desc">The Record at the passed index. Returns undefined if not found.</div></li>
\r
636 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getAt" href="output/Ext.data.Store.html#getAt">Store</a></td>
\r
638 <tr class="method-row inherited alt expandable">
\r
639 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
641 <a id="Ext.sql.SQLiteStore-getById"></a>
\r
642 <b>getById</b>( <code>String id</code> ) : Ext.data.Record <div class="mdesc">
\r
643 <div class="short">Get the Record with the specified id.</div>
\r
645 Get the Record with the specified id. <div class="mdetail-params">
\r
646 <strong>Parameters:</strong>
\r
647 <ul><li><code>id</code> : String<div class="sub-desc">The id of the Record to find.</div></li> </ul>
\r
648 <strong>Returns:</strong>
\r
650 <li><code>Ext.data.Record</code><div class="sub-desc">The Record with the passed id. Returns undefined if not found.</div></li>
\r
656 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getById" href="output/Ext.data.Store.html#getById">Store</a></td>
\r
658 <tr class="method-row inherited expandable">
\r
659 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
661 <a id="Ext.sql.SQLiteStore-getCount"></a>
\r
662 <b>getCount</b>() : Number <div class="mdesc">
\r
663 <div class="short">Gets the number of cached records.
664 If using paging, this may not be the total size of the dataset. If the data object...</div>
\r
666 Gets the number of cached records.
667 <p>If using paging, this may not be the total size of the dataset. If the data object
668 used by the Reader contains the dataset size, then the <a ext:cls="Ext.data.Store" ext:member="getTotalCount" href="output/Ext.data.Store.html#getTotalCount">getTotalCount</a> function returns
669 the dataset size.</p> <div class="mdetail-params">
\r
670 <strong>Parameters:</strong>
\r
671 <ul><li>None.</li> </ul>
\r
672 <strong>Returns:</strong>
\r
674 <li><code>Number</code><div class="sub-desc">The number of Records in the Store's cache.</div></li>
\r
680 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getCount" href="output/Ext.data.Store.html#getCount">Store</a></td>
\r
682 <tr class="method-row inherited alt expandable">
\r
683 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
685 <a id="Ext.sql.SQLiteStore-getModifiedRecords"></a>
\r
686 <b>getModifiedRecords</b>() : Ext.data.Record[] <div class="mdesc">
\r
687 <div class="short">Gets all records modified since the last commit. Modified records are persisted across load operations
688 (e.g., during...</div>
\r
690 Gets all records modified since the last commit. Modified records are persisted across load operations
691 (e.g., during paging). <div class="mdetail-params">
\r
692 <strong>Parameters:</strong>
\r
693 <ul><li>None.</li> </ul>
\r
694 <strong>Returns:</strong>
\r
696 <li><code>Ext.data.Record[]</code><div class="sub-desc">An array of Records containing outstanding modifications.</div></li>
\r
702 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getModifiedRecords" href="output/Ext.data.Store.html#getModifiedRecords">Store</a></td>
\r
704 <tr class="method-row inherited expandable">
\r
705 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
707 <a id="Ext.sql.SQLiteStore-getRange"></a>
\r
708 <b>getRange</b>( <span class="optional" title="Optional">[<code>Number startIndex</code>]</span>, <span class="optional" title="Optional">[<code>Number endIndex</code>]</span> ) : Ext.data.Record[] <div class="mdesc">
\r
709 <div class="short">Returns a range of Records between specified indices.</div>
\r
711 Returns a range of Records between specified indices. <div class="mdetail-params">
\r
712 <strong>Parameters:</strong>
\r
713 <ul><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The starting index (defaults to 0)</div></li><li><code>endIndex</code> : Number<div class="sub-desc">(optional) The ending index (defaults to the last Record in the Store)</div></li> </ul>
\r
714 <strong>Returns:</strong>
\r
716 <li><code>Ext.data.Record[]</code><div class="sub-desc">An array of Records</div></li>
\r
722 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getRange" href="output/Ext.data.Store.html#getRange">Store</a></td>
\r
724 <tr class="method-row inherited alt expandable">
\r
725 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
727 <a id="Ext.sql.SQLiteStore-getSortState"></a>
\r
728 <b>getSortState</b>() : Object <div class="mdesc">
\r
729 <div class="short">Returns an object describing the current sort state of this Store.</div>
\r
731 Returns an object describing the current sort state of this Store. <div class="mdetail-params">
\r
732 <strong>Parameters:</strong>
\r
733 <ul><li>None.</li> </ul>
\r
734 <strong>Returns:</strong>
\r
736 <li><code>Object</code><div class="sub-desc">The sort state of the Store. An object with two properties:<ul> <li><b>field : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li> <li><b>direction : String<p class="sub-desc">The sort order, "ASC" or "DESC" (case-sensitive).</p></li> </ul></div></li>
\r
742 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getSortState" href="output/Ext.data.Store.html#getSortState">Store</a></td>
\r
744 <tr class="method-row inherited expandable">
\r
745 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
747 <a id="Ext.sql.SQLiteStore-getTotalCount"></a>
\r
748 <b>getTotalCount</b>() : Number <div class="mdesc">
\r
749 <div class="short">Gets the total number of records in the dataset as returned by the server.
750 If using paging, for this to be accurate, ...</div>
\r
752 Gets the total number of records in the dataset as returned by the server.
753 <p>If using paging, for this to be accurate, the data object used by the Reader must contain
754 the dataset size. For remote data sources, this is provided by a query on the server.</p> <div class="mdetail-params">
\r
755 <strong>Parameters:</strong>
\r
756 <ul><li>None.</li> </ul>
\r
757 <strong>Returns:</strong>
\r
759 <li><code>Number</code><div class="sub-desc">The number of Records as specified in the data object passed to the Reader by the Proxy <p><b>This value is not updated when changing the contents of the Store locally.</b></p></div></li>
\r
765 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getTotalCount" href="output/Ext.data.Store.html#getTotalCount">Store</a></td>
\r
767 <tr class="method-row inherited alt expandable">
\r
768 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
770 <a id="Ext.sql.SQLiteStore-hasListener"></a>
\r
771 <b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc">
\r
772 <div class="short">Checks to see if this object has any listeners for a specified event</div>
\r
774 Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
\r
775 <strong>Parameters:</strong>
\r
776 <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
\r
777 <strong>Returns:</strong>
\r
779 <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
\r
785 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
\r
787 <tr class="method-row inherited expandable">
\r
788 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
790 <a id="Ext.sql.SQLiteStore-indexOf"></a>
\r
791 <b>indexOf</b>( <code>Ext.data.Record record</code> ) : Number <div class="mdesc">
\r
792 <div class="short">Get the index within the cache of the passed Record.</div>
\r
794 Get the index within the cache of the passed Record. <div class="mdetail-params">
\r
795 <strong>Parameters:</strong>
\r
796 <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Ext.data.Record object to find.</div></li> </ul>
\r
797 <strong>Returns:</strong>
\r
799 <li><code>Number</code><div class="sub-desc">The index of the passed Record. Returns -1 if not found.</div></li>
\r
805 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#indexOf" href="output/Ext.data.Store.html#indexOf">Store</a></td>
\r
807 <tr class="method-row inherited alt expandable">
\r
808 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
810 <a id="Ext.sql.SQLiteStore-indexOfId"></a>
\r
811 <b>indexOfId</b>( <code>String id</code> ) : Number <div class="mdesc">
\r
812 <div class="short">Get the index within the cache of the Record with the passed id.</div>
\r
814 Get the index within the cache of the Record with the passed id. <div class="mdetail-params">
\r
815 <strong>Parameters:</strong>
\r
816 <ul><li><code>id</code> : String<div class="sub-desc">The id of the Record to find.</div></li> </ul>
\r
817 <strong>Returns:</strong>
\r
819 <li><code>Number</code><div class="sub-desc">The index of the Record. Returns -1 if not found.</div></li>
\r
825 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#indexOfId" href="output/Ext.data.Store.html#indexOfId">Store</a></td>
\r
827 <tr class="method-row inherited expandable">
\r
828 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
830 <a id="Ext.sql.SQLiteStore-insert"></a>
\r
831 <b>insert</b>( <code>Number index</code>, <code>Ext.data.Record[] records</code> ) : void <div class="mdesc">
\r
832 <div class="short">Inserts Records into the Store at the given index and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.</div>
\r
834 Inserts Records into the Store at the given index and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event. <div class="mdetail-params">
\r
835 <strong>Parameters:</strong>
\r
836 <ul><li><code>index</code> : Number<div class="sub-desc">The start index at which to insert the passed Records.</div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">An Array of Ext.data.Record objects to add to the cache.</div></li> </ul>
\r
837 <strong>Returns:</strong>
\r
839 <li><code>void</code></li>
\r
845 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#insert" href="output/Ext.data.Store.html#insert">Store</a></td>
\r
847 <tr class="method-row inherited alt expandable">
\r
848 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
850 <a id="Ext.sql.SQLiteStore-isFiltered"></a>
\r
851 <b>isFiltered</b>() : Boolean <div class="mdesc">
\r
852 <div class="short">Returns true if this store is currently filtered</div>
\r
854 Returns true if this store is currently filtered <div class="mdetail-params">
\r
855 <strong>Parameters:</strong>
\r
856 <ul><li>None.</li> </ul>
\r
857 <strong>Returns:</strong>
\r
859 <li><code>Boolean</code></li>
\r
865 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#isFiltered" href="output/Ext.data.Store.html#isFiltered">Store</a></td>
\r
867 <tr class="method-row inherited expandable">
\r
868 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
870 <a id="Ext.sql.SQLiteStore-load"></a>
\r
871 <b>load</b>( <code>Object options</code> ) : Boolean <div class="mdesc">
\r
872 <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.
873 If using remote paging, then the first ...</div>
\r
875 Loads the Record cache from the configured Proxy using the configured Reader.
876 <p>If using remote paging, then the first load call must specify the <tt>start</tt>
877 and <tt>limit</tt> properties in the options.params property to establish the initial
878 position within the dataset, and the number of Records to cache on each read from the Proxy.</p>
879 <p><b>It is important to note that for remote data sources, loading is asynchronous,
880 and this call will return before the new data has been loaded. Perform any post-processing
881 in a callback function, or in a "load" event handler.</b></p> <div class="mdetail-params">
\r
882 <strong>Parameters:</strong>
\r
883 <ul><li><code>options</code> : Object<div class="sub-desc">An object containing properties which control loading options:<ul>
884 <li><b>params</b> :Object<p class="sub-desc">An object containing properties to pass as HTTP parameters to a remote data source.</p></li>
885 <li><b>callback</b> : Function<p class="sub-desc">A function to be called after the Records have been loaded. The callback is
886 passed the following arguments:<ul>
887 <li>r : Ext.data.Record[]</li>
888 <li>options: Options object from the load call</li>
889 <li>success: Boolean success indicator</li></ul></p></li>
890 <li><b>scope</b> : Object<p class="sub-desc">Scope with which to call the callback (defaults to the Store object)</p></li>
891 <li><b>add</b> : Boolean<p class="sub-desc">Indicator to append loaded records rather than replace the current cache.</p></li>
892 </ul></div></li> </ul>
\r
893 <strong>Returns:</strong>
\r
895 <li><code>Boolean</code><div class="sub-desc">Whether the load fired (if beforeload failed).</div></li>
\r
901 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#load" href="output/Ext.data.Store.html#load">Store</a></td>
\r
903 <tr class="method-row inherited alt expandable">
\r
904 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
906 <a id="Ext.sql.SQLiteStore-loadData"></a>
\r
907 <b>loadData</b>( <code>Object data</code>, <span class="optional" title="Optional">[<code>Boolean add</code>]</span> ) : void <div class="mdesc">
\r
908 <div class="short">Loads data from a passed data block and fires the load event. A Reader which understands the format of the data
911 Loads data from a passed data block and fires the <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> event. A Reader which understands the format of the data
912 must have been configured in the constructor. <div class="mdetail-params">
\r
913 <strong>Parameters:</strong>
\r
914 <ul><li><code>data</code> : Object<div class="sub-desc">The data block from which to read the Records. The format of the data expected
915 is dependent on the type of Reader that is configured and should correspond to that Reader's readRecords parameter.</div></li><li><code>add</code> : Boolean<div class="sub-desc">(Optional) True to add the new Records rather than replace the existing cache. <b>Remember that
916 Records in a Store are keyed by their <a ext:cls="Ext.data.Record" ext:member="id" href="output/Ext.data.Record.html#id">id</a>, so added Records with ids which are already present in
917 the Store will <i>replace</i> existing Records. Records with new, unique ids will be added.</b></div></li> </ul>
\r
918 <strong>Returns:</strong>
\r
920 <li><code>void</code></li>
\r
926 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#loadData" href="output/Ext.data.Store.html#loadData">Store</a></td>
\r
928 <tr class="method-row inherited expandable">
\r
929 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
931 <a id="Ext.sql.SQLiteStore-on"></a>
\r
932 <b>on</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc">
\r
933 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
\r
935 Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
\r
936 <strong>Parameters:</strong>
\r
937 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
938 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
\r
939 <strong>Returns:</strong>
\r
941 <li><code>void</code></li>
\r
947 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
\r
949 <tr class="method-row inherited alt expandable">
\r
950 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
952 <a id="Ext.sql.SQLiteStore-purgeListeners"></a>
\r
953 <b>purgeListeners</b>() : void <div class="mdesc">
\r
954 <div class="short">Removes all listeners for this object</div>
\r
956 Removes all listeners for this object <div class="mdetail-params">
\r
957 <strong>Parameters:</strong>
\r
958 <ul><li>None.</li> </ul>
\r
959 <strong>Returns:</strong>
\r
961 <li><code>void</code></li>
\r
967 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
\r
969 <tr class="method-row inherited expandable">
\r
970 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
972 <a id="Ext.sql.SQLiteStore-query"></a>
\r
973 <b>query</b>( <code>String field</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span> ) : MixedCollection <div class="mdesc">
\r
974 <div class="short">Query the records by a specified property.</div>
\r
976 Query the records by a specified property. <div class="mdetail-params">
\r
977 <strong>Parameters:</strong>
\r
978 <ul><li><code>field</code> : String<div class="sub-desc">A field on your records</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the field
979 should begin with, or a RegExp to test against the field.</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li> </ul>
\r
980 <strong>Returns:</strong>
\r
982 <li><code>MixedCollection</code><div class="sub-desc">Returns an Ext.util.MixedCollection of the matched records</div></li>
\r
988 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#query" href="output/Ext.data.Store.html#query">Store</a></td>
\r
990 <tr class="method-row inherited alt expandable">
\r
991 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
993 <a id="Ext.sql.SQLiteStore-queryBy"></a>
\r
994 <b>queryBy</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : MixedCollection <div class="mdesc">
\r
995 <div class="short">Query the cached records in this Store using a filtering function. The specified function
996 will be called with each re...</div>
\r
998 Query the cached records in this Store using a filtering function. The specified function
999 will be called with each record in this Store. If the function returns <tt>true</tt> the record is
1000 included in the results. <div class="mdetail-params">
\r
1001 <strong>Parameters:</strong>
\r
1002 <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
1003 <li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
1004 to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
1005 <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
1006 </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li> </ul>
\r
1007 <strong>Returns:</strong>
\r
1009 <li><code>MixedCollection</code><div class="sub-desc">Returns an Ext.util.MixedCollection of the matched records</div></li>
\r
1015 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#queryBy" href="output/Ext.data.Store.html#queryBy">Store</a></td>
\r
1017 <tr class="method-row inherited expandable">
\r
1018 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1020 <a id="Ext.sql.SQLiteStore-rejectChanges"></a>
\r
1021 <b>rejectChanges</b>() : void <div class="mdesc">
\r
1022 <div class="short">Cancel outstanding changes on all changed records.</div>
\r
1023 <div class="long">
\r
1024 Cancel outstanding changes on all changed records. <div class="mdetail-params">
\r
1025 <strong>Parameters:</strong>
\r
1026 <ul><li>None.</li> </ul>
\r
1027 <strong>Returns:</strong>
\r
1029 <li><code>void</code></li>
\r
1035 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#rejectChanges" href="output/Ext.data.Store.html#rejectChanges">Store</a></td>
\r
1037 <tr class="method-row inherited alt expandable">
\r
1038 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1040 <a id="Ext.sql.SQLiteStore-relayEvents"></a>
\r
1041 <b>relayEvents</b>( <code>Object o</code>, <code>Array events</code> ) : void <div class="mdesc">
\r
1042 <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div>
\r
1043 <div class="long">
\r
1044 Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>. <div class="mdetail-params">
\r
1045 <strong>Parameters:</strong>
\r
1046 <ul><li><code>o</code> : Object<div class="sub-desc">The Observable whose events this object is to relay.</div></li><li><code>events</code> : Array<div class="sub-desc">Array of event names to relay.</div></li> </ul>
\r
1047 <strong>Returns:</strong>
\r
1049 <li><code>void</code></li>
\r
1055 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td>
\r
1057 <tr class="method-row inherited expandable">
\r
1058 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1060 <a id="Ext.sql.SQLiteStore-reload"></a>
\r
1061 <b>reload</b>( <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc">
\r
1062 <div class="short">Reloads the Record cache from the configured Proxy using the configured Reader and
1063 the options from the last load ope...</div>
\r
1064 <div class="long">
\r
1065 <p>Reloads the Record cache from the configured Proxy using the configured Reader and
1066 the options from the last load operation performed.</p>
1067 <p><b>It is important to note that for remote data sources, loading is asynchronous,
1068 and this call will return before the new data has been loaded. Perform any post-processing
1069 in a callback function, or in a "load" event handler.</b></p> <div class="mdetail-params">
\r
1070 <strong>Parameters:</strong>
\r
1071 <ul><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing loading options which may override the options
1072 used in the last load operation. See <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details (defaults to null, in which case
1073 the most recently used options are reused).</div></li> </ul>
\r
1074 <strong>Returns:</strong>
\r
1076 <li><code>void</code></li>
\r
1082 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#reload" href="output/Ext.data.Store.html#reload">Store</a></td>
\r
1084 <tr class="method-row inherited alt expandable">
\r
1085 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1087 <a id="Ext.sql.SQLiteStore-remove"></a>
\r
1088 <b>remove</b>( <code>Ext.data.Record record</code> ) : void <div class="mdesc">
\r
1089 <div class="short">Remove a Record from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.</div>
\r
1090 <div class="long">
\r
1091 Remove a Record from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event. <div class="mdetail-params">
\r
1092 <strong>Parameters:</strong>
\r
1093 <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Ext.data.Record object to remove from the cache.</div></li> </ul>
\r
1094 <strong>Returns:</strong>
\r
1096 <li><code>void</code></li>
\r
1102 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#remove" href="output/Ext.data.Store.html#remove">Store</a></td>
\r
1104 <tr class="method-row inherited expandable">
\r
1105 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1107 <a id="Ext.sql.SQLiteStore-removeAll"></a>
\r
1108 <b>removeAll</b>() : void <div class="mdesc">
\r
1109 <div class="short">Remove all Records from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="clear" href="output/Ext.data.Store.html#clear">clear</a> event.</div>
\r
1110 <div class="long">
\r
1111 Remove all Records from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="clear" href="output/Ext.data.Store.html#clear">clear</a> event. <div class="mdetail-params">
\r
1112 <strong>Parameters:</strong>
\r
1113 <ul><li>None.</li> </ul>
\r
1114 <strong>Returns:</strong>
\r
1116 <li><code>void</code></li>
\r
1122 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#removeAll" href="output/Ext.data.Store.html#removeAll">Store</a></td>
\r
1124 <tr class="method-row inherited alt expandable">
\r
1125 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1127 <a id="Ext.sql.SQLiteStore-removeAt"></a>
\r
1128 <b>removeAt</b>( <code>Number index</code> ) : void <div class="mdesc">
\r
1129 <div class="short">Remove a Record from the Store at the specified index. Fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.</div>
\r
1130 <div class="long">
\r
1131 Remove a Record from the Store at the specified index. Fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event. <div class="mdetail-params">
\r
1132 <strong>Parameters:</strong>
\r
1133 <ul><li><code>index</code> : Number<div class="sub-desc">The index of the record to remove.</div></li> </ul>
\r
1134 <strong>Returns:</strong>
\r
1136 <li><code>void</code></li>
\r
1142 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#removeAt" href="output/Ext.data.Store.html#removeAt">Store</a></td>
\r
1144 <tr class="method-row inherited expandable">
\r
1145 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1147 <a id="Ext.sql.SQLiteStore-removeListener"></a>
\r
1148 <b>removeListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
\r
1149 <div class="short">Removes a listener</div>
\r
1150 <div class="long">
\r
1151 Removes a listener <div class="mdetail-params">
\r
1152 <strong>Parameters:</strong>
\r
1153 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
\r
1154 <strong>Returns:</strong>
\r
1156 <li><code>void</code></li>
\r
1162 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
\r
1164 <tr class="method-row inherited alt expandable">
\r
1165 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1167 <a id="Ext.sql.SQLiteStore-resumeEvents"></a>
\r
1168 <b>resumeEvents</b>() : void <div class="mdesc">
\r
1169 <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
\r
1170 <div class="long">
\r
1171 Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>) <div class="mdetail-params">
\r
1172 <strong>Parameters:</strong>
\r
1173 <ul><li>None.</li> </ul>
\r
1174 <strong>Returns:</strong>
\r
1176 <li><code>void</code></li>
\r
1182 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
\r
1184 <tr class="method-row inherited expandable">
\r
1185 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1187 <a id="Ext.sql.SQLiteStore-setDefaultSort"></a>
\r
1188 <b>setDefaultSort</b>( <code>String fieldName</code>, <span class="optional" title="Optional">[<code>String dir</code>]</span> ) : void <div class="mdesc">
\r
1189 <div class="short">Sets the default sort column and order to be used by the next load operation.</div>
\r
1190 <div class="long">
\r
1191 Sets the default sort column and order to be used by the next load operation. <div class="mdetail-params">
\r
1192 <strong>Parameters:</strong>
\r
1193 <ul><li><code>fieldName</code> : String<div class="sub-desc">The name of the field to sort by.</div></li><li><code>dir</code> : String<div class="sub-desc">(optional) The sort order, "ASC" or "DESC" (case-sensitive, defaults to "ASC")</div></li> </ul>
\r
1194 <strong>Returns:</strong>
\r
1196 <li><code>void</code></li>
\r
1202 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#setDefaultSort" href="output/Ext.data.Store.html#setDefaultSort">Store</a></td>
\r
1204 <tr class="method-row inherited alt expandable">
\r
1205 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1207 <a id="Ext.sql.SQLiteStore-sort"></a>
\r
1208 <b>sort</b>( <code>String fieldName</code>, <span class="optional" title="Optional">[<code>String dir</code>]</span> ) : void <div class="mdesc">
\r
1209 <div class="short">Sort the Records.
1210 If remote sorting is used, the sort is performed on the server, and the cache is
1211 reloaded. If local...</div>
\r
1212 <div class="long">
\r
1214 If remote sorting is used, the sort is performed on the server, and the cache is
1215 reloaded. If local sorting is used, the cache is sorted internally. <div class="mdetail-params">
\r
1216 <strong>Parameters:</strong>
\r
1217 <ul><li><code>fieldName</code> : String<div class="sub-desc">The name of the field to sort by.</div></li><li><code>dir</code> : String<div class="sub-desc">(optional) The sort order, "ASC" or "DESC" (case-sensitive, defaults to "ASC")</div></li> </ul>
\r
1218 <strong>Returns:</strong>
\r
1220 <li><code>void</code></li>
\r
1226 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#sort" href="output/Ext.data.Store.html#sort">Store</a></td>
\r
1228 <tr class="method-row inherited expandable">
\r
1229 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1231 <a id="Ext.sql.SQLiteStore-sum"></a>
\r
1232 <b>sum</b>( <code>String property</code>, <code>Number start</code>, <code>Number end</code> ) : Number <div class="mdesc">
\r
1233 <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div>
\r
1234 <div class="long">
\r
1235 Sums the value of <i>property</i> for each record between start and end and returns the result. <div class="mdetail-params">
\r
1236 <strong>Parameters:</strong>
\r
1237 <ul><li><code>property</code> : String<div class="sub-desc">A field on your records</div></li><li><code>start</code> : Number<div class="sub-desc">The record index to start at (defaults to 0)</div></li><li><code>end</code> : Number<div class="sub-desc">The last record index to include (defaults to length - 1)</div></li> </ul>
\r
1238 <strong>Returns:</strong>
\r
1240 <li><code>Number</code><div class="sub-desc">The sum</div></li>
\r
1246 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#sum" href="output/Ext.data.Store.html#sum">Store</a></td>
\r
1248 <tr class="method-row inherited alt expandable">
\r
1249 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1251 <a id="Ext.sql.SQLiteStore-suspendEvents"></a>
\r
1252 <b>suspendEvents</b>() : void <div class="mdesc">
\r
1253 <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
\r
1254 <div class="long">
\r
1255 Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params">
\r
1256 <strong>Parameters:</strong>
\r
1257 <ul><li>None.</li> </ul>
\r
1258 <strong>Returns:</strong>
\r
1260 <li><code>void</code></li>
\r
1266 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
\r
1268 <tr class="method-row inherited expandable">
\r
1269 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1271 <a id="Ext.sql.SQLiteStore-un"></a>
\r
1272 <b>un</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
\r
1273 <div class="short">Removes a listener (shorthand for removeListener)</div>
\r
1274 <div class="long">
\r
1275 Removes a listener (shorthand for removeListener) <div class="mdetail-params">
\r
1276 <strong>Parameters:</strong>
\r
1277 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
\r
1278 <strong>Returns:</strong>
\r
1280 <li><code>void</code></li>
\r
1286 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
\r
1289 <a id="Ext.sql.SQLiteStore-events"></a>
1290 <h2>Public Events</h2>
1291 <table cellspacing="0" class="member-table">
1293 <th class="sig-header" colspan="2">Event</th>
1294 <th class="msource-header">Defined By</th>
1296 <tr class="event-row inherited expandable">
\r
1297 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1299 <a id="Ext.sql.SQLiteStore-add"></a>
\r
1300 <b>add</b> : ( <code>Store this</code>, <code>Ext.data.Record[] records</code>, <code>Number index</code> ) <div class="mdesc">
\r
1301 <div class="short">Fires when Records have been added to the Store</div>
\r
1302 <div class="long">
\r
1303 Fires when Records have been added to the Store <div class="mdetail-params">
\r
1304 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1305 <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">The array of Records added</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the record(s) were added</div></li> </ul>
\r
1310 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-add" href="output/Ext.data.Store.html#event-add">Store</a></td>
\r
1312 <tr class="event-row inherited alt expandable">
\r
1313 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1315 <a id="Ext.sql.SQLiteStore-beforeload"></a>
\r
1316 <b>beforeload</b> : ( <code>Store this</code>, <code>Object options</code> ) <div class="mdesc">
\r
1317 <div class="short">Fires before a request is made for a new data object. If the beforeload handler returns false
1318 the load action will b...</div>
\r
1319 <div class="long">
\r
1320 Fires before a request is made for a new data object. If the beforeload handler returns false
1321 the load action will be canceled. <div class="mdetail-params">
\r
1322 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1323 <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>options</code> : Object<div class="sub-desc">The loading options that were specified (see <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details)</div></li> </ul>
\r
1328 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-beforeload" href="output/Ext.data.Store.html#event-beforeload">Store</a></td>
\r
1330 <tr class="event-row inherited expandable">
\r
1331 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1333 <a id="Ext.sql.SQLiteStore-clear"></a>
\r
1334 <b>clear</b> : ( <code>Store this</code> ) <div class="mdesc">
\r
1335 <div class="short">Fires when the data cache has been cleared.</div>
\r
1336 <div class="long">
\r
1337 Fires when the data cache has been cleared. <div class="mdetail-params">
\r
1338 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1339 <ul><li><code>this</code> : Store<div class="sub-desc"></div></li> </ul>
\r
1344 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-clear" href="output/Ext.data.Store.html#event-clear">Store</a></td>
\r
1346 <tr class="event-row inherited alt expandable">
\r
1347 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1349 <a id="Ext.sql.SQLiteStore-datachanged"></a>
\r
1350 <b>datachanged</b> : ( <code>Store this</code> ) <div class="mdesc">
\r
1351 <div class="short">Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a
1352 widget that ...</div>
\r
1353 <div class="long">
\r
1354 Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a
1355 widget that is using this Store as a Record cache should refresh its view. <div class="mdetail-params">
\r
1356 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1357 <ul><li><code>this</code> : Store<div class="sub-desc"></div></li> </ul>
\r
1362 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-datachanged" href="output/Ext.data.Store.html#event-datachanged">Store</a></td>
\r
1364 <tr class="event-row inherited expandable">
\r
1365 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1367 <a id="Ext.sql.SQLiteStore-load"></a>
\r
1368 <b>load</b> : ( <code>Store this</code>, <code>Ext.data.Record[] records</code>, <code>Object options</code> ) <div class="mdesc">
\r
1369 <div class="short">Fires after a new set of Records has been loaded.</div>
\r
1370 <div class="long">
\r
1371 Fires after a new set of Records has been loaded. <div class="mdetail-params">
\r
1372 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1373 <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">The Records that were loaded</div></li><li><code>options</code> : Object<div class="sub-desc">The loading options that were specified (see <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details)</div></li> </ul>
\r
1378 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-load" href="output/Ext.data.Store.html#event-load">Store</a></td>
\r
1380 <tr class="event-row inherited alt expandable">
\r
1381 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1383 <a id="Ext.sql.SQLiteStore-loadexception"></a>
\r
1384 <b>loadexception</b> : () <div class="mdesc">
\r
1385 <div class="short">Fires if an exception occurs in the Proxy during loading.
1386 Called with the signature of the Proxy's "loadexception" ev...</div>
\r
1387 <div class="long">
\r
1388 Fires if an exception occurs in the Proxy during loading.
1389 Called with the signature of the Proxy's "loadexception" event. <div class="mdetail-params">
\r
1390 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1391 <ul><li>None.</li> </ul>
\r
1396 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-loadexception" href="output/Ext.data.Store.html#event-loadexception">Store</a></td>
\r
1398 <tr class="event-row inherited expandable">
\r
1399 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1401 <a id="Ext.sql.SQLiteStore-metachange"></a>
\r
1402 <b>metachange</b> : ( <code>Store this</code>, <code>Object meta</code> ) <div class="mdesc">
\r
1403 <div class="short">Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders.</div>
\r
1404 <div class="long">
\r
1405 Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders. <div class="mdetail-params">
\r
1406 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1407 <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>meta</code> : Object<div class="sub-desc">The JSON metadata</div></li> </ul>
\r
1412 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-metachange" href="output/Ext.data.Store.html#event-metachange">Store</a></td>
\r
1414 <tr class="event-row inherited alt expandable">
\r
1415 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1417 <a id="Ext.sql.SQLiteStore-remove"></a>
\r
1418 <b>remove</b> : ( <code>Store this</code>, <code>Ext.data.Record record</code>, <code>Number index</code> ) <div class="mdesc">
\r
1419 <div class="short">Fires when a Record has been removed from the Store</div>
\r
1420 <div class="long">
\r
1421 Fires when a Record has been removed from the Store <div class="mdetail-params">
\r
1422 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1423 <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record that was removed</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the record was removed</div></li> </ul>
\r
1428 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-remove" href="output/Ext.data.Store.html#event-remove">Store</a></td>
\r
1430 <tr class="event-row inherited expandable">
\r
1431 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1433 <a id="Ext.sql.SQLiteStore-update"></a>
\r
1434 <b>update</b> : ( <code>Store this</code>, <code>Ext.data.Record record</code>, <code>String operation</code> ) <div class="mdesc">
\r
1435 <div class="short">Fires when a Record has been updated</div>
\r
1436 <div class="long">
\r
1437 Fires when a Record has been updated <div class="mdetail-params">
\r
1438 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1439 <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record that was updated</div></li><li><code>operation</code> : String<div class="sub-desc">The update operation being performed. Value may be one of:
1440 <pre><code>Ext.data.Record.EDIT
1441 Ext.data.Record.REJECT
1442 Ext.data.Record.COMMIT</code></pre></div></li> </ul>
\r
1447 <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-update" href="output/Ext.data.Store.html#event-update">Store</a></td>
\r