Class type Ext_data_Operation.t


class type t = object .. end
Inherits
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:


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:


method getError : 'a. 'a Js.t Js.meth

Returns the error string or object that was set using setException

Returns:


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:


method hasException : bool Js.t Js.meth

Returns true if this Operation encountered an exception (see also getError)

Returns:


method isComplete : bool Js.t Js.meth

Returns true if the Operation has been completed

Returns:


method isRunning : bool Js.t Js.meth

Returns true if the Operation has been started but has not yet completed.

Returns:


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:


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:


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: