public class RemoveStatementImpl extends FilterableStatement<RemoveStatement,Result> implements RemoveStatement
RemoveStatement
implementation.PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedState
Statement.LockContention
filterParams
mysqlxSession, preparedState, preparedStatementId
Modifier and Type | Method and 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 the
XMessage 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. Please use filter criteria in the operation starting method.
|
bind, clearBindings, isRelational, limit, offset, sort
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
limit, sort
@Deprecated public RemoveStatement orderBy(java.lang.String... sortFields)
FilterableStatement
DocResult docs = this.collection.find().orderBy("$._id").execute(); docs = this.collection.find().sort("$.x", "$.y").execute();
orderBy
in interface RemoveStatement
orderBy
in class FilterableStatement<RemoveStatement,Result>
sortFields
- sort expressionspublic Result executeStatement()
PreparableStatement
executeStatement
in class PreparableStatement<Result>
protected XMessage getPrepareStatementXMessage()
PreparableStatement
XMessage
needed to prepare this statement. Implementation is dependent on the statement type.getPrepareStatementXMessage
in class PreparableStatement<Result>
XMessage
that prepares this statementprotected Result executePreparedStatement()
PreparableStatement
executePreparedStatement
in class PreparableStatement<Result>
public java.util.concurrent.CompletableFuture<Result> executeAsync()
Statement
executeAsync
in interface Statement<RemoveStatement,Result>
CompletableFuture
for result@Deprecated public RemoveStatement where(java.lang.String searchCondition)
FilterableStatement
table.delete().where("age == 13").execute();
where
in class FilterableStatement<RemoveStatement,Result>
searchCondition
- expression