Monday, January 19, 2009

A.3.2 Batch Updates

The new batch update facility provides the ability to send multiple updates to the database to be executed as a batch rather than sending each update separately. The following interfaces add methods that support batch updates, and the exception BatchUpdateException is new.

• Statement, PreparedStatement, and CallableStatement

• methods for adding update statements to a batch, clearing all update statements, and executing a batch

• DatabaseMetaData

• method indicating whether the DBMS and driver support batch updates

• BatchUpdateException

• exception thrown when an error occurs in a batch update

0 Comments: