Generated by
JDiff

Interface org.springframework.data.document.mongodb.MongoOperations

Removed Methods
List<T> find(String, Query, Class<T>, MongoReader<T>) Map the results of an ad-hoc query on the specified collection to a List of the specified type.
List<T> find(Query, Class<T>, MongoReader<T>) Map the results of an ad-hoc query on the default MongoDB collection to a List of the specified type.
T findAndRemove(String, Query, Class<T>, MongoReader<T>) Map the results of an ad-hoc query on the specified collection to a single instance of an object of the specified type.
T findAndRemove(Query, Class<T>, MongoReader<T>) Map the results of an ad-hoc query on the default MongoDB collection to a single instance of an object of the specified type.
T findOne(String, Query, Class<T>, MongoReader<T>) Map the results of an ad-hoc query on the specified collection to a single instance of an object of the specified type.
T findOne(Query, Class<T>, MongoReader<T>) Map the results of an ad-hoc query on the default MongoDB collection to a single instance of an object of the specified type.
List<T> getCollection(String, Class<T>, MongoReader<T>) Query for a list of objects of type T from the specified collection, mapping the DBObject using the provided MongoReader.
DBCollection getDefaultCollection() The default collection used by this template.
String getDefaultCollectionName() The default collection name used by this template.
void insert(T, MongoWriter<T>) Insert the object into the default collection.
void insert(String, T, MongoWriter<T>) Insert the object into the specified collection.
void insertList(String, List<?, extends, T>, MongoWriter<T>) Insert a list of objects into the specified collection using the provided MongoWriter instance
void insertList(List<?, extends, T>, MongoWriter<T>) Insert a list of objects into the default collection using the provided MongoWriter instance
void save(T, MongoWriter<T>) Save the object into the default collection using the provided writer.
void save(String, T, MongoWriter<T>) Save the object into the specified collection using the provided writer.
 

Added Methods
T findById(Object, Class<T>) Returns a document with the given id mapped onto the given class.
T findById(String, Object, Class<T>) Returns the document with the given id from the given collection mapped onto the given target class.
String getCollectionName(Class<?>) The collection name used for the specified class by this template.
 

Changed Methods
void ensureIndex(Class<?>, IndexDefinition) Change in signature from IndexDefinition to (Class<?>, IndexDefinition).
Ensure that an index for the provided IndexDefinition exists for the default collection.
T execute(Class<?>, CollectionCallback<T>) Change in signature from CollectionCallback<T> to (Class<?>, CollectionCallback<T>).
Executes the given CollectionCallback on the entity collection of the specified class.
WriteResult updateFirst(Class<?>, Query, Update) Change in signature from (Query, Update) to (Class<?>, Query, Update).
Updates the first object that is found in the default collection that matches the query document with the provided updated document.
WriteResult updateMulti(Class<?>, Query, Update) Change in signature from (Query, Update) to (Class<?>, Query, Update).
Updates all objects that are found in the default collection that matches the query document criteria with the provided updated document.