Class type Ext_data_proxy_Proxy.t


class type t = object .. end
Inherits
method isProxy : bool Js.t Js.prop

true in this class to identify an object as an instantiated Proxy, or subclass thereof.

Defaults to: true

method isSynchronous : bool Js.t Js.prop

Identifies the proxy as (a)synchronous.

Defaults to: false

method batch : 'a. 'a Js.t -> Ext_data_Batch.t Js.t Js.meth

Performs a batch of Operations, in the order specified by batchOrder. Used internally by Ext.data.Store's sync method. Example usage:

myProxy.batch({
    create : [myModel1, myModel2],
    update : [myModel3],
    destroy: [myModel4, myModel5]
});

Where the myModel* above are Model instances - in this case 1 and 2 are new instances and have not been saved before, 3 has been saved previously but needs to be updated, and 4 and 5 have already been saved but should now be destroyed.

Note that the previous version of this method took 2 arguments (operations and listeners). While this is still supported for now, the current signature is now a single options argument that can contain both operations and listeners, in addition to other options. The multi-argument signature will likely be deprecated in a future release.

Parameters:

Returns:


method create : 'b 'c. Ext_data_Operation.t Js.t -> 'b Js.callback -> 'c Js.t -> unit Js.meth

Performs the given create operation.

Parameters:


method destroy : 'd 'e. Ext_data_Operation.t Js.t -> 'd Js.callback -> 'e Js.t -> unit Js.meth

Performs the given destroy operation.

Parameters:


method getModel : Ext_data_Model.t Js.t Js.meth

Returns the model attached to this Proxy

Returns:


method getReader : Ext_data_reader_Reader.t Js.t Js.meth

Returns the reader currently attached to this proxy instance

Returns:


method getWriter : Ext_data_writer_Writer.t Js.t Js.meth

Returns the writer currently attached to this proxy instance

Returns:


method read : 'f 'g. Ext_data_Operation.t Js.t -> 'f Js.callback -> 'g Js.t -> unit Js.meth

Performs the given read operation.

Parameters:


method setModel : 'h. 'h Js.t -> bool Js.t -> unit Js.meth

Sets the model associated with this proxy. This will only usually be called by a Store

Parameters:


method setReader : 'i. 'i Js.t -> Ext_data_reader_Reader.t Js.t Js.meth

Sets the Proxy's Reader by string, config object or Reader instance

Parameters:

Returns:


method setWriter : 'j. 'j Js.t -> Ext_data_writer_Writer.t Js.t Js.meth

Sets the Proxy's Writer by string, config object or Writer instance

Parameters:

Returns:


method update : 'k 'l. Ext_data_Operation.t Js.t -> 'k Js.callback -> 'l Js.t -> unit Js.meth

Performs the given update operation.

Parameters: