| java.lang.Object java.lang.Throwable java.lang.Exception com.ibatis.sqlmap.engine.execution.BatchException
BatchException | public class BatchException extends Exception (Code) | | This exception is thrown if a 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.
author: Jeff Butler |
getBatchUpdateException | public BatchUpdateException getBatchUpdateException()(Code) | | Returns the BatchUpdateException that caused the nested batch
to fail. That exception contains an array of row counts
that can be used to determine exactly which statemtn of the
batch caused the failure (or failures).
the root BatchUpdateException |
getFailingSqlStatement | public String getFailingSqlStatement()(Code) | | Returns the SQL statement that caused the failure
(not the parameters)
the failing SQL string |
getFailingStatementId | public String getFailingStatementId()(Code) | | Returns the statement id of the statement that caused the failure
the statement id |
getSuccessfulBatchResults | public List getSuccessfulBatchResults()(Code) | | Returns a list of BatchResult objects. There will be one entry
in the list for each successful sub-batch executed before the failing
batch.
the previously successful batch results (may be an empty listif no batch has executed successfully) |
|
|