Package com.mysql.cj.xdevapi
Class RemoveStatementImpl
java.lang.Object
com.mysql.cj.xdevapi.PreparableStatement<RES_T>
com.mysql.cj.xdevapi.FilterableStatement<RemoveStatement,Result>
com.mysql.cj.xdevapi.RemoveStatementImpl
- All Implemented Interfaces:
RemoveStatement
,Statement<RemoveStatement,Result>
public class RemoveStatementImpl extends FilterableStatement<RemoveStatement,Result> implements RemoveStatement
RemoveStatement
implementation.-
Nested Class Summary
Nested classes/interfaces inherited from class com.mysql.cj.xdevapi.PreparableStatement
PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedState
Nested classes/interfaces inherited from interface com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
Field Summary
Fields inherited from class com.mysql.cj.xdevapi.PreparableStatement
mysqlxSession, preparedState, preparedStatementId
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<Result>
executeAsync()
Execute the statement asynchronously.protected Result
executePreparedStatement()
Executes a previously server-prepared statement.Result
executeStatement()
Executes the statement directly (non-prepared).protected XMessage
getPrepareStatementXMessage()
Returns theXMessage
needed to prepare this statement.RemoveStatement
orderBy(java.lang.String... sortFields)
Deprecated.RemoveStatement
where(java.lang.String searchCondition)
Deprecated.Deprecated in Connector/J 8.0.17.Methods inherited from class com.mysql.cj.xdevapi.FilterableStatement
bind, clearBindings, isRelational, limit, offset, sort
Methods inherited from class com.mysql.cj.xdevapi.PreparableStatement
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
-
Method Details
-
orderBy
Deprecated.Description copied from class:FilterableStatement
Add sort expressions to this statement.DocResult docs = this.collection.find().orderBy("$._id").execute(); docs = this.collection.find().sort("$.x", "$.y").execute();
- Specified by:
orderBy
in interfaceRemoveStatement
- Overrides:
orderBy
in classFilterableStatement<RemoveStatement,Result>
- Parameters:
sortFields
- sort expressions- Returns:
- this statement
-
executeStatement
Description copied from class:PreparableStatement
Executes the statement directly (non-prepared). Implementation is dependent on the statement type.- Specified by:
executeStatement
in classPreparableStatement<Result>
- Returns:
- the object returned from the lower level statement execution
-
getPrepareStatementXMessage
Description copied from class:PreparableStatement
Returns theXMessage
needed to prepare this statement. Implementation is dependent on the statement type.- Specified by:
getPrepareStatementXMessage
in classPreparableStatement<Result>
- Returns:
- the
XMessage
that prepares this statement
-
executePreparedStatement
Description copied from class:PreparableStatement
Executes a previously server-prepared statement. Implementation is dependent on the statement type.- Specified by:
executePreparedStatement
in classPreparableStatement<Result>
- Returns:
- the object returned from the lower level statement execution
-
executeAsync
Description copied from interface:Statement
Execute the statement asynchronously.- Specified by:
executeAsync
in interfaceStatement<RemoveStatement,Result>
- Returns:
CompletableFuture
for result
-
where
Deprecated.Deprecated in Connector/J 8.0.17. Please use filter criteria in the operation starting method.Description copied from class:FilterableStatement
Add search condition to this statement.table.delete().where("age == 13").execute();
- Overrides:
where
in classFilterableStatement<RemoveStatement,Result>
- Parameters:
searchCondition
- expression- Returns:
- this statement
-