The BatchUpdateException Class

From InterBase
Jump to: navigation, search

A new BatchUpdateException class has been implemented in order to support JDBC Batch update functionality. Here is the list of methods and constructors in the new class:

Method/Constructor Functionality
public BatchUpdateException(<br/>
 String reason, <br/>
 String SQLState, <br/>
 int vendorCode, <br/>
 int [] updateCounts)

Constructs a BatchUpdateException object where:

reason is a string describing the exception.

SQLState is an object containing Open Group code identification.

vendorCode identifies the vendor-specific database error code.

updateCounts contains an array of INT values where each element indicates the row count for each SQL UPDATE command that executed successfully before the exception was thrown.

public BatchUpdateException(<br/>
 String reason, <br/>
 String SQLState, <br/>
 int [] updateCounts)

Constructs a BatchUpdateException object where:

reason is a string describing the exception.

SQLState is an object containing the InterBase error code.

updateCounts contains an array of INT values where each element indicates the row count for each SQL UPDATE command that executed successfully before the exception was thrown.

The vendor code is implicitly set to zero.

public BatchUpdateException(<br/>
 String reason, <br/>
 int [] updateCounts)

Constructs a BatchUpdateException object where:

reason is a string describing the exception.

updateCounts contains an array of INT values where each element indicates the row count for each SQL UPDATE command that executed successfully before the exception was thrown.

The following values are implicitly set: the vendorCode is set to zero and the Open Group code identification is set to null.

public BatchUpdateException(int [] updateCounts)

Constructs a BatchUpdateException object where updateCounts contains an array of INT values in which each element indicates the row count for each SQL UPDATE command that executed successfully before the exception was thrown.

The following values are implicitly set: reason is set to null, vendorCode is set to zero, and the Open Group code identification is set to null.

public BatchUpdateException()

The following values are implicitly set:

updateCounts is set to a zero-length integer array.

reason is set to null.

vendorCode is set to zero.

the Open Group code identification is set to null.

public int [] getUpdateCounts()

Retrieves an array of INT values where each element indicates the row count for each SQL UPDATE command that executed successfully before the exception was thrown.