Package com.mysql.cj.xdevapi
Class SelectStatementImpl
java.lang.Object
com.mysql.cj.xdevapi.PreparableStatement<RES_T>
com.mysql.cj.xdevapi.FilterableStatement<SelectStatement,RowResult>
com.mysql.cj.xdevapi.SelectStatementImpl
- All Implemented Interfaces:
SelectStatement,Statement<SelectStatement,RowResult>
public class SelectStatementImpl extends FilterableStatement<SelectStatement,RowResult> implements SelectStatement
SelectStatement 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<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(java.lang.String... groupBy)Add/replace the aggregation fields for this query.SelectStatementhaving(java.lang.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.Methods inherited from class com.mysql.cj.xdevapi.FilterableStatement
bind, clearBindings, isRelational, limit, offset, orderBy, sort, whereMethods inherited from class com.mysql.cj.xdevapi.PreparableStatement
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
-
Method Details
-
executeStatement
Description copied from class:PreparableStatementExecutes the statement directly (non-prepared). Implementation is dependent on the statement type.- Specified by:
executeStatementin classPreparableStatement<RowResult>- 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<RowResult>- 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<RowResult>- Returns:
- the object returned from the lower level statement execution
-
executeAsync
Description copied from interface:StatementExecute the statement asynchronously.- Specified by:
executeAsyncin interfaceStatement<SelectStatement,RowResult>- Returns:
CompletableFuturefor result
-
groupBy
Description copied from interface:SelectStatementAdd/replace the aggregation fields for this query.- Specified by:
groupByin interfaceSelectStatement- Parameters:
groupBy- groupBy expression- Returns:
SelectStatement
-
having
Description copied from interface:SelectStatementAdd/replace the aggregate criteria for this query.- Specified by:
havingin interfaceSelectStatement- Parameters:
having- having expression- Returns:
SelectStatement
-
getFilterParams
Description copied from interface:SelectStatementReturnFilterParamsdefined for this statement.- Specified by:
getFilterParamsin interfaceSelectStatement- Returns:
FilterParams
-
lockShared
Description copied from interface:SelectStatementLocks matching rows against updates.- Specified by:
lockSharedin interfaceSelectStatement- Returns:
SelectStatement
-
lockShared
Description copied from interface:SelectStatementLocks matching rows against updates using the provided lock contention option.- Specified by:
lockSharedin interfaceSelectStatement- Parameters:
lockContention- TheStatement.LockContentionvalue to set.- Returns:
SelectStatement
-
lockExclusive
Description copied from interface:SelectStatementLocks matching rows exclusively so no other transactions can read or write to them.- Specified by:
lockExclusivein interfaceSelectStatement- Returns:
SelectStatement
-
lockExclusive
Description copied from interface:SelectStatementLocks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.- Specified by:
lockExclusivein interfaceSelectStatement- Parameters:
lockContention- TheStatement.LockContentionvalue to set.- Returns:
SelectStatement
-