public interface FindStatement extends Statement<FindStatement,DocResult>
Statement.LockContention
Modifier and Type | Method and 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, executeAsync
FindStatement fields(String... projections)
projections
- projection expressionFindStatement
FindStatement fields(Expression docProjection)
docProjection
- projection expressionFindStatement
FindStatement groupBy(String... groupBy)
groupBy
- groupBy expressionFindStatement
FindStatement having(String having)
having
- having expressionFindStatement
FindStatement orderBy(String... sortFields)
sortFields
- sort expressionFindStatement
FindStatement sort(String... sortFields)
Synonym for orderBy(String...)
sortFields
- sort expressionFindStatement
@Deprecated default FindStatement skip(long limitOffset)
offset(long)
instead.limitOffset
- number of documents to skipFindStatement
FindStatement offset(long limitOffset)
limitOffset
- number of documents to skipFindStatement
FindStatement limit(long numberOfRows)
numberOfRows
- limitFindStatement
FindStatement lockShared()
FindStatement
FindStatement lockShared(Statement.LockContention lockContention)
lockContention
- The Statement.LockContention
value to set.FindStatement
FindStatement lockExclusive()
FindStatement
FindStatement lockExclusive(Statement.LockContention lockContention)
lockContention
- The Statement.LockContention
value to set.FindStatement