Top Description Fields Constructors Methods
com.mysql.cj.xdevapi

public Class SqlStatementImpl

extends Object
implements SqlStatement
Class Inheritance
All Implemented Interfaces
com.mysql.cj.xdevapi.SqlStatement, com.mysql.cj.xdevapi.Statement
Imports
java.util.ArrayList, .List, .Map, java.util.concurrent.CompletableFuture, com.mysql.cj.MysqlxSession, com.mysql.cj.exceptions.FeatureNotAvailableException

SqlStatement implementation.

Field Summary

Modifier and TypeField and Description
private List<Object>
private MysqlxSession
private String

Constructor Summary

AccessConstructor and Description
public
SqlStatementImpl(MysqlxSession mysqlxSession, String
SQL statement string.
sql
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public SqlStatement
bind(List<Object>
list of objects to bind
values
)

Overrides default com.mysql.cj.xdevapi.Statement.bind.

Bind a list of objects numerically starting at 0.

public SqlStatement
bind(Map<String, Object>
the map containing key-value pairs to bind
values
)

Overrides default com.mysql.cj.xdevapi.Statement.bind.

Bind the set of arguments named by the keys in the map to the associated values in the map.

public SqlStatement
clearBindings()

Overrides default com.mysql.cj.xdevapi.Statement.clearBindings.

Clear all bindings for this statement.

public SqlResult
execute()

Implements com.mysql.cj.xdevapi.Statement.execute.

Execute the statement synchronously.

public CompletableFuture<SqlResult>
executeAsync()

Implements com.mysql.cj.xdevapi.Statement.executeAsync.

Execute the statement asynchronously.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argsback to summary
private List<Object> args
mysqlxSessionback to summary
private MysqlxSession mysqlxSession
sqlback to summary
private String sql

Constructor Detail

SqlStatementImplback to summary
public SqlStatementImpl(MysqlxSession mysqlxSession, String sql)

Constructor.

Parameters
mysqlxSession:MysqlxSession

com.mysql.cj.Session instance.

sql:String

SQL statement string.

Method Detail

bindback to summary
public SqlStatement bind(List<Object> values)

Overrides default com.mysql.cj.xdevapi.Statement.bind.

Doc from com.mysql.cj.xdevapi.Statement.bind.

Bind a list of objects numerically starting at 0.

Parameters
values:List<Object>

list of objects to bind

Returns:SqlStatement

this statement

Annotations
@Override
bindback to summary
public SqlStatement bind(Map<String, Object> values)

Overrides default com.mysql.cj.xdevapi.Statement.bind.

Doc from com.mysql.cj.xdevapi.Statement.bind.

Bind the set of arguments named by the keys in the map to the associated values in the map.

Parameters
values:Map<String, Object>

the map containing key-value pairs to bind

Returns:SqlStatement

this statement

Annotations
@Override
clearBindingsback to summary
public SqlStatement clearBindings()

Overrides default com.mysql.cj.xdevapi.Statement.clearBindings.

Doc from com.mysql.cj.xdevapi.Statement.clearBindings.

Clear all bindings for this statement.

Returns:SqlStatement

this statement

Annotations
@Override
executeback to summary
public SqlResult execute()

Implements com.mysql.cj.xdevapi.Statement.execute.

Doc from com.mysql.cj.xdevapi.Statement.execute.

Execute the statement synchronously.

Returns:SqlResult

result of statement execution

Annotations
@Override
executeAsyncback to summary
public CompletableFuture<SqlResult> executeAsync()

Implements com.mysql.cj.xdevapi.Statement.executeAsync.

Doc from com.mysql.cj.xdevapi.Statement.executeAsync.

Execute the statement asynchronously.

Returns:CompletableFuture<SqlResult>

CompletableFuture for result

Annotations
@Override