(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

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

interface XBatchExecution
Description
is used for collecting and executing a set of SQL statements.

Methods' Summary
addBatch adds a SQL command to the current batch of commmands for the statement object.  
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( [in] string  sql )
raises( SQLException );

Description
adds a SQL command to the current batch of commmands for the statement object.
Parameter sql
the SQL statement which should be appended to the batch.
Throws
SQLException if a database access error occurs.
clearBatch
void
clearBatch()
raises( 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( 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

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.