接口 Statement<STMT_T,RES_T>
-
- 类型参数:
STMT_T- statement typeRES_T- result type
- 所有已知子接口:
AddStatement,DeleteStatement,FindStatement,InsertStatement,ModifyStatement,RemoveStatement,SelectStatement,SqlStatement,UpdateStatement
- 所有已知实现类:
AddStatementImpl,DeleteStatementImpl,FilterableStatement,FindStatementImpl,InsertStatementImpl,ModifyStatementImpl,RemoveStatementImpl,SelectStatementImpl,SqlStatementImpl,UpdateStatementImpl
public interface Statement<STMT_T,RES_T>A statement is a query or state-affecting command against a database that returns a result.
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static classStatement.LockContentionThe lock contention options for the locking modes available.
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default STMT_Tbind(Object... values)Bind an array of objects numerically starting at 0.default STMT_Tbind(String argName, Object value)Bind the named argument to the given value.default STMT_Tbind(List<Object> values)Bind a list of objects numerically starting at 0.default STMT_Tbind(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_TclearBindings()Clear all bindings for this statement.RES_Texecute()Execute the statement synchronously.CompletableFuture<RES_T>executeAsync()Execute the statement asynchronously.
-
-
-
方法详细资料
-
execute
RES_T execute()
Execute the statement synchronously.- 返回:
- result of statement execution
-
executeAsync
CompletableFuture<RES_T> executeAsync()
Execute the statement asynchronously.- 返回:
CompletableFuturefor result
-
clearBindings
default STMT_T clearBindings()
Clear all bindings for this statement.- 返回:
- this statement
-
bind
default STMT_T bind(String argName, Object value)
Bind the named argument to the given value.- 参数:
argName- argument namevalue- object to bind- 返回:
- this statement
-
bind
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.- 参数:
values- the map containing key-value pairs to bind- 返回:
- this statement
-
bind
default STMT_T bind(List<Object> values)
Bind a list of objects numerically starting at 0.- 参数:
values- list of objects to bind- 返回:
- this statement
-
-