类 SelectStatementImpl
- java.lang.Object
-
- com.mysql.cj.xdevapi.PreparableStatement<RES_T>
-
- com.mysql.cj.xdevapi.FilterableStatement<SelectStatement,RowResult>
-
- com.mysql.cj.xdevapi.SelectStatementImpl
-
- 所有已实现的接口:
SelectStatement,Statement<SelectStatement,RowResult>
public class SelectStatementImpl extends FilterableStatement<SelectStatement,RowResult> implements SelectStatement
SelectStatementimplementation.
-
-
嵌套类概要
-
从类继承的嵌套类/接口 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<RowResult>executeAsync()Execute the statement asynchronously.protected RowResultexecutePreparedStatement()Executes a previously server-prepared statement.protected RowResultexecuteStatement()Executes the statement directly (non-prepared).FilterParamsgetFilterParams()ReturnFilterParamsdefined for this statement.protected XMessagegetPrepareStatementXMessage()Returns theXMessageneeded to prepare this statement.SelectStatementgroupBy(String... groupBy)Add/replace the aggregation fields for this query.SelectStatementhaving(String having)Add/replace the aggregate criteria for this query.SelectStatementlockExclusive()Locks matching rows exclusively so no other transactions can read or write to them.SelectStatementlockExclusive(Statement.LockContention lockContention)Locks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.SelectStatementlockShared()Locks matching rows against updates.SelectStatementlockShared(Statement.LockContention lockContention)Locks matching rows against updates using the provided lock contention option.-
从类继承的方法 com.mysql.cj.xdevapi.FilterableStatement
bind, clearBindings, isRelational, limit, offset, orderBy, sort, where
-
从类继承的方法 com.mysql.cj.xdevapi.PreparableStatement
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.xdevapi.SelectStatement
limit, offset, orderBy, where
-
-
-
-
方法详细资料
-
executeStatement
protected RowResult executeStatement()
从类复制的说明:PreparableStatementExecutes the statement directly (non-prepared). Implementation is dependent on the statement type.- 指定者:
executeStatement在类中PreparableStatement<RowResult>- 返回:
- 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<RowResult>- 返回:
- the
XMessagethat prepares this statement
-
executePreparedStatement
protected RowResult executePreparedStatement()
从类复制的说明:PreparableStatementExecutes a previously server-prepared statement. Implementation is dependent on the statement type.- 指定者:
executePreparedStatement在类中PreparableStatement<RowResult>- 返回:
- the object returned from the lower level statement execution
-
executeAsync
public CompletableFuture<RowResult> executeAsync()
从接口复制的说明:StatementExecute the statement asynchronously.- 指定者:
executeAsync在接口中Statement<SelectStatement,RowResult>- 返回:
CompletableFuturefor result
-
groupBy
public SelectStatement groupBy(String... groupBy)
从接口复制的说明:SelectStatementAdd/replace the aggregation fields for this query.- 指定者:
groupBy在接口中SelectStatement- 参数:
groupBy- groupBy expression- 返回:
SelectStatement
-
having
public SelectStatement having(String having)
从接口复制的说明:SelectStatementAdd/replace the aggregate criteria for this query.- 指定者:
having在接口中SelectStatement- 参数:
having- having expression- 返回:
SelectStatement
-
getFilterParams
public FilterParams getFilterParams()
从接口复制的说明:SelectStatementReturnFilterParamsdefined for this statement.- 指定者:
getFilterParams在接口中SelectStatement- 返回:
FilterParams
-
lockShared
public SelectStatement lockShared()
从接口复制的说明:SelectStatementLocks matching rows against updates.- 指定者:
lockShared在接口中SelectStatement- 返回:
SelectStatement
-
lockShared
public SelectStatement lockShared(Statement.LockContention lockContention)
从接口复制的说明:SelectStatementLocks matching rows against updates using the provided lock contention option.- 指定者:
lockShared在接口中SelectStatement- 参数:
lockContention- TheStatement.LockContentionvalue to set.- 返回:
SelectStatement
-
lockExclusive
public SelectStatement lockExclusive()
从接口复制的说明:SelectStatementLocks matching rows exclusively so no other transactions can read or write to them.- 指定者:
lockExclusive在接口中SelectStatement- 返回:
SelectStatement
-
lockExclusive
public SelectStatement lockExclusive(Statement.LockContention lockContention)
从接口复制的说明:SelectStatementLocks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.- 指定者:
lockExclusive在接口中SelectStatement- 参数:
lockContention- TheStatement.LockContentionvalue to set.- 返回:
SelectStatement
-
-