public interface MySqlStatement
extends io.r2dbc.spi.Statement
Statement for a SQL statement against a MySQL database.| Modifier and Type | Method and Description |
|---|---|
MySqlStatement |
add() |
MySqlStatement |
bind(int index,
Object value) |
MySqlStatement |
bind(String name,
Object value) |
MySqlStatement |
bindNull(int index,
Class<?> type) |
MySqlStatement |
bindNull(String name,
Class<?> type) |
Flux<? extends MySqlResult> |
execute() |
default MySqlStatement |
fetchSize(int rows) |
default MySqlStatement |
returnGeneratedValues(String... columns) |
MySqlStatement add()
add in interface io.r2dbc.spi.StatementthisIllegalStateException - if the statement is parameterized and not all parameters are providedMySqlStatement bind(int index, Object value)
bind in interface io.r2dbc.spi.Statementindex - the index to bind tovalue - the value to bindthisIllegalArgumentException - if value is nullIndexOutOfBoundsException - if the parameter index is out of rangeUnsupportedOperationException - if the statement is not a parameterized statementMySqlStatement bind(String name, Object value)
bind in interface io.r2dbc.spi.Statementname - the name of identifier to bind tovalue - the value to bindthisIllegalArgumentException - if name or value is nullNoSuchElementException - if name is not a known name to bindUnsupportedOperationException - if the statement is not a parameterized statementMySqlStatement bindNull(int index, Class<?> type)
bindNull in interface io.r2dbc.spi.Statementindex - the index to bind totype - the type of null valuethisIllegalArgumentException - if type is nullIndexOutOfBoundsException - if the parameter index is out of rangeUnsupportedOperationException - if the statement is not a parameterized statementMySqlStatement bindNull(String name, Class<?> type)
bindNull in interface io.r2dbc.spi.Statementname - the name of identifier to bind totype - the type of null valuethisIllegalArgumentException - if name or type is nullNoSuchElementException - if name is not a known name to bindUnsupportedOperationException - if the statement is not a parameterized statementFlux<? extends MySqlResult> execute()
execute in interface io.r2dbc.spi.StatementFlux representing MySqlResults of the statementIllegalStateException - if the statement is parameterized and not all parameters are provideddefault MySqlStatement returnGeneratedValues(String... columns)
returnGeneratedValues in interface io.r2dbc.spi.Statementcolumns - the names of the columns to returnthisIllegalArgumentException - if columns, or any item is empty or nulldefault MySqlStatement fetchSize(int rows)
fetchSize in interface io.r2dbc.spi.Statementrows - the number of rows to fetchthisIllegalArgumentException - if fetch size is less than zeroCopyright © 2018–2024 asyncer.io. All rights reserved.