Name

BatchUpdateException

Synopsis

This exception, which is a subclass of SQLException, is thrown when a batch update operation fails. The exception includes a method, getUpdateCounts(), that returns an array of int values, where the values correspond to the update counts for the successful update operations in the batch.

                  Returned By
public class BatchUpdateException extends SQLException {
// Public Constructors
   public BatchUpdateException();  
   public BatchUpdateException( int[] updateCounts);  
   public BatchUpdateException(String reason, 
        int[] updateCounts);  
   public BatchUpdateException(String reason, String SQLState, 
        int[] updateCounts);  
   public BatchUpdateException(String reason, String SQLState, 
        int vendorCode, int[] updateCounts);  
// Public Instance Methods
   public int[] getUpdateCounts();                       // default:null
}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.