public class SelectStatementImpl extends FilterableStatement<SelectStatement,RowResult> implements SelectStatement
SelectStatement
implementation.PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedState
Statement.LockContention
filterParams
mysqlxSession, preparedState, preparedStatementId
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<RowResult> |
executeAsync()
Execute the statement asynchronously.
|
protected RowResult |
executePreparedStatement()
Executes a previously server-prepared statement.
|
protected RowResult |
executeStatement()
Executes the statement directly (non-prepared).
|
FilterParams |
getFilterParams()
Return
FilterParams defined for this statement. |
protected XMessage |
getPrepareStatementXMessage()
Returns the
XMessage needed to prepare this statement. |
SelectStatement |
groupBy(java.lang.String... groupBy)
Add/replace the aggregation fields for this query.
|
SelectStatement |
having(java.lang.String having)
Add/replace the aggregate criteria for this query.
|
SelectStatement |
lockExclusive()
Locks matching rows exclusively so no other transactions can read or write to them.
|
SelectStatement |
lockExclusive(Statement.LockContention lockContention)
Locks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.
|
SelectStatement |
lockShared()
Locks matching rows against updates.
|
SelectStatement |
lockShared(Statement.LockContention lockContention)
Locks matching rows against updates using the provided lock contention option.
|
bind, clearBindings, isRelational, limit, offset, orderBy, sort, where
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
limit, offset, orderBy, where
protected RowResult executeStatement()
PreparableStatement
executeStatement
in class PreparableStatement<RowResult>
protected XMessage getPrepareStatementXMessage()
PreparableStatement
XMessage
needed to prepare this statement. Implementation is dependent on the statement type.getPrepareStatementXMessage
in class PreparableStatement<RowResult>
XMessage
that prepares this statementprotected RowResult executePreparedStatement()
PreparableStatement
executePreparedStatement
in class PreparableStatement<RowResult>
public java.util.concurrent.CompletableFuture<RowResult> executeAsync()
Statement
executeAsync
in interface Statement<SelectStatement,RowResult>
CompletableFuture
for resultpublic SelectStatement groupBy(java.lang.String... groupBy)
SelectStatement
groupBy
in interface SelectStatement
groupBy
- groupBy expressionSelectStatement
public SelectStatement having(java.lang.String having)
SelectStatement
having
in interface SelectStatement
having
- having expressionSelectStatement
public FilterParams getFilterParams()
SelectStatement
FilterParams
defined for this statement.getFilterParams
in interface SelectStatement
FilterParams
public SelectStatement lockShared()
SelectStatement
lockShared
in interface SelectStatement
SelectStatement
public SelectStatement lockShared(Statement.LockContention lockContention)
SelectStatement
lockShared
in interface SelectStatement
lockContention
- The Statement.LockContention
value to set.SelectStatement
public SelectStatement lockExclusive()
SelectStatement
lockExclusive
in interface SelectStatement
SelectStatement
public SelectStatement lockExclusive(Statement.LockContention lockContention)
SelectStatement
lockExclusive
in interface SelectStatement
lockContention
- The Statement.LockContention
value to set.SelectStatement