接口 SelectStatement
-
- 所有超级接口:
Statement<SelectStatement,RowResult>
- 所有已知实现类:
SelectStatementImpl
public interface SelectStatement extends Statement<SelectStatement,RowResult>
A statement representing a SELECT query.
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 FilterParamsgetFilterParams()ReturnFilterParamsdefined for this statement.SelectStatementgroupBy(String... groupBy)Add/replace the aggregation fields for this query.SelectStatementhaving(String having)Add/replace the aggregate criteria for this query.SelectStatementlimit(long numberOfRows)Add/replace the row limit 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.SelectStatementoffset(long limitOffset)Add/replace the row offset for this query.SelectStatementorderBy(String... sortFields)Add/replace the order specification for this query.SelectStatementwhere(String searchCondition)Add/replace the search condition for this query.-
从接口继承的方法 com.mysql.cj.xdevapi.Statement
bind, bind, bind, bind, clearBindings, execute, executeAsync
-
-
-
-
方法详细资料
-
where
SelectStatement where(String searchCondition)
Add/replace the search condition for this query.- 参数:
searchCondition- search condition expression- 返回:
SelectStatement
-
groupBy
SelectStatement groupBy(String... groupBy)
Add/replace the aggregation fields for this query.- 参数:
groupBy- groupBy expression- 返回:
SelectStatement
-
having
SelectStatement having(String having)
Add/replace the aggregate criteria for this query.- 参数:
having- having expression- 返回:
SelectStatement
-
orderBy
SelectStatement orderBy(String... sortFields)
Add/replace the order specification for this query.- 参数:
sortFields- sort expression- 返回:
SelectStatement
-
limit
SelectStatement limit(long numberOfRows)
Add/replace the row limit for this query.- 参数:
numberOfRows- limit- 返回:
SelectStatement
-
offset
SelectStatement offset(long limitOffset)
Add/replace the row offset for this query.- 参数:
limitOffset- limit offset- 返回:
SelectStatement
-
lockShared
SelectStatement lockShared()
Locks matching rows against updates.- 返回:
SelectStatement
-
lockShared
SelectStatement lockShared(Statement.LockContention lockContention)
Locks matching rows against updates using the provided lock contention option.- 参数:
lockContention- TheStatement.LockContentionvalue to set.- 返回:
SelectStatement
-
lockExclusive
SelectStatement lockExclusive()
Locks matching rows exclusively so no other transactions can read or write to them.- 返回:
SelectStatement
-
lockExclusive
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.- 参数:
lockContention- TheStatement.LockContentionvalue to set.- 返回:
SelectStatement
-
getFilterParams
FilterParams getFilterParams()
ReturnFilterParamsdefined for this statement.- 返回:
FilterParams
-
-