public interface Result
getRowsUpdated()
or map(BiFunction)
.
A Result
object maintains a consumption state that may be backed by a cursor pointing
to its current row of data. A Result
allows read-only and forward-only consumption of statement results.
Thus, you can consume either getRowsUpdated()
or Rows
through it only once and only from the first row to the last row.
Modifier and Type | Method and Description |
---|---|
Publisher<Integer> |
getRowsUpdated()
Returns the number of rows updated by a query against a database.
|
<T> Publisher<T> |
map(BiFunction<Row,RowMetadata,? extends T> mappingFunction)
Returns a mapping of the rows that are the results of a query against a database.
|
Publisher<Integer> getRowsUpdated()
IllegalStateException
- if the result was consumed<T> Publisher<T> map(BiFunction<Row,RowMetadata,? extends T> mappingFunction)
Row
can be only considered valid within a
mapping function
callback.T
- the type of the mapped valuemappingFunction
- the BiFunction
that maps a Row
and RowMetadata
to a valueIllegalArgumentException
- if mappingFunction
is null
IllegalStateException
- if the result was consumedCopyright © 2019. All rights reserved.