public class CRUDFindRequest extends Object implements Serializable, WithRange
WithRange.Range| Constructor and Description |
|---|
CRUDFindRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses a find request from a json object.
|
Long |
getFrom()
Specifies the index in the result set to start returning documents.
|
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(CRUDFindRequest r)
Shallow copy from r to this
|
void |
toJson(com.fasterxml.jackson.databind.node.JsonNodeFactory factory,
com.fasterxml.jackson.databind.node.ObjectNode node)
Populates an object node with the JSON representation of this
|
public QueryExpression getQuery()
public void setQuery(QueryExpression q)
public Projection getProjection()
public void setProjection(Projection x)
public Sort getSort()
public void setSort(Sort s)
public Long getFrom()
public void setFrom(Long l)
public Long getTo()
public void setTo(Long l)
public void shallowCopyFrom(CRUDFindRequest r)
public void toJson(com.fasterxml.jackson.databind.node.JsonNodeFactory factory,
com.fasterxml.jackson.databind.node.ObjectNode node)
public void fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2016. All rights reserved.