public class FindStatementImpl extends FilterableStatement<FindStatement,DocResult> implements FindStatement
FindStatement implementation.PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedStateStatement.LockContentionfilterParamsmysqlxSession, 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, sortdeallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected DocResult executeStatement()
PreparableStatementexecuteStatement in class PreparableStatement<DocResult>protected XMessage getPrepareStatementXMessage()
PreparableStatementXMessage needed to prepare this statement. Implementation is dependent on the statement type.getPrepareStatementXMessage in class PreparableStatement<DocResult>XMessage that prepares this statementprotected DocResult executePreparedStatement()
PreparableStatementexecutePreparedStatement in class PreparableStatement<DocResult>public java.util.concurrent.CompletableFuture<DocResult> executeAsync()
StatementexecuteAsync in interface Statement<FindStatement,DocResult>CompletableFuture for resultpublic FindStatement fields(java.lang.String... projection)
FindStatementfields in interface FindStatementprojection - projection expressionFindStatementpublic FindStatement fields(Expression docProjection)
FindStatementfields in interface FindStatementdocProjection - projection expressionFindStatementpublic FindStatement groupBy(java.lang.String... groupBy)
FindStatementgroupBy in interface FindStatementgroupBy - groupBy expressionFindStatementpublic FindStatement having(java.lang.String having)
FindStatementhaving in interface FindStatementhaving - having expressionFindStatementpublic FindStatement lockShared()
FindStatementlockShared in interface FindStatementFindStatementpublic FindStatement lockShared(Statement.LockContention lockContention)
FindStatementlockShared in interface FindStatementlockContention - The Statement.LockContention value to set.FindStatementpublic FindStatement lockExclusive()
FindStatementlockExclusive in interface FindStatementFindStatementpublic FindStatement lockExclusive(Statement.LockContention lockContention)
FindStatementlockExclusive in interface FindStatementlockContention - 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