public interface ResultOrRows
Result, an update count, or an
exception.| Modifier and Type | Method and Description |
|---|---|
DataAccessException |
exception()
The exception if applicable or
null if there was no
exception. |
Result<Record> |
result()
The result or
null if there was no result. |
int |
rows()
The update count if applicable, or the number of rows in
result(). |
Result<Record> result()
null if there was no result.Statement.getResultSet()int rows()
result().Statement.getUpdateCount()DataAccessException exception()
null if there was no
exception.
Exceptions are made available through this API only if
Settings.getThrowExceptions() is set to
ThrowExceptions.THROW_NONE. In all other cases, a batch execution
is aborted and exceptions are thrown as ordinary Java exceptions.
Copyright © 2018. All Rights Reserved.