Represents a single read or write operation performed by a Proxy. Operation objects are used to enable communication between Stores and Proxies. Application developers should rarely need to interact with Operation objects directly.
Several Operations can be batched together in a batch.
The action being performed by this Operation. Should be one of 'create', 'read', 'update' or 'destroy'
The action being performed by this Operation. Should be one of 'create', 'read', 'update' or 'destroy'
The batch that this Operation is a part of (optional)
The batch that this Operation is a part of (optional)
Optional array of filter objects. Only applies to 'read' actions.
Optional array of filter objects. Only applies to 'read' actions.
Optional grouping configuration. Only applies to 'read' actions where grouping is desired.
Optional grouping configuration. Only applies to 'read' actions where grouping is desired.
The number of records to load. Used on 'read' actions when paging is being used.
The number of records to load. Used on 'read' actions when paging is being used.
Optional array of sorter objects. Only applies to 'read' actions.
Optional array of sorter objects. Only applies to 'read' actions.
The start index (offset), used in paging when running a 'read' action.
The start index (offset), used in paging when running a 'read' action.
True if this Operation is to be executed synchronously (defaults to true). This property is inspected by a Batch to see if a series of Operations can be executed in parallel or not.
Checks whether this operation should cause writing to occur.
Checks whether this operation should cause writing to occur.
Whether the operation should cause a write to occur.
Returns the error string or object that was set using setException
Returns an array of Ext.data.Model instances as set by the Proxy.
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
The ResultSet object
Returns true if the Operation has been completed
Returns true if the Operation has been completed
True if the Operation is complete
Returns true if the Operation has been started but has not yet completed.
Returns true if the Operation has been started but has not yet completed.
True if the Operation is currently running
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.
True if the Operation has started
Marks the Operation as having experienced an exception. Can be supplied with an option error message/object.
Marks the Operation as having experienced an exception. Can be supplied with an option error message/object.
Optional error string/object