com.ibatis.sqlmap.engine.execution
public class BatchException extends Exception
java.sql.BatchUpdateException is caught
during the execution of any nested batch. The exception contains the
java.sql.BatchUpdateException that is the root cause, as well as
the results from any prior nested batch that executed successfully. This exception
is only thrown from the executeBatchDetailed method.
| Constructor Summary | |
|---|---|
| BatchException(String message, BatchUpdateException cause, List successfulBatchResults, String failingStatementId, String failingSqlStatement) | |
| Method Summary | |
|---|---|
| BatchUpdateException | getBatchUpdateException()
Returns the BatchUpdateException that caused the nested batch
to fail. |
| String | getFailingSqlStatement()
Returns the SQL statement that caused the failure
(not the parameters)
|
| String | getFailingStatementId()
Returns the statement id of the statement that caused the failure
|
| List | getSuccessfulBatchResults()
Returns a list of BatchResult objects. |
Returns: the root BatchUpdateException
Returns: the failing SQL string
Returns: the statement id
Returns: the previously successful batch results (may be an empty list if no batch has executed successfully)