public class FindStatementImpl extends FilterableStatement<FindStatement,DocResult> implements FindStatement
FindStatement
implementation.PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedState
Statement.LockContention
filterParams
mysqlxSession, preparedState, preparedStatementId
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<DocResult> |
executeAsync()
Execute the statement asynchronously.
|
protected DocResult |
executePreparedStatement()
Executes a previously server-prepared statement.
|
protected DocResult |
executeStatement()
Executes the statement directly (non-prepared).
|
FindStatement |
fields(Expression docProjection)
Add/replace the field projection defining the result.
|
FindStatement |
fields(java.lang.String... projection)
Add/replace the field projections defining the result.
|
protected XMessage |
getPrepareStatementXMessage()
Returns the
XMessage needed to prepare this statement. |
FindStatement |
groupBy(java.lang.String... groupBy)
Add/replace the aggregation fields for this query.
|
FindStatement |
having(java.lang.String having)
Add/replace the aggregate criteria for this query.
|
FindStatement |
lockExclusive()
Locks matching rows exclusively so no other transactions can read or write to them.
|
FindStatement |
lockExclusive(Statement.LockContention lockContention)
Locks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.
|
FindStatement |
lockShared()
Locks matching rows against updates.
|
FindStatement |
lockShared(Statement.LockContention lockContention)
Locks matching rows against updates using the provided lock contention option.
|
FindStatement |
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, orderBy, sort
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected DocResult executeStatement()
PreparableStatement
executeStatement
in class PreparableStatement<DocResult>
protected XMessage getPrepareStatementXMessage()
PreparableStatement
XMessage
needed to prepare this statement. Implementation is dependent on the statement type.getPrepareStatementXMessage
in class PreparableStatement<DocResult>
XMessage
that prepares this statementprotected DocResult executePreparedStatement()
PreparableStatement
executePreparedStatement
in class PreparableStatement<DocResult>
public java.util.concurrent.CompletableFuture<DocResult> executeAsync()
Statement
executeAsync
in interface Statement<FindStatement,DocResult>
CompletableFuture
for resultpublic FindStatement fields(java.lang.String... projection)
FindStatement
fields
in interface FindStatement
projection
- projection expressionFindStatement
public FindStatement fields(Expression docProjection)
FindStatement
fields
in interface FindStatement
docProjection
- projection expressionFindStatement
public FindStatement groupBy(java.lang.String... groupBy)
FindStatement
groupBy
in interface FindStatement
groupBy
- groupBy expressionFindStatement
public FindStatement having(java.lang.String having)
FindStatement
having
in interface FindStatement
having
- having expressionFindStatement
public FindStatement lockShared()
FindStatement
lockShared
in interface FindStatement
FindStatement
public FindStatement lockShared(Statement.LockContention lockContention)
FindStatement
lockShared
in interface FindStatement
lockContention
- The Statement.LockContention
value to set.FindStatement
public FindStatement lockExclusive()
FindStatement
lockExclusive
in interface FindStatement
FindStatement
public FindStatement lockExclusive(Statement.LockContention lockContention)
FindStatement
lockExclusive
in interface FindStatement
lockContention
- The Statement.LockContention
value to set.FindStatement
@Deprecated public FindStatement where(java.lang.String searchCondition)
FilterableStatement
table.delete().where("age == 13").execute();
where
in class FilterableStatement<FindStatement,DocResult>
searchCondition
- expression