Statement implementation delegating all R2DBC calls
to an internal getDelegate().
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Statement | add()
Implements io. bind and bindNull.
|
| public Statement | bind(int
the index to bind to index, Object the value to bind value)Implements io. null value to an indexed parameter.
|
| public Statement | bind(String
the name of identifier to bind to name, Object the value to bind value)Implements io. null to a named parameter.
|
| public Statement | bindNull(int
the index to bind to index, Class<?> the type of null value type)Implements io. null value to an indexed parameter.
|
| public Statement | bindNull(String
the name of identifier to bind to name, Class<?> the type of null value type)Implements io. null value to a named parameter.
|
| public Publisher | execute()
Implements io. Results.
|
| public Statement | fetchSize(int
the number of rows to fetch rows)Overrides default io. Statement to retrieve a fixed number of rows when fetching results from a query instead deriving fetch size from back pressure.
|
| public Statement | |
| public Statement | returnGeneratedValues(String...
the names of the columns to return columns)Overrides default io. Statement to return the generated values from any rows created by this Statement in the Result returned from execute().
|
| delegate | back to summary |
|---|---|
| private final Statement delegate | |
| DefaultStatement | back to summary |
|---|---|
| public DefaultStatement(Statement delegate) | |
| add | back to summary |
|---|---|
| public Statement add() Implements io. Doc from io. Save the current binding and create a new one to indicate the statement should be executed again with new bindings provided through subsequent calls to
Statement statement = connection.createStatement("INSERT INTO books (author, publisher) VALUES ($1, $2)");
statement.bind(0, "John Doe").bind(1, "Happy Books LLC").add();
statement.bind(0, "Jane Doe").bind(1, "Scary Books Inc");
statement.execute();
| |
| bind | back to summary |
|---|---|
| public Statement bind(int index, Object value) Implements io. Doc from io. Bind a non- | |
| bind | back to summary |
|---|---|
| public Statement bind(String name, Object value) Implements io. Doc from io. Bind a non- | |
| bindNull | back to summary |
|---|---|
| public Statement bindNull(int index, Class<?> type) Implements io. Doc from io. Bind a | |
| bindNull | back to summary |
|---|---|
| public Statement bindNull(String name, Class<?> type) Implements io. Doc from io. Bind a | |
| execute | back to summary |
|---|---|
| public Publisher Implements io. Doc from io. Executes one or more SQL statements and returns the | |
| fetchSize | back to summary |
|---|---|
| public Statement fetchSize(int rows) Overrides default io. Doc from io. Configures The default implementation of this method is a no op and the default value is zero. | |
| getDelegate | back to summary |
|---|---|
| public Statement getDelegate() | |
| returnGeneratedValues | back to summary |
|---|---|
| public Statement returnGeneratedValues(String... columns) Overrides default io. Doc from io. Configures The default implementation of this method is a no-op. | |