STMT_T
- statement typeRES_T
- result typepublic interface Statement<STMT_T,RES_T>
Modifier and Type | Interface and Description |
---|---|
static class |
Statement.LockContention
The lock contention options for the locking modes available.
|
Modifier and Type | Method and Description |
---|---|
default STMT_T |
bind(java.util.List<java.lang.Object> values)
Bind a list of objects numerically starting at 0.
|
default STMT_T |
bind(java.util.Map<java.lang.String,java.lang.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(java.lang.Object... values)
Bind an array of objects numerically starting at 0.
|
default STMT_T |
bind(java.lang.String argName,
java.lang.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.
|
java.util.concurrent.CompletableFuture<RES_T> |
executeAsync()
Execute the statement asynchronously.
|
RES_T execute()
java.util.concurrent.CompletableFuture<RES_T> executeAsync()
CompletableFuture
for resultdefault STMT_T clearBindings()
default STMT_T bind(java.lang.String argName, java.lang.Object value)
argName
- argument namevalue
- object to binddefault STMT_T bind(java.util.Map<java.lang.String,java.lang.Object> values)
values
- the map containing key-value pairs to binddefault STMT_T bind(java.util.List<java.lang.Object> values)
values
- list of objects to binddefault STMT_T bind(java.lang.Object... values)
values
- one or more objects to bind