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 |
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 com.mongodb.DBObject getQueryObject()
getFieldsObject
public com.mongodb.DBObject getFieldsObject()
getSortObject
public com.mongodb.DBObject getSortObject()
getSkip
public int getSkip()
getLimit
public int getLimit()
Copyright © 2011. All Rights Reserved.