org.springframework.data.document.mongodb.query
Class Query
java.lang.Object
org.springframework.data.document.mongodb.query.Query
- Direct Known Subclasses:
- BasicQuery, NorQuery, OrQuery
public class Query
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
criteria
private java.util.LinkedHashMap<java.lang.String,CriteriaDefinition> criteria
fieldSpec
private Field fieldSpec
sort
private Sort sort
skip
private int skip
limit
private int limit
Query
public Query()
Query
public Query(Criteria criteria)
query
public static Query query(Criteria critera)
- Static factory method to create a Query using the provided criteria
- Parameters:
critera
-
- Returns:
addCriteria
public Query addCriteria(Criteria criteria)
or
public Query or(Query... queries)
nor
public Query nor(Query... queries)
fields
public Field fields()
skip
public Query skip(int skip)
limit
public Query limit(int limit)
sort
public Sort sort()
getQueryObject
public DBObject getQueryObject()
getFieldsObject
public DBObject getFieldsObject()
getSortObject
public DBObject getSortObject()
getSkip
public int getSkip()
getLimit
public int getLimit()