|
Spring Data Document | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Query | |
---|---|
org.springframework.data.mongodb.core | MongoDB core support. |
org.springframework.data.mongodb.core.query | MongoDB specific query and update support. |
org.springframework.data.mongodb.repository.query |
Uses of Query in org.springframework.data.mongodb.core |
---|
Methods in org.springframework.data.mongodb.core with parameters of type Query | ||
---|---|---|
long |
MongoTemplate.count(Query query,
Class<?> entityClass)
|
|
long |
MongoOperations.count(Query query,
Class<?> entityClass)
Returns the number of documents for the given Query by querying the collection of the given entity class. |
|
long |
MongoTemplate.count(Query query,
String collectionName)
|
|
long |
MongoOperations.count(Query query,
String collectionName)
Returns the number of documents for the given Query querying the given collection. |
|
protected
|
MongoTemplate.doRemove(String collectionName,
Query query,
Class<T> entityClass)
|
|
protected WriteResult |
MongoTemplate.doUpdate(String collectionName,
Query query,
Update update,
Class<?> entityClass,
boolean upsert,
boolean multi)
|
|
void |
MongoTemplate.executeQuery(Query query,
String collectionName,
DocumentCallbackHandler dch)
|
|
void |
MongoOperations.executeQuery(Query query,
String collectionName,
DocumentCallbackHandler dch)
Execute a MongoDB query and iterate over the query results on a per-document basis with a DocumentCallbackHandler. |
|
protected void |
MongoTemplate.executeQuery(Query query,
String collectionName,
DocumentCallbackHandler dch,
org.springframework.data.mongodb.core.CursorPreparer preparer)
Execute a MongoDB query and iterate over the query results on a per-document basis with a DocumentCallbackHandler using the provided CursorPreparer. |
|
|
MongoTemplate.find(Query query,
Class<T> entityClass)
|
|
|
MongoOperations.find(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity class to a List of the specified type. |
|
|
MongoTemplate.find(Query query,
Class<T> entityClass,
String collectionName)
|
|
|
MongoOperations.find(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the specified collection to a List of the specified type. |
|
|
MongoTemplate.findAndModify(Query query,
Update update,
Class<T> entityClass)
|
|
|
MongoOperations.findAndModify(Query query,
Update update,
Class<T> entityClass)
|
|
|
MongoTemplate.findAndModify(Query query,
Update update,
Class<T> entityClass,
String collectionName)
|
|
|
MongoOperations.findAndModify(Query query,
Update update,
Class<T> entityClass,
String collectionName)
|
|
|
MongoTemplate.findAndModify(Query query,
Update update,
FindAndModifyOptions options,
Class<T> entityClass)
|
|
|
MongoOperations.findAndModify(Query query,
Update update,
FindAndModifyOptions options,
Class<T> entityClass)
|
|
|
MongoTemplate.findAndModify(Query query,
Update update,
FindAndModifyOptions options,
Class<T> entityClass,
String collectionName)
|
|
|
MongoOperations.findAndModify(Query query,
Update update,
FindAndModifyOptions options,
Class<T> entityClass,
String collectionName)
|
|
|
MongoTemplate.findAndRemove(Query query,
Class<T> entityClass)
|
|
|
MongoOperations.findAndRemove(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity type to a single instance of an object of the specified type. |
|
|
MongoTemplate.findAndRemove(Query query,
Class<T> entityClass,
String collectionName)
|
|
|
MongoOperations.findAndRemove(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the specified collection to a single instance of an object of the specified type. |
|
|
MongoTemplate.findOne(Query query,
Class<T> entityClass)
|
|
|
MongoOperations.findOne(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity class to a single instance of an object of the specified type. |
|
|
MongoTemplate.findOne(Query query,
Class<T> entityClass,
String collectionName)
|
|
|
MongoOperations.findOne(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the specified collection to a single instance of an object of the specified type. |
|
|
MongoTemplate.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
Class<T> entityClass)
|
|
|
MongoOperations.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
Class<T> entityClass)
Execute a map-reduce operation that takes a query. |
|
|
MongoTemplate.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
MapReduceOptions mapReduceOptions,
Class<T> entityClass)
|
|
|
MongoOperations.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
MapReduceOptions mapReduceOptions,
Class<T> entityClass)
Execute a map-reduce operation that takes a query and additional map-reduce options |
|
|
MongoTemplate.remove(Query query,
Class<T> entityClass)
|
|
|
MongoOperations.remove(Query query,
Class<T> entityClass)
Remove all documents that match the provided query document criteria from the the collection used to store the entityClass. |
|
void |
MongoTemplate.remove(Query query,
String collectionName)
|
|
void |
MongoOperations.remove(Query query,
String collectionName)
Remove all documents from the specified collection that match the provided query document criteria. |
|
WriteResult |
MongoTemplate.updateFirst(Query query,
Update update,
Class<?> entityClass)
|
|
WriteResult |
MongoOperations.updateFirst(Query query,
Update update,
Class<?> entityClass)
Updates the first object that is found in the collection of the entity class that matches the query document with the provided update document. |
|
WriteResult |
MongoTemplate.updateFirst(Query query,
Update update,
String collectionName)
|
|
WriteResult |
MongoOperations.updateFirst(Query query,
Update update,
String collectionName)
Updates the first object that is found in the specified collection that matches the query document criteria with the provided updated document. |
|
WriteResult |
MongoTemplate.updateMulti(Query query,
Update update,
Class<?> entityClass)
|
|
WriteResult |
MongoOperations.updateMulti(Query query,
Update update,
Class<?> entityClass)
Updates all objects that are found in the collection for the entity class that matches the query document criteria with the provided updated document. |
|
WriteResult |
MongoTemplate.updateMulti(Query query,
Update update,
String collectionName)
|
|
WriteResult |
MongoOperations.updateMulti(Query query,
Update update,
String collectionName)
Updates all objects that are found in the specified collection that matches the query document criteria with the provided updated document. |
|
WriteResult |
MongoTemplate.upsert(Query query,
Update update,
Class<?> entityClass)
|
|
WriteResult |
MongoOperations.upsert(Query query,
Update update,
Class<?> entityClass)
Performs an upsert. |
|
WriteResult |
MongoTemplate.upsert(Query query,
Update update,
String collectionName)
|
|
WriteResult |
MongoOperations.upsert(Query query,
Update update,
String collectionName)
Performs an upsert. |
Uses of Query in org.springframework.data.mongodb.core.query |
---|
Subclasses of Query in org.springframework.data.mongodb.core.query | |
---|---|
class |
BasicQuery
Custom Query implementation to setup a basic query from some arbitrary JSON query string. |
class |
OrQuery
Deprecated. use Criteria.orOperator(Criteria...) instead. |
Methods in org.springframework.data.mongodb.core.query that return Query | |
---|---|
Query |
Query.addCriteria(Criteria criteria)
|
Query |
BasicQuery.addCriteria(Criteria criteria)
|
Query |
Query.limit(int limit)
|
static Query |
Query.query(Criteria critera)
Static factory method to create a Query using the provided criteria |
Query |
Query.skip(int skip)
|
Query |
Query.withHint(String name)
Configures the query to use the given hint when being executed. |
Methods in org.springframework.data.mongodb.core.query with parameters of type Query | |
---|---|
NearQuery |
NearQuery.query(Query query)
Adds an actual query to the NearQuery to restrict the objects considered for the actual near operation. |
Constructors in org.springframework.data.mongodb.core.query with parameters of type Query | |
---|---|
OrQuery(Query... q)
Deprecated. |
Uses of Query in org.springframework.data.mongodb.repository.query |
---|
Methods in org.springframework.data.mongodb.repository.query that return Query | |
---|---|
static Query |
QueryUtils.applyPagination(Query query,
org.springframework.data.domain.Pageable pageable)
Applies the given Pageable to the given Query . |
static Query |
QueryUtils.applySorting(Query query,
org.springframework.data.domain.Sort sort)
Applies the given Sort to the Query . |
protected Query |
PartTreeMongoQuery.createCountQuery(ConvertingParameterAccessor accessor)
|
protected Query |
AbstractMongoQuery.createCountQuery(ConvertingParameterAccessor accessor)
Creates a Query instance using the given ConvertingParameterAccessor . |
protected Query |
StringBasedMongoQuery.createQuery(ConvertingParameterAccessor accessor)
|
protected Query |
PartTreeMongoQuery.createQuery(ConvertingParameterAccessor accessor)
|
protected abstract Query |
AbstractMongoQuery.createQuery(ConvertingParameterAccessor accessor)
Creates a Query instance using the given ParameterAccessor |
Methods in org.springframework.data.mongodb.repository.query with parameters of type Query | |
---|---|
static Query |
QueryUtils.applyPagination(Query query,
org.springframework.data.domain.Pageable pageable)
Applies the given Pageable to the given Query . |
static Query |
QueryUtils.applySorting(Query query,
org.springframework.data.domain.Sort sort)
Applies the given Sort to the Query . |
|
Spring Data Document | |||||||||
PREV NEXT | FRAMES NO FRAMES |