Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.sql

Class BatchUpdateException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.sql.SQLException
         |
         +--java.sql.BatchUpdateException


public class BatchUpdateException

extends SQLException

This class extends SQLException to count the successful updates in each statement in a batch that was successfully updated prior to the error.

Author:

Constructor Summary

BatchUpdateException(java.lang.String message, java.lang.String SQLState, int vendorCode, int[] updateCounts)

This method initializes a new instance of BatchUpdateException with the specified descriptive error message, SQL state, and update count information.
BatchUpdateException(java.lang.String message, java.lang.String SQLState, int[] updateCounts)

This method initializes a new instance of BatchUpdateException with the specified descriptive error message, SQL state, and update count information.
BatchUpdateException(java.lang.String message, int[] updateCounts)

This method initializes a new instance of BatchUpdateException with the specified descriptive error message and update count information.
BatchUpdateException(int[] updateCounts)

Initializes a new instance of BatchUpdateException with the specified update count information and no descriptive error message.
BatchUpdateException()

Initializes a new instance of BatchUpdateException with no descriptive error message.

Method Summary

int[]getUpdateCounts()

This method returns the update count information for this error.

Constructor Details

BatchUpdateException

public BatchUpdateException()

Initializes a new instance of BatchUpdateException with no descriptive error message. The SQL state and update count will be initialized to null and the vendor specific error code will initialized to 0.


BatchUpdateException

public BatchUpdateException(int[] updateCounts)

Initializes a new instance of BatchUpdateException with the specified update count information and no descriptive error message. This SQL state will be initialized to null and the vendor specific error code will be initialized to 0.

Parameters:


BatchUpdateException

public BatchUpdateException(java.lang.String message, int[] updateCounts)

This method initializes a new instance of BatchUpdateException with the specified descriptive error message and update count information. The SQL state will be initialized to null and the vendor specific error code will be initialized to 0.

Parameters:


BatchUpdateException

public BatchUpdateException(java.lang.String message, java.lang.String SQLState, int[] updateCounts)

This method initializes a new instance of BatchUpdateException with the specified descriptive error message, SQL state, and update count information. The vendor specific error code will be initialized to 0.

Parameters:


BatchUpdateException

public BatchUpdateException(java.lang.String message, java.lang.String SQLState, int vendorCode, int[] updateCounts)

This method initializes a new instance of BatchUpdateException with the specified descriptive error message, SQL state, and update count information. The vendor specific error code will be initialized to 0.

Parameters:


Method Details

getUpdateCounts

public int[] getUpdateCounts()

This method returns the update count information for this error. If not null this is an array of int's that are the update accounts for each command that was successfully executed. The array elements are in the order that the commands were executed.

Returns: