类 AddStatementImpl
- java.lang.Object
-
- com.mysql.cj.xdevapi.AddStatementImpl
-
- 所有已实现的接口:
AddStatement,Statement<AddStatement,AddResult>
public class AddStatementImpl extends Object implements AddStatement
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AddStatementadd(DbDoc... docs)Add a sequence of DbDocs.AddStatementadd(String jsonString)Add a document as a JSON string.AddResultexecute()Execute the statement synchronously.CompletableFuture<AddResult>executeAsync()Execute the statement asynchronously.booleanisUpsert()Check the upsert flag.AddStatementsetUpsert(boolean upsert)Set upsert flag on this statement.
-
-
-
方法详细资料
-
add
public AddStatement add(String jsonString)
从接口复制的说明:AddStatementAdd a document as a JSON string.- 指定者:
add在接口中AddStatement- 参数:
jsonString- document as a JSON string- 返回:
AddStatement
-
add
public AddStatement add(DbDoc... docs)
从接口复制的说明:AddStatementAdd a sequence of DbDocs.- 指定者:
add在接口中AddStatement- 参数:
docs- one or moreDbDocdocuments- 返回:
AddStatement
-
execute
public AddResult execute()
从接口复制的说明:StatementExecute the statement synchronously.- 指定者:
execute在接口中Statement<AddStatement,AddResult>- 返回:
- result of statement execution
-
executeAsync
public CompletableFuture<AddResult> executeAsync()
从接口复制的说明:StatementExecute the statement asynchronously.- 指定者:
executeAsync在接口中Statement<AddStatement,AddResult>- 返回:
CompletableFuturefor result
-
isUpsert
public boolean isUpsert()
从接口复制的说明:AddStatementCheck the upsert flag.- 指定者:
isUpsert在接口中AddStatement- 返回:
- true if this is an upsert statement.
-
setUpsert
public AddStatement setUpsert(boolean upsert)
从接口复制的说明:AddStatementSet upsert flag on this statement. Used internally by theCollection.addOrReplaceOne(String, DbDoc)method.- 指定者:
setUpsert在接口中AddStatement- 参数:
upsert- if true then this statement will be executed as an upsert statement- 返回:
AddStatement
-
-