类 FindStatementImpl
- java.lang.Object
-
- com.mysql.cj.xdevapi.PreparableStatement<RES_T>
-
- com.mysql.cj.xdevapi.FilterableStatement<FindStatement,DocResult>
-
- com.mysql.cj.xdevapi.FindStatementImpl
-
- 所有已实现的接口:
FindStatement,Statement<FindStatement,DocResult>
public class FindStatementImpl extends FilterableStatement<FindStatement,DocResult> implements FindStatement
FindStatementimplementation.
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.mysql.cj.xdevapi.PreparableStatement
PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedState
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
-
字段概要
-
从类继承的字段 com.mysql.cj.xdevapi.FilterableStatement
filterParams
-
从类继承的字段 com.mysql.cj.xdevapi.PreparableStatement
mysqlxSession, preparedState, preparedStatementId
-
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 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(String... projection)Add/replace the field projections defining the result.protected XMessagegetPrepareStatementXMessage()Returns theXMessageneeded to prepare this statement.FindStatementgroupBy(String... groupBy)Add/replace the aggregation fields for this query.FindStatementhaving(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(String searchCondition)已过时。Deprecated in Connector/J 8.0.17.-
从类继承的方法 com.mysql.cj.xdevapi.FilterableStatement
bind, clearBindings, isRelational, limit, offset, orderBy, sort
-
从类继承的方法 com.mysql.cj.xdevapi.PreparableStatement
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
-
-
-
-
方法详细资料
-
executeStatement
protected DocResult executeStatement()
从类复制的说明:PreparableStatementExecutes the statement directly (non-prepared). Implementation is dependent on the statement type.- 指定者:
executeStatement在类中PreparableStatement<DocResult>- 返回:
- the object returned from the lower level statement execution
-
getPrepareStatementXMessage
protected XMessage getPrepareStatementXMessage()
从类复制的说明:PreparableStatementReturns theXMessageneeded to prepare this statement. Implementation is dependent on the statement type.- 指定者:
getPrepareStatementXMessage在类中PreparableStatement<DocResult>- 返回:
- the
XMessagethat prepares this statement
-
executePreparedStatement
protected DocResult executePreparedStatement()
从类复制的说明:PreparableStatementExecutes a previously server-prepared statement. Implementation is dependent on the statement type.- 指定者:
executePreparedStatement在类中PreparableStatement<DocResult>- 返回:
- the object returned from the lower level statement execution
-
executeAsync
public CompletableFuture<DocResult> executeAsync()
从接口复制的说明:StatementExecute the statement asynchronously.- 指定者:
executeAsync在接口中Statement<FindStatement,DocResult>- 返回:
CompletableFuturefor result
-
fields
public FindStatement fields(String... projection)
从接口复制的说明:FindStatementAdd/replace the field projections defining the result.- 指定者:
fields在接口中FindStatement- 参数:
projection- projection expression- 返回:
FindStatement
-
fields
public FindStatement fields(Expression docProjection)
从接口复制的说明:FindStatementAdd/replace the field projection defining the result.- 指定者:
fields在接口中FindStatement- 参数:
docProjection- projection expression- 返回:
FindStatement
-
groupBy
public FindStatement groupBy(String... groupBy)
从接口复制的说明:FindStatementAdd/replace the aggregation fields for this query.- 指定者:
groupBy在接口中FindStatement- 参数:
groupBy- groupBy expression- 返回:
FindStatement
-
having
public FindStatement having(String having)
从接口复制的说明:FindStatementAdd/replace the aggregate criteria for this query.- 指定者:
having在接口中FindStatement- 参数:
having- having expression- 返回:
FindStatement
-
lockShared
public FindStatement lockShared()
从接口复制的说明:FindStatementLocks matching rows against updates.- 指定者:
lockShared在接口中FindStatement- 返回:
FindStatement
-
lockShared
public FindStatement lockShared(Statement.LockContention lockContention)
从接口复制的说明:FindStatementLocks matching rows against updates using the provided lock contention option.- 指定者:
lockShared在接口中FindStatement- 参数:
lockContention- TheStatement.LockContentionvalue to set.- 返回:
FindStatement
-
lockExclusive
public FindStatement lockExclusive()
从接口复制的说明:FindStatementLocks matching rows exclusively so no other transactions can read or write to them.- 指定者:
lockExclusive在接口中FindStatement- 返回:
FindStatement
-
lockExclusive
public FindStatement lockExclusive(Statement.LockContention lockContention)
从接口复制的说明:FindStatementLocks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.- 指定者:
lockExclusive在接口中FindStatement- 参数:
lockContention- TheStatement.LockContentionvalue to set.- 返回:
FindStatement
-
where
@Deprecated public FindStatement where(String searchCondition)
已过时。Deprecated in Connector/J 8.0.17. Please use filter criteria in the operation starting method.从类复制的说明:FilterableStatementAdd search condition to this statement.table.delete().where("age == 13").execute();- 覆盖:
where在类中FilterableStatement<FindStatement,DocResult>- 参数:
searchCondition- expression- 返回:
- this statement
-
-