|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.ibatis.sqlmap.engine.execution.BatchException
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.
Constructor Summary | |
BatchException(java.lang.String message,
java.sql.BatchUpdateException cause,
java.util.List successfulBatchResults,
java.lang.String failingStatementId,
java.lang.String failingSqlStatement)
|
Method Summary | |
java.sql.BatchUpdateException |
getBatchUpdateException()
Returns the BatchUpdateException that caused the nested batch to fail. |
java.lang.String |
getFailingSqlStatement()
Returns the SQL statement that caused the failure (not the parameters) |
java.lang.String |
getFailingStatementId()
Returns the statement id of the statement that caused the failure |
java.util.List |
getSuccessfulBatchResults()
Returns a list of BatchResult objects. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BatchException(java.lang.String message, java.sql.BatchUpdateException cause, java.util.List successfulBatchResults, java.lang.String failingStatementId, java.lang.String failingSqlStatement)
Method Detail |
public java.sql.BatchUpdateException getBatchUpdateException()
public java.util.List getSuccessfulBatchResults()
public java.lang.String getFailingSqlStatement()
public java.lang.String getFailingStatementId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |