OUT parameters from a database query, later on referred to as items.
Values can for columns or OUT parameters be either retrieved by specifying a name or the index.
Indexes are 0-based.
Column and OUT parameter names used as input to getter methods are case-insensitive.
When a get method is called with a name and several items have the same name, then the value of the first matching item will be returned.
Items that are not explicitly named in the query should be referenced through indexes.
For maximum portability, items within each Readable should be read in left-to-right order, and each item should be read only once.
get(String) and get(int) without specifying a target type returns a suitable value representation. The R2DBC specification contains a mapping table that shows default
mappings between database types and Java types.
Specifying a target type, the R2DBC driver attempts to convert the value to the target type.
A item is invalidated after consumption.
Row, OutParameters
| Modifier and Type | Method and Description |
|---|---|
| public default Object | Returns: the value. Value can benull.the index of the parameter starting at index)0Returns the value using the default type mapping. |
| public < the type of the item being returned. T> T | |
| public default Object | |
| public < the type of the item being returned. T> T |
| get | back to summary |
|---|---|
| public default Object get(int index) Returns the value using the default type mapping. The default implementation of this method calls
| |
| get | back to summary |
|---|---|
| public <T> T get(int index, Class<T> type) Returns the value for a parameter. Use
| |
| get | back to summary |
|---|---|
| public default Object get(String name) Returns the value for a parameter using the default type mapping. The default implementation of this method calls
| |
| get | back to summary |
|---|---|
| public <T> T get(String name, Class<T> type) Returns the value. Use
| |