public interface Statement
| Modifier and Type | Method and Description |
|---|---|
Statement |
add()
Save the current binding and create a new one.
|
default Statement |
bind(int index,
boolean value)
Bind a value to an index.
|
default Statement |
bind(int index,
byte value)
Bind a value to an index.
|
default Statement |
bind(int index,
char value)
Bind a value to an index.
|
default Statement |
bind(int index,
double value)
Bind a value to an index.
|
default Statement |
bind(int index,
float value)
Bind a value to an index.
|
default Statement |
bind(int index,
int value)
Bind a value to an index.
|
default Statement |
bind(int index,
long value)
Bind a value to an index.
|
Statement |
bind(int index,
Object value)
Bind a value to an index.
|
default Statement |
bind(int index,
short value)
Bind a value to an index.
|
Statement |
bind(Object identifier,
Object value)
Bind a value.
|
Statement |
bindNull(int index,
Class<?> type)
Bind a
null value. |
Statement |
bindNull(Object identifier,
Class<?> type)
Bind a
null value. |
org.reactivestreams.Publisher<? extends Result> |
execute()
Executes one or more SQL statements and returns the
Results. |
default Statement |
returnGeneratedValues(String... columns)
|
Statement bind(Object identifier, Object value)
identifier - the identifier to bind tovalue - the value to bindStatementIllegalArgumentException - if identifier or value is nullStatement bind(int index, Object value)
index - the index to bind tovalue - the value to bindStatementIllegalArgumentException - if value is nulldefault Statement bind(int index, boolean value)
index - the index to bind tovalue - the value to bindStatementdefault Statement bind(int index, byte value)
index - the index to bind tovalue - the value to bindStatementdefault Statement bind(int index, char value)
index - the index to bind tovalue - the value to bindStatementdefault Statement bind(int index, double value)
index - the index to bind tovalue - the value to bindStatementdefault Statement bind(int index, float value)
index - the index to bind tovalue - the value to bindStatementdefault Statement bind(int index, int value)
index - the index to bind tovalue - the value to bindStatementdefault Statement bind(int index, long value)
index - the index to bind tovalue - the value to bindStatementdefault Statement bind(int index, short value)
index - the index to bind tovalue - the value to bindStatementStatement bindNull(Object identifier, Class<?> type)
null value.identifier - the identifier to bind totype - the type of null valueStatementIllegalArgumentException - if identifier or type is nullStatement bindNull(int index, Class<?> type)
null value.index - the index to bind totype - the type of null valueStatementIllegalArgumentException - if type is nullorg.reactivestreams.Publisher<? extends Result> execute()
Results.Results, returned by each statementdefault Statement returnGeneratedValues(String... columns)
Statement to return the generated values from any rows created by this Statement in the Result returned from execute(). If no columns are specified,
implementations are free to choose which columns will be returned. If called multiple times, only the columns requested in the final invocation will be returned.
The default implementation of this method is a no op.
columns - the names of the columns to returnStatementIllegalArgumentException - if columns, or any item in columns is nullCopyright © 2019. All rights reserved.