class type t =Inheritsobject
..end
method actionCommitRecordsRe : Regexp.regexp Js.t Js.prop
The RegExp used to categorize actions that require record commits.
Defaults to: /^(?:create|update)$/i
method actionSkipSyncRe : Regexp.regexp Js.t Js.prop
The RegExp used to categorize actions that skip local record synchronization. This defaults to match 'destroy'.
Defaults to: /^destroy$/i
method allowWrite : bool Js.t Js.meth
Checks whether this operation should cause writing to occur.
Returns:
bool Js.t
Whether the operation should cause a write to occur.
method commitRecords : Ext_data_Model.t Js.js_array Js.t -> unit Js.meth
This method is called to commit data to this instance's records given the records in the server response. This is followed by calling Ext.data.Model.commit on all those records (for 'create' and 'update' actions).
If this action is 'destroy', any server records are ignored and the Ext.data.Model.commit method is not called.
Parameters:
Ext_data_Model.t Js.js_array Js.t
An array of Ext.data.Model objects returned by the server.
method getError : 'a. 'a Js.t Js.meth
method getRecords : Ext_data_Model.t Js.js_array Js.t Js.meth
Returns the records associated with this operation. For read operations the records as set by the Proxy will be returned (returns null
if the proxy has not yet set the records).
For create, update, and destroy operations the operation's initially configured records will be returned, although the proxy may modify these records' data at some point after the operation is initialized.
method getResultSet : Ext_data_ResultSet.t Js.t Js.meth
Returns the ResultSet object (if set by the Proxy). This object will contain the model instances as well as meta data such as number of instances fetched, number available etc
Returns:
Ext_data_ResultSet.t Js.t
The ResultSet object
method hasException : bool Js.t Js.meth
Returns true if this Operation encountered an exception (see also getError)
Returns:
bool Js.t
True if there was an exception
method isComplete : bool Js.t Js.meth
Returns true if the Operation has been completed
Returns:
bool Js.t
True if the Operation is complete
method isRunning : bool Js.t Js.meth
Returns true if the Operation has been started but has not yet completed.
Returns:
bool Js.t
True if the Operation is currently running
method isStarted : bool Js.t Js.meth
Returns true if the Operation has been started. Note that the Operation may have started AND completed, see isRunning to test if the Operation is currently running.
Returns:
bool Js.t
True if the Operation has started
method setCompleted : unit Js.meth
Marks the Operation as completed.
method setException : 'b. 'b Js.t Js.optdef -> unit Js.meth
Marks the Operation as having experienced an exception. Can be supplied with an option error message/object.
Parameters:
_ Js.t
(optional) error string/object
method setStarted : unit Js.meth
Marks the Operation as started.
method setSuccessful : unit Js.meth
Marks the Operation as successful.
method wasSuccessful : bool Js.t Js.meth
Returns true if the Operation has completed and was successful
Returns:
bool Js.t
True if successful