STMT_T
- statement typeRES_T
- result typepublic interface Statement<STMT_T,RES_T>
Modifier and Type | Interface | Description |
---|---|---|
static class |
Statement.LockContention |
The lock contention options for the locking modes available.
|
Modifier and Type | Method | Description |
---|---|---|
default STMT_T |
bind(List<Object> values) |
Bind a list of objects numerically starting at 0.
|
default STMT_T |
bind(Map<String,Object> values) |
Bind the set of arguments named by the keys in the map to the associated values in the map.
|
default STMT_T |
bind(Object... values) |
Bind an array of objects numerically starting at 0.
|
default STMT_T |
bind(String argName,
Object value) |
Bind the named argument to the given value.
|
default STMT_T |
clearBindings() |
Clear all bindings for this statement.
|
RES_T |
execute() |
Execute the statement synchronously.
|
CompletableFuture<RES_T> |
executeAsync() |
Execute the statement asynchronously.
|
RES_T execute()
CompletableFuture<RES_T> executeAsync()
CompletableFuture
for resultdefault STMT_T clearBindings()
default STMT_T bind(String argName, Object value)
argName
- argument namevalue
- object to binddefault STMT_T bind(Map<String,Object> values)
values
- the map containing key-value pairs to binddefault STMT_T bind(List<Object> values)
values
- list of objects to bind