类 SqlStatementImpl
- java.lang.Object
-
- com.mysql.cj.xdevapi.SqlStatementImpl
-
- 所有已实现的接口:
SqlStatement,Statement<SqlStatement,SqlResult>
public class SqlStatementImpl extends Object implements SqlStatement
SqlStatementimplementation.
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
-
构造器概要
构造器 构造器 说明 SqlStatementImpl(MysqlxSession mysqlxSession, String sql)Constructor.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SqlStatementbind(List<Object> values)Bind a list of objects numerically starting at 0.SqlStatementbind(Map<String,Object> values)Bind the set of arguments named by the keys in the map to the associated values in the map.SqlStatementclearBindings()Clear all bindings for this statement.SqlResultexecute()Execute the statement synchronously.CompletableFuture<SqlResult>executeAsync()Execute the statement asynchronously.
-
-
-
构造器详细资料
-
SqlStatementImpl
public SqlStatementImpl(MysqlxSession mysqlxSession, String sql)
Constructor.- 参数:
mysqlxSession-Sessioninstance.sql- SQL statement string.
-
-
方法详细资料
-
execute
public SqlResult execute()
从接口复制的说明:StatementExecute the statement synchronously.- 指定者:
execute在接口中Statement<SqlStatement,SqlResult>- 返回:
- result of statement execution
-
executeAsync
public CompletableFuture<SqlResult> executeAsync()
从接口复制的说明:StatementExecute the statement asynchronously.- 指定者:
executeAsync在接口中Statement<SqlStatement,SqlResult>- 返回:
CompletableFuturefor result
-
clearBindings
public SqlStatement clearBindings()
从接口复制的说明:StatementClear all bindings for this statement.- 指定者:
clearBindings在接口中Statement<SqlStatement,SqlResult>- 返回:
- this statement
-
bind
public SqlStatement bind(List<Object> values)
从接口复制的说明:StatementBind a list of objects numerically starting at 0.- 指定者:
bind在接口中Statement<SqlStatement,SqlResult>- 参数:
values- list of objects to bind- 返回:
- this statement
-
bind
public SqlStatement bind(Map<String,Object> values)
从接口复制的说明:StatementBind the set of arguments named by the keys in the map to the associated values in the map.- 指定者:
bind在接口中Statement<SqlStatement,SqlResult>- 参数:
values- the map containing key-value pairs to bind- 返回:
- this statement
-
-