public class FindRequest extends Request implements WithQuery, WithProjection, WithRange
WithRange.Range| Constructor and Description |
|---|
FindRequest() |
| Modifier and Type | Method and Description |
|---|---|
static FindRequest |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses a find request from a json object.
|
CRUDFindRequest |
getCRUDFindRequest() |
Long |
getFrom()
Specifies the index in the result set to start returning documents.
|
CRUDOperation |
getOperation() |
Projection |
getProjection()
Specifies what fields of the documents to return
|
QueryExpression |
getQuery()
The query
|
Sort |
getSort()
Specifies the order in which the documents will be returned
|
Long |
getTo()
Specifies the last index of the document in the result set to be
returned.
|
void |
setFrom(Long l)
Specifies the index in the result set to start returning documents.
|
void |
setProjection(Projection x)
Specifies what fields of the documents to return
|
void |
setQuery(QueryExpression q)
The query
|
void |
setSort(Sort s)
Specifies the order in which the documents will be returned
|
void |
setTo(Long l)
Specifies the last index of the document in the result set to be
returned.
|
void |
shallowCopyFrom(FindRequest r) |
void |
shallowCopyFrom(Request r,
CRUDFindRequest c) |
com.fasterxml.jackson.databind.JsonNode |
toJson()
Returns JSON representation of this
|
getClientId, getEntityVersion, getExecution, parse, setClientId, setEntityVersion, setExecution, shallowCopyFromgetFactory, getSourceNode, toStringpublic QueryExpression getQuery()
public void setQuery(QueryExpression q)
public Projection getProjection()
getProjection in interface WithProjectionpublic void setProjection(Projection x)
public Sort getSort()
public void setSort(Sort s)
public Long getFrom()
WithRangepublic void setFrom(Long l)
public Long getTo()
WithRangepublic void setTo(Long l)
public CRUDFindRequest getCRUDFindRequest()
public void shallowCopyFrom(FindRequest r)
public void shallowCopyFrom(Request r, CRUDFindRequest c)
public CRUDOperation getOperation()
getOperation in class Requestpublic com.fasterxml.jackson.databind.JsonNode toJson()
public static FindRequest fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2016. All rights reserved.