Java org.springframework.data.mongodb.core MongoOperations fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.data.mongodb.core MongoOperations fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.data.mongodb.core MongoOperations.

The text is from its open source code.

Implementation

org.springframework.data.mongodb.core.MongoOperations has the following implementations.
Click this link to see all its implementation.

Method

booleancollectionExists(Class entityClass)
Check to see if a collection with a name indicated by the entity class exists.
booleancollectionExists(String collectionName)
Check to see if a collection with a given name exists.
MongoCollectioncreateCollection(Class entityClass)
Create an uncapped collection with a name based on the provided entity class.
MongoCollectioncreateCollection(String collectionName)
Create an uncapped collection with the provided name.
Listfind(Query query, Class entityClass)
Map the results of an ad-hoc query on the collection for the entity class to a List of the specified type.
Listfind(Query query, Class entityClass, String collectionName)
Map the results of an ad-hoc query on the specified collection to a List of the specified type.
ListfindAll(Class entityClass)
Query for a list of objects of type T from the collection used by the entity class.
ListfindAll(Class entityClass, String collectionName)
Query for a list of objects of type T from the specified collection.
TfindById(Object id, Class entityClass, String collectionName)
Returns the document with the given id from the given collection mapped onto the given target class.
TfindOne(Query query, Class 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.
MongoCollectiongetCollection(String collectionName)
Get a MongoCollection by its name.
MongoConvertergetConverter()
Returns the underlying MongoConverter .
IndexOperationsindexOps(String collectionName)
Returns the operations that can be performed on indexes
IndexOperationsindexOps(Class entityClass)
Returns the operations that can be performed on indexes
Tsave(T objectToSave)
Save the object to the collection for the entity type of the object to save.
Tsave(T objectToSave, String collectionName)
Save the object to the specified collection.
UpdateResultupdateFirst(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.
UpdateResultupdateFirst(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.
UpdateResultupsert(Query query, Update update, Class entityClass)
Performs an upsert.
UpdateResultupsert(Query query, Update update, String collectionName)
Performs an upsert.