接口 FindStatement
-
- 所有超级接口:
Statement<FindStatement,DocResult>
- 所有已知实现类:
FindStatementImpl
public interface FindStatement extends Statement<FindStatement,DocResult>
A statement to find the set of documents according to the given specification.
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 FindStatementfields(Expression docProjection)Add/replace the field projection defining the result.FindStatementfields(String... projections)Add/replace the field projections defining the result.FindStatementgroupBy(String... groupBy)Add/replace the aggregation fields for this query.FindStatementhaving(String having)Add/replace the aggregate criteria for this query.FindStatementlimit(long numberOfRows)Add/replace the document limit for this query.FindStatementlockExclusive()Locks matching rows exclusively so no other transactions can read or write to them.FindStatementlockExclusive(Statement.LockContention lockContention)Locks matching rows exclusively so no other transactions can read or write to them, using the provided lock contention option.FindStatementlockShared()Locks matching rows against updates.FindStatementlockShared(Statement.LockContention lockContention)Locks matching rows against updates using the provided lock contention option.FindStatementoffset(long limitOffset)Add/replace the document offset for this query.FindStatementorderBy(String... sortFields)Add/replace the order specification for this query.default FindStatementskip(long limitOffset)已过时。Deprecated in c/J 8.0.12, please useoffset(long)instead.FindStatementsort(String... sortFields)Add/replace the order specification for this query.-
从接口继承的方法 com.mysql.cj.xdevapi.Statement
bind, bind, bind, bind, clearBindings, execute, executeAsync
-
-
-
-
方法详细资料
-
fields
FindStatement fields(String... projections)
Add/replace the field projections defining the result.- 参数:
projections- projection expression- 返回:
FindStatement
-
fields
FindStatement fields(Expression docProjection)
Add/replace the field projection defining the result.- 参数:
docProjection- projection expression- 返回:
FindStatement
-
groupBy
FindStatement groupBy(String... groupBy)
Add/replace the aggregation fields for this query.- 参数:
groupBy- groupBy expression- 返回:
FindStatement
-
having
FindStatement having(String having)
Add/replace the aggregate criteria for this query.- 参数:
having- having expression- 返回:
FindStatement
-
orderBy
FindStatement orderBy(String... sortFields)
Add/replace the order specification for this query.- 参数:
sortFields- sort expression- 返回:
FindStatement
-
sort
FindStatement sort(String... sortFields)
Add/replace the order specification for this query.Synonym for
orderBy(String...)- 参数:
sortFields- sort expression- 返回:
FindStatement
-
skip
@Deprecated default FindStatement skip(long limitOffset)
已过时。Deprecated in c/J 8.0.12, please useoffset(long)instead.Add/replace the document offset for this query.- 参数:
limitOffset- number of documents to skip- 返回:
FindStatement
-
offset
FindStatement offset(long limitOffset)
Add/replace the document offset for this query.- 参数:
limitOffset- number of documents to skip- 返回:
FindStatement
-
limit
FindStatement limit(long numberOfRows)
Add/replace the document limit for this query.- 参数:
numberOfRows- limit- 返回:
FindStatement
-
lockShared
FindStatement lockShared()
Locks matching rows against updates.- 返回:
FindStatement
-
lockShared
FindStatement lockShared(Statement.LockContention lockContention)
Locks matching rows against updates using the provided lock contention option.- 参数:
lockContention- TheStatement.LockContentionvalue to set.- 返回:
FindStatement
-
lockExclusive
FindStatement lockExclusive()
Locks matching rows exclusively so no other transactions can read or write to them.- 返回:
FindStatement
-
lockExclusive
FindStatement 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.- 返回:
FindStatement
-
-