public interface FindStatement extends Statement<FindStatement,DocResult>
Statement.LockContention| Modifier and Type | Method | Description |
|---|---|---|
FindStatement |
fields(Expression docProjection) |
Add/replace the field projection defining the result.
|
FindStatement |
fields(String... projections) |
Add/replace the field projections defining the result.
|
FindStatement |
groupBy(String... groupBy) |
Add/replace the aggregation fields for this query.
|
FindStatement |
having(String having) |
Add/replace the aggregate criteria for this query.
|
FindStatement |
limit(long numberOfRows) |
Add/replace the document limit for this query.
|
FindStatement |
lockExclusive() |
Locks matching rows exclusively so no other transactions can read or write to them.
|
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.
|
FindStatement |
lockShared() |
Locks matching rows against updates.
|
FindStatement |
lockShared(Statement.LockContention lockContention) |
Locks matching rows against updates using the provided lock contention option.
|
FindStatement |
offset(long limitOffset) |
Add/replace the document offset for this query.
|
FindStatement |
orderBy(String... sortFields) |
Add/replace the order specification for this query.
|
default FindStatement |
skip(long limitOffset) |
Deprecated.
Deprecated in c/J 8.0.12, please use
offset(long) instead. |
FindStatement |
sort(String... sortFields) |
Add/replace the order specification for this query.
|
bind, bind, bind, bind, clearBindings, execute, executeAsyncFindStatement fields(String... projections)
projections - projection expressionFindStatementFindStatement fields(Expression docProjection)
docProjection - projection expressionFindStatementFindStatement groupBy(String... groupBy)
groupBy - groupBy expressionFindStatementFindStatement having(String having)
having - having expressionFindStatementFindStatement orderBy(String... sortFields)
sortFields - sort expressionFindStatementFindStatement sort(String... sortFields)
Synonym for orderBy(String...)
sortFields - sort expressionFindStatement@Deprecated default FindStatement skip(long limitOffset)
offset(long) instead.limitOffset - number of documents to skipFindStatementFindStatement offset(long limitOffset)
limitOffset - number of documents to skipFindStatementFindStatement limit(long numberOfRows)
numberOfRows - limitFindStatementFindStatement lockShared()
FindStatementFindStatement lockShared(Statement.LockContention lockContention)
lockContention - The Statement.LockContention value to set.FindStatementFindStatement lockExclusive()
FindStatementFindStatement lockExclusive(Statement.LockContention lockContention)
lockContention - The Statement.LockContention value to set.FindStatement