public class MongoDBQueryHolder extends Object
| Constructor and Description |
|---|
MongoDBQueryHolder(String collection,
SQLCommandType sqlCommandType)
Pojo to hold the MongoDB data
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCollection()
Get the collection to run the query on
|
List<String> |
getGroupBys() |
long |
getLimit() |
org.bson.Document |
getProjection()
Get the object used to create a projection
|
org.bson.Document |
getQuery()
Get the object used to create a query
|
org.bson.Document |
getSort() |
SQLCommandType |
getSqlCommandType() |
boolean |
isCountAll() |
boolean |
isDistinct() |
void |
setCountAll(boolean countAll) |
void |
setDistinct(boolean distinct) |
void |
setGroupBys(List<String> groupBys) |
void |
setLimit(long limit) |
void |
setProjection(org.bson.Document projection) |
void |
setQuery(org.bson.Document query) |
void |
setSort(org.bson.Document sort) |
public MongoDBQueryHolder(String collection, SQLCommandType sqlCommandType)
collection - the collection that the query will be run on.sqlCommandType - public org.bson.Document getProjection()
public org.bson.Document getQuery()
public String getCollection()
public boolean isDistinct()
public void setQuery(org.bson.Document query)
public void setProjection(org.bson.Document projection)
public org.bson.Document getSort()
public void setSort(org.bson.Document sort)
public void setDistinct(boolean distinct)
public boolean isCountAll()
public void setCountAll(boolean countAll)
public long getLimit()
public void setLimit(long limit)
public SQLCommandType getSqlCommandType()
Copyright © 2018. All rights reserved.