-
public interface ResultOrRows
A type that contains either aResult
, an update count, or an exception.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataAccessException
exception()
The exception if applicable ornull
if there was no exception.Result<Record>
result()
The result ornull
if there was no result.int
rows()
The update count if applicable, or the number of rows inresult()
.
-
-
-
Method Detail
-
result
Result<Record> result()
The result ornull
if there was no result.- See Also:
Statement.getResultSet()
-
rows
int rows()
The update count if applicable, or the number of rows inresult()
.- See Also:
Statement.getUpdateCount()
-
exception
DataAccessException exception()
The exception if applicable ornull
if there was no exception.Exceptions are made available through this API only if
Settings.getThrowExceptions()
is set toThrowExceptions.THROW_NONE
. In all other cases, a batch execution is aborted and exceptions are thrown as ordinary Java exceptions.
-
-