Oracle® C++ Call Interface Programmer's Guide 10g Release 2 (10.2) Part Number B14294-02 |
|
|
PDF · Mobi · ePub |
The BatchSQLException
class provides methods for handling batch processing errors. Because BatchSQLException
class is derived from the SQLException Class, all BatchSQLException
instances support all methods of SQLException, in addition to the methods summarized in Table 12-6.
See Also:
"Modifying Rows Iteratively" section in Example 11-0, "Optimizing Performance of OCCI Applications".Table 12-6 Summary of BatchSQLException Methods
Method | Summary |
---|---|
Returns the exception. |
|
Returns the number of rows with failed inserts or updates. |
|
Returns the number of the row that has an insert or updated error |
Returns the exception that matches the specified index
.
SQLException getSQLException ( unsigned int index) const;
Parameter | Description |
---|---|
index |
The index into the list of errors returned by the batch process. |
Returns the number of rows for which the statement insert or update failed.
unsigned int getFailedRowCount( ) const;
Returns the number of the row with an error, matching the specified index
.
unsigned int getRowNum( unsigned int index) const;
Parameter | Description |
---|---|
index |
The index into the list of errors returned by the batch process. |