Package com.mysql.cj.xdevapi
Class FindStatementImpl
java.lang.Object
com.mysql.cj.xdevapi.PreparableStatement<RES_T>
com.mysql.cj.xdevapi.FilterableStatement<FindStatement,DocResult>
com.mysql.cj.xdevapi.FindStatementImpl
- All Implemented Interfaces:
FindStatement,Statement<FindStatement,DocResult>
public class FindStatementImpl extends FilterableStatement<FindStatement,DocResult> implements FindStatement
FindStatement implementation.-
Nested Class Summary
Nested classes/interfaces inherited from class com.mysql.cj.xdevapi.PreparableStatement
PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedStateNested 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<DocResult>executeAsync()Execute the statement asynchronously.protected DocResultexecutePreparedStatement()Executes a previously server-prepared statement.protected DocResultexecuteStatement()Executes the statement directly (non-prepared).FindStatementfields(Expression docProjection)Add/replace the field projection defining the result.FindStatementfields(java.lang.String... projection)Add/replace the field projections defining the result.protected XMessagegetPrepareStatementXMessage()Returns theXMessageneeded to prepare this statement.FindStatementgroupBy(java.lang.String... groupBy)Add/replace the aggregation fields for this query.FindStatementhaving(java.lang.String having)Add/replace the aggregate criteria for this query.FindStatementlockExclusive()Locks matching rows exclusively so no other transactions can read or write to them.FindStatementlockExclusive(Statement.LockContention lockContention)Locks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.FindStatementlockShared()Locks matching rows against updates.FindStatementlockShared(Statement.LockContention lockContention)Locks matching rows against updates using the provided lock contention option.FindStatementwhere(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, orderBy, sortMethods inherited from class com.mysql.cj.xdevapi.PreparableStatement
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
executeStatement
Description copied from class:PreparableStatementExecutes the statement directly (non-prepared). Implementation is dependent on the statement type.- Specified by:
executeStatementin classPreparableStatement<DocResult>- Returns:
- the object returned from the lower level statement execution
-
getPrepareStatementXMessage
Description copied from class:PreparableStatementReturns theXMessageneeded to prepare this statement. Implementation is dependent on the statement type.- Specified by:
getPrepareStatementXMessagein classPreparableStatement<DocResult>- Returns:
- the
XMessagethat prepares this statement
-
executePreparedStatement
Description copied from class:PreparableStatementExecutes a previously server-prepared statement. Implementation is dependent on the statement type.- Specified by:
executePreparedStatementin classPreparableStatement<DocResult>- Returns:
- the object returned from the lower level statement execution
-
executeAsync
Description copied from interface:StatementExecute the statement asynchronously.- Specified by:
executeAsyncin interfaceStatement<FindStatement,DocResult>- Returns:
CompletableFuturefor result
-
fields
Description copied from interface:FindStatementAdd/replace the field projections defining the result.- Specified by:
fieldsin interfaceFindStatement- Parameters:
projection- projection expression- Returns:
FindStatement
-
fields
Description copied from interface:FindStatementAdd/replace the field projection defining the result.- Specified by:
fieldsin interfaceFindStatement- Parameters:
docProjection- projection expression- Returns:
FindStatement
-
groupBy
Description copied from interface:FindStatementAdd/replace the aggregation fields for this query.- Specified by:
groupByin interfaceFindStatement- Parameters:
groupBy- groupBy expression- Returns:
FindStatement
-
having
Description copied from interface:FindStatementAdd/replace the aggregate criteria for this query.- Specified by:
havingin interfaceFindStatement- Parameters:
having- having expression- Returns:
FindStatement
-
lockShared
Description copied from interface:FindStatementLocks matching rows against updates.- Specified by:
lockSharedin interfaceFindStatement- Returns:
FindStatement
-
lockShared
Description copied from interface:FindStatementLocks matching rows against updates using the provided lock contention option.- Specified by:
lockSharedin interfaceFindStatement- Parameters:
lockContention- TheStatement.LockContentionvalue to set.- Returns:
FindStatement
-
lockExclusive
Description copied from interface:FindStatementLocks matching rows exclusively so no other transactions can read or write to them.- Specified by:
lockExclusivein interfaceFindStatement- Returns:
FindStatement
-
lockExclusive
Description copied from interface:FindStatementLocks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.- Specified by:
lockExclusivein interfaceFindStatement- Parameters:
lockContention- TheStatement.LockContentionvalue to set.- Returns:
FindStatement
-
where
Deprecated.Deprecated in Connector/J 8.0.17. Please use filter criteria in the operation starting method.Description copied from class:FilterableStatementAdd search condition to this statement.table.delete().where("age == 13").execute();- Overrides:
wherein classFilterableStatement<FindStatement,DocResult>- Parameters:
searchCondition- expression- Returns:
- this statement
-