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
Result s. |
default Statement |
returnGeneratedValues(String... columns)
|
Statement add()
Statement
IllegalStateException
- if the statement is parametrized and not all parameter values are providedStatement bind(Object identifier, Object value)
identifier
- the identifier to bind tovalue
- the value to bindStatement
IllegalArgumentException
- if identifier
or value
is null
IndexOutOfBoundsException
- if the parameter index is out of rangeStatement bind(int index, Object value)
index
- the index to bind tovalue
- the value to bindStatement
IllegalArgumentException
- if value
is null
IndexOutOfBoundsException
- if the parameter index is out of rangedefault Statement bind(int index, boolean value)
index
- the index to bind tovalue
- the value to bindStatement
IndexOutOfBoundsException
- if the parameter index is out of rangedefault Statement bind(int index, byte value)
index
- the index to bind tovalue
- the value to bindStatement
IndexOutOfBoundsException
- if the parameter index is out of rangedefault Statement bind(int index, char value)
index
- the index to bind tovalue
- the value to bindStatement
IndexOutOfBoundsException
- if the parameter index is out of rangedefault Statement bind(int index, double value)
index
- the index to bind tovalue
- the value to bindStatement
IndexOutOfBoundsException
- if the parameter index is out of rangedefault Statement bind(int index, float value)
index
- the index to bind tovalue
- the value to bindStatement
IndexOutOfBoundsException
- if the parameter index is out of rangedefault Statement bind(int index, int value)
index
- the index to bind tovalue
- the value to bindStatement
IndexOutOfBoundsException
- if the parameter index is out of rangedefault Statement bind(int index, long value)
index
- the index to bind tovalue
- the value to bindStatement
IndexOutOfBoundsException
- if the parameter index is out of rangedefault Statement bind(int index, short value)
index
- the index to bind tovalue
- the value to bindStatement
IndexOutOfBoundsException
- if the parameter index is out of rangeStatement bindNull(Object identifier, Class<?> type)
null
value.identifier
- the identifier to bind totype
- the type of null valueStatement
IllegalArgumentException
- if identifier
or type
is null
Statement bindNull(int index, Class<?> type)
null
value.index
- the index to bind totype
- the type of null valueStatement
IllegalArgumentException
- if type
is null
IndexOutOfBoundsException
- if the parameter index is out of rangeorg.reactivestreams.Publisher<? extends Result> execute()
Result
s.Result
s, returned by each statementIllegalStateException
- if the statement is parametrized and not all parameter values are provideddefault 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 returnStatement
IllegalArgumentException
- if columns
, or any item in columns
is null
Copyright © 2019. All rights reserved.