public class SelectStatementImpl extends FilterableStatement<SelectStatement,RowResult> implements SelectStatement
SelectStatement implementation.PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedStateStatement.LockContentionfilterParamsmysqlxSession, 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, wheredeallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlimit, offset, orderBy, whereprotected RowResult executeStatement()
PreparableStatementexecuteStatement in class PreparableStatement<RowResult>protected XMessage getPrepareStatementXMessage()
PreparableStatementXMessage needed to prepare this statement. Implementation is dependent on the statement type.getPrepareStatementXMessage in class PreparableStatement<RowResult>XMessage that prepares this statementprotected RowResult executePreparedStatement()
PreparableStatementexecutePreparedStatement in class PreparableStatement<RowResult>public java.util.concurrent.CompletableFuture<RowResult> executeAsync()
StatementexecuteAsync in interface Statement<SelectStatement,RowResult>CompletableFuture for resultpublic SelectStatement groupBy(java.lang.String... groupBy)
SelectStatementgroupBy in interface SelectStatementgroupBy - groupBy expressionSelectStatementpublic SelectStatement having(java.lang.String having)
SelectStatementhaving in interface SelectStatementhaving - having expressionSelectStatementpublic FilterParams getFilterParams()
SelectStatementFilterParams defined for this statement.getFilterParams in interface SelectStatementFilterParamspublic SelectStatement lockShared()
SelectStatementlockShared in interface SelectStatementSelectStatementpublic SelectStatement lockShared(Statement.LockContention lockContention)
SelectStatementlockShared in interface SelectStatementlockContention - The Statement.LockContention value to set.SelectStatementpublic SelectStatement lockExclusive()
SelectStatementlockExclusive in interface SelectStatementSelectStatementpublic SelectStatement lockExclusive(Statement.LockContention lockContention)
SelectStatementlockExclusive in interface SelectStatementlockContention - The Statement.LockContention value to set.SelectStatement