batch_execute


Description:

public SList<Object> batch_execute (Batch batch, Set? @params, StatementModelUsage model_usage) throws Error

Executes all the statements contained in batch (in the order in which they were added to batch), and returns a list of Object objects, at most one Object for each statement; see statement_execute for details about the returned objects.

If one of the statement fails, then none of the subsequent statement will be executed, and the method returns the list of Object created by the correct execution of the previous statements. If a transaction is required, then it should be started before calling this method.

Parameters:

this

a Connection object

batch

a Batch object which contains all the statements to execute

model_usage

specifies how the returned data model(s) will be used, as a StatementModelUsage enum

params

a Set object (which can be obtained using get_parameters), or null

Returns:

a new list of Object objects