BatchSQLExceptionクラス
BatchSQLExceptionクラスは、バッチ処理エラーを処理するメソッドを提供します。BatchSQLExceptionクラスはSQLExceptionクラスから導出されるため、すべてのBatchSQLExceptionインスタンスは、表13-6に示したメソッド以外に、SQLExceptionのすべてのメソッドをサポートします。
getException()
指定されたindexに一致する例外を戻します。
構文
SQLException getSQLException (
unsigned int index) const;
getFailedRowCount()
INSERT文またはUPDATE文が失敗した行の数を戻します。
構文
unsigned int getFailedRowCount( ) const;
getRowNum()
指定されたindexに一致したエラーのある行の番号を戻します。
構文
unsigned int getRowNum(
unsigned int index) const;