Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

com :: sun :: star :: sdbc ::

interface XPreparedBatchExecution

Base Interface
com::sun::star::uno::XInterface

Description
is used for batch execution on PreparedStatements.

A PreparedStatement uses one precompiled SQL Statement. In batch execution it is possible to set collection of parameter settings, which are executed in one batch job.



Known Services which Export this Interface

com::sun::star::sdbc::PreparedStatement represents a precompiled SQL statement.

Methods' Summary

addBatch adds a set of parameters to the batch.
clearBatch makes the set of commands in the current batch empty.
executeBatch submits a batch of commands to the database for execution.

Methods' Details

addBatch
 
void
addBatch( )
raises ( com::sun::star::sdbc::SQLException );

Description
adds a set of parameters to the batch.
Throws
SQLException if a database access error occurs.
clearBatch
 
void
clearBatch( )
raises ( com::sun::star::sdbc::SQLException );

Description
makes the set of commands in the current batch empty.
Throws
SQLException if a database access error occurs.
executeBatch
 
sequence< long >
executeBatch( )
raises ( com::sun::star::sdbc::SQLException );

Description
submits a batch of commands to the database for execution.
Returns
an array of update counts containing one element for each command in the batch. The array is ordered according to the order in which commands were inserted into the batch.
Throws
SQLException if a database access error occurs.

Top of Page