|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.BatchUpdateException
public class BatchUpdateException
This class extends SQLException
to count the successful
updates in each statement in a batch that was successfully updated prior
to the error.
Constructor Summary | |
---|---|
BatchUpdateException()
Initializes a new instance of BatchUpdateException
with no descriptive error message. |
|
BatchUpdateException(int[] updateCounts)
Initializes a new instance of BatchUpdateException
with the specified update count information and no descriptive error
message. |
|
BatchUpdateException(String message,
int[] updateCounts)
This method initializes a new instance of BatchUpdateException
with the specified descriptive error message and update count information. |
|
BatchUpdateException(String message,
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(String message,
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. |
Method Summary | |
---|---|
int[] |
getUpdateCounts()
This method returns the update count information for this error. |
Methods inherited from class java.sql.SQLException |
---|
getErrorCode, getNextException, getSQLState, setNextException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BatchUpdateException(String message, String SQLState, int vendorCode, int[] updateCounts)
BatchUpdateException
with the specified descriptive error message, SQL state, and update count
information. The vendor specific error code will be initialized to 0.
message
- The descriptive error message.SQLState
- The SQL state information for this error.vendorCode
- updateCounts
- The update count information for this error.public BatchUpdateException(String message, String SQLState, int[] updateCounts)
BatchUpdateException
with the specified descriptive error message, SQL state, and update count
information. The vendor specific error code will be initialized to 0.
message
- The descriptive error message.SQLState
- The SQL state information for this error.updateCounts
- The update count information for this error.public BatchUpdateException(String message, int[] updateCounts)
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.
message
- The descriptive error message.updateCounts
- The update count information for this error.public BatchUpdateException(int[] updateCounts)
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.
updateCounts
- The update count array.public BatchUpdateException()
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.
Method Detail |
---|
public int[] getUpdateCounts()
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.
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |