Package totalcross.sql
Class BatchUpdateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- totalcross.sql.SQLException
-
- totalcross.sql.BatchUpdateException
-
- All Implemented Interfaces:
java.io.Serializable
public class BatchUpdateException extends SQLException
This class extendsSQLExceptionto count the successful updates in each statement in a batch that was successfully updated prior to the error.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BatchUpdateException()Initializes a new instance ofBatchUpdateExceptionwith no descriptive error message.BatchUpdateException(int[] updateCounts)Initializes a new instance ofBatchUpdateExceptionwith the specified update count information and no descriptive error message.BatchUpdateException(java.lang.String message, int[] updateCounts)This method initializes a new instance ofBatchUpdateExceptionwith the specified descriptive error message and update count information.BatchUpdateException(java.lang.String message, java.lang.String SQLState, int[] updateCounts)This method initializes a new instance ofBatchUpdateExceptionwith the specified descriptive error message, SQL state, and update count information.BatchUpdateException(java.lang.String message, java.lang.String SQLState, int vendorCode, int[] updateCounts)This method initializes a new instance ofBatchUpdateExceptionwith the specified descriptive error message, SQL state, and update count information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getUpdateCounts()This method returns the update count information for this error.-
Methods inherited from class totalcross.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
-
-
-
-
Constructor Detail
-
BatchUpdateException
public BatchUpdateException(java.lang.String message, java.lang.String SQLState, int vendorCode, int[] updateCounts)This method initializes a new instance ofBatchUpdateExceptionwith the specified descriptive error message, SQL state, and update count information. The vendor specific error code will be initialized to 0.- Parameters:
message- The descriptive error message.SQLState- The SQL state information for this error.vendorCode-updateCounts- The update count information for this error.
-
BatchUpdateException
public BatchUpdateException(java.lang.String message, java.lang.String SQLState, int[] updateCounts)This method initializes a new instance ofBatchUpdateExceptionwith the specified descriptive error message, SQL state, and update count information. The vendor specific error code will be initialized to 0.- Parameters:
message- The descriptive error message.SQLState- The SQL state information for this error.updateCounts- The update count information for this error.
-
BatchUpdateException
public BatchUpdateException(java.lang.String message, int[] updateCounts)This method initializes a new instance ofBatchUpdateExceptionwith the specified descriptive error message and update count information. The SQL state will be initialized tonulland the vendor specific error code will be initialized to 0.- Parameters:
message- The descriptive error message.updateCounts- The update count information for this error.
-
BatchUpdateException
public BatchUpdateException(int[] updateCounts)
Initializes a new instance ofBatchUpdateExceptionwith the specified update count information and no descriptive error message. This SQL state will be initialized tonulland the vendor specific error code will be initialized to 0.- Parameters:
updateCounts- The update count array.
-
BatchUpdateException
public BatchUpdateException()
Initializes a new instance ofBatchUpdateExceptionwith no descriptive error message. The SQL state and update count will be initialized tonulland the vendor specific error code will initialized to 0.
-
-
Method Detail
-
getUpdateCounts
public int[] getUpdateCounts()
This method returns the update count information for this error. If notnullthis is an array ofint'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:
- The update count information, which may be
null.
-
-