Class java.sql.BatchUpdateException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.sql.SQLException
|
+--java.sql.BatchUpdateException
- public class BatchUpdateException
- extends SQLException
JDBC 2.0
The BatchUpdateException class provides information on an error that
occurs during a batch update operation. In addition to the information
provided by SQLException, a BatchUpdateException provides the update
counts for all commands that were executed successfully during the
batch update, i.e. all commands that were executed before the error
occurred. The order of elements in an array of update counts
corresponds to the order in which commands were added to the batch.
- See Also:
- Serialized Form
Constructor Summary
|
BatchUpdateException()
Construct a BatchUpdateException; reason defaults to null, SQLState
defaults to null and vendorCode defaults to 0. UpdateCounts is null. |
BatchUpdateException(int[] updateCounts)
Construct a BatchUpdateException; reason defaults to null, SQLState
defaults to null and vendorCode defaults to 0. |
BatchUpdateException(String reason,
int[] updateCounts)
Construct a BatchUpdateException with a reason; SQLState defaults to
null and vendorCode defaults to 0. |
BatchUpdateException(String reason,
String SQLState,
int vendorCode,
int[] updateCounts)
Construct a fully specified BatchUpdateException. |
BatchUpdateException(String reason,
String SQLState,
int[] updateCounts)
Construct a BatchUpdateException with a reason and SQLState;
vendorCode defaults to 0. |
BatchUpdateException
public BatchUpdateException(String reason,
String SQLState,
int vendorCode,
int[] updateCounts)
- Construct a fully specified BatchUpdateException.
- Parameters:
reason
- a description of the warning
SQLState
- an XOPEN code identifying the warning
vendorCode
- a database vendor specific warning code
updateCounts
- an array of update counts
BatchUpdateException
public BatchUpdateException(String reason,
String SQLState,
int[] updateCounts)
- Construct a BatchUpdateException with a reason and SQLState;
vendorCode defaults to 0.
- Parameters:
reason
- a description of the exception
SQLState
- an XOPEN code identifying the exception
updateCounts
- an array of update counts
BatchUpdateException
public BatchUpdateException(String reason,
int[] updateCounts)
- Construct a BatchUpdateException with a reason; SQLState defaults to
null and vendorCode defaults to 0.
- Parameters:
reason
- a description of the exception
updateCounts
- an array of update counts
BatchUpdateException
public BatchUpdateException(int[] updateCounts)
- Construct a BatchUpdateException; reason defaults to null, SQLState
defaults to null and vendorCode defaults to 0.
- Parameters:
updateCounts
- an array of update counts
BatchUpdateException
public BatchUpdateException()
- Construct a BatchUpdateException; reason defaults to null, SQLState
defaults to null and vendorCode defaults to 0. UpdateCounts is null.
getUpdateCounts
public int[] getUpdateCounts()
- Return the array of update counts.
Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.