Sys.Data.AdoNetActionSequence Class

Exposes methods and properties for performing a sequence of data operations by using a data service.

Namespace: Sys.Data.

Inherits: None.

Sys.Data.AdoNetActionSequence = function(dataService)

Public Constructors

Name

Description

Sys.Data.AdoNetActionSequence Constructor constructor

Creates a new instance of the Sys.Data.AdoNetActionSequence class.

Members

Member

Description

Sys.Data.AdoNetActionSequence.addInsertAction Method Method

Adds an insert operation to the execution queue.

Sys.Data.AdoNetActionSequence.addRemoveAction Method Method

Adds a remove operation to the execution queue.

Sys.Data.AdoNetActionSequence.addUpdateAction Method Method

Adds an update operation to the execution queue.

Sys.Data.AdoNetActionSequence.clearActions Method Method

Clears the execution queue.

Sys.Data.AdoNetActionSequence.execute Method Method

Executes the operations in the action queue.

Sys.Data.AdoNetActionSequence.serviceProxy Property Property

Gets the data service object that is used for data operations.

Remarks

You use the AdoNetActionSequence class to queue data operations that you want to execute as a batch. You use the addInsertAction, addUpdateAction, and addRemoveAction methods to add operations to the queue. The operations are executed in the same order that you add them to the queue. To execute the batch of operations, you call the execute method. When you call the execute method, you can pass a callback method that is called after all the operations have executed. In that callback method, you can examine the results of each operation in the queue.

You create a new instance of the AdoNetActionSequence class by calling the createActionSequence method of the AdoNetServiceProxy class. The createActionSequence method returns an AdoNetActionSequence object whose serviceProxy property is set to the current instance of the AdoNetServiceProxy class.

To remove data operations from the queue, you call the AdoNetActionSequence.clearActions method.