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

public Class RemoveStatementImpl

extends FilterableStatement<RemoveStatement, Result>
implements RemoveStatement
Class Inheritance
All Implemented Interfaces
com.mysql.cj.xdevapi.RemoveStatement, com.mysql.cj.xdevapi.Statement
Imports
java.util.concurrent.CompletableFuture, com.mysql.cj.Messages, .MysqlxSession, com.mysql.cj.protocol.x.XMessage, .XMessageBuilder

RemoveStatement implementation.

Field Summary

Inherited from com.mysql.cj.xdevapi.FilterableStatement:
filterParams

Constructor Summary

AccessConstructor and Description
pack-priv
RemoveStatementImpl(MysqlxSession mysqlxSession, String schema, String collection, String criteria)

Method Summary

Modifier and TypeMethod and Description
public CompletableFuture<Result>
executeAsync()

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

Execute the statement asynchronously.

protected Result
executePreparedStatement()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.executePreparedStatement.

Executes a previously server-prepared statement.

public Result
executeStatement()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.executeStatement.

Executes the statement directly (non-prepared).

protected XMessage
getPrepareStatementXMessage()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.getPrepareStatementXMessage.

Returns the XMessage needed to prepare this statement.

public RemoveStatement
orderBy(String...
sort expression
sortFields
)

Overrides com.mysql.cj.xdevapi.FilterableStatement.orderBy.

Implements com.mysql.cj.xdevapi.RemoveStatement.orderBy.

Deprecated

Add/replace the order specification for the removal.

public RemoveStatement
where(String
expression
searchCondition
)

Overrides com.mysql.cj.xdevapi.FilterableStatement.where.

Deprecated Deprecated in Connector/J 8.0.17. Please use filter criteria in the operation starting method.

Add search condition to this statement.

Inherited from com.mysql.cj.xdevapi.FilterableStatement:
bindclearBindingsisRelationallimitoffsetsort

Constructor Detail

RemoveStatementImplback to summary
pack-priv RemoveStatementImpl(MysqlxSession mysqlxSession, String schema, String collection, String criteria)

Method Detail

executeAsyncback to summary
public CompletableFuture<Result> executeAsync()

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

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

Execute the statement asynchronously.

Returns:CompletableFuture<Result>

CompletableFuture for result

Annotations
@Override
executePreparedStatementback to summary
protected Result executePreparedStatement()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.executePreparedStatement.

Doc from com.mysql.cj.xdevapi.PreparableStatement.executePreparedStatement.

Executes a previously server-prepared statement. Implementation is dependent on the statement type.

Returns:Result

the object returned from the lower level statement execution

Annotations
@Override
executeStatementback to summary
public Result executeStatement()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.executeStatement.

Doc from com.mysql.cj.xdevapi.PreparableStatement.executeStatement.

Executes the statement directly (non-prepared). Implementation is dependent on the statement type.

Returns:Result

the object returned from the lower level statement execution

Annotations
@Override
getPrepareStatementXMessageback to summary
protected XMessage getPrepareStatementXMessage()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.getPrepareStatementXMessage.

Doc from com.mysql.cj.xdevapi.PreparableStatement.getPrepareStatementXMessage.

Returns the XMessage needed to prepare this statement. Implementation is dependent on the statement type.

Returns:XMessage

the XMessage that prepares this statement

Annotations
@Override
orderByback to summary
public RemoveStatement orderBy(String... sortFields)

Overrides com.mysql.cj.xdevapi.FilterableStatement.orderBy.

Implements com.mysql.cj.xdevapi.RemoveStatement.orderBy.

Doc from com.mysql.cj.xdevapi.RemoveStatement.orderBy.

Deprecated

Add/replace the order specification for the removal.

Parameters
sortFields:String[]

sort expression

Returns:RemoveStatement

RemoveStatement

Annotations
@Override
@Deprecated
whereback to summary
public RemoveStatement where(String searchCondition)

Overrides com.mysql.cj.xdevapi.FilterableStatement.where.

Doc from com.mysql.cj.xdevapi.FilterableStatement.where.

Deprecated

Deprecated in Connector/J 8.0.17. Please use filter criteria in the operation starting method.

Add search condition to this statement.

table.delete().where("age == 13").execute();
Parameters
searchCondition:String

expression

Returns:RemoveStatement

this statement

Annotations
@Deprecated
@Override