@ -294,7 +294,10 @@ public interface MongoOperations {
@@ -294,7 +294,10 @@ public interface MongoOperations {
ScriptOperations scriptOps ( ) ;
/ * *
* Returns a new { @link BulkOperations } for the given collection .
* Returns a new { @link BulkOperations } for the given collection . < br / >
* < strong > NOTE : < / strong > Any additional support for field mapping , etc . is not available for { @literal update } or
* { @literal remove } operations in bulk mode due to the lack of domain type information . Use
* { @link # bulkOps ( BulkMode , Class , String ) } to get full type specific support .
*
* @param mode the { @link BulkMode } to use for bulk operations , must not be { @literal null } .
* @param collectionName the name of the collection to work on , must not be { @literal null } or empty .
@ -546,7 +549,9 @@ public interface MongoOperations {
@@ -546,7 +549,9 @@ public interface MongoOperations {
< T > T findOne ( Query query , Class < T > entityClass , String collectionName ) ;
/ * *
* Determine result of given { @link Query } contains at least one element .
* Determine result of given { @link Query } contains at least one element . < br / >
* < strong > NOTE : < / strong > Any additional support for query / field mapping , etc . is not available due to the lack of
* domain type information . Use { @link # exists ( Query , Class , String ) } to get full type specific support .
*
* @param query the { @link Query } class that specifies the criteria used to find a record .
* @param collectionName name of the collection to check for objects .
@ -730,7 +735,7 @@ public interface MongoOperations {
@@ -730,7 +735,7 @@ public interface MongoOperations {
/ * *
* Returns the number of documents for the given { @link Query } querying the given collection . The given { @link Query }
* must solely consist of document field references as we lack type information to map potential property references
* onto document fields . TO make sure the query gets mapped , u se { @link # count ( Query , Class , String ) } .
* onto document fields . U se { @link # count ( Query , Class , String ) } to get full type specific support .
*
* @param query
* @param collectionName must not be { @literal null } or empty .
@ -853,7 +858,9 @@ public interface MongoOperations {
@@ -853,7 +858,9 @@ public interface MongoOperations {
/ * *
* Performs an upsert . If no document is found that matches the query , a new document is created and inserted by
* combining the query document and the update document .
* combining the query document and the update document . < br / >
* < strong > NOTE : < / strong > Any additional support for field mapping , versions , etc . is not available due to the lack of
* domain type information . Use { @link # upsert ( Query , Update , Class , String ) } to get full type specific support .
*
* @param query the query document that specifies the criteria used to select a record to be updated
* @param update the update document that contains the updated object or $ operators to manipulate the existing
@ -889,7 +896,9 @@ public interface MongoOperations {
@@ -889,7 +896,9 @@ public interface MongoOperations {
/ * *
* Updates the first object that is found in the specified collection that matches the query document criteria with
* the provided updated document .
* the provided updated document . < br / >
* < strong > NOTE : < / strong > Any additional support for field mapping , versions , etc . is not available due to the lack of
* domain type information . Use { @link # updateFirst ( Query , Update , Class , String ) } to get full type specific support .
*
* @param query the query document that specifies the criteria used to select a record to be updated
* @param update the update document that contains the updated object or $ operators to manipulate the existing
@ -926,7 +935,9 @@ public interface MongoOperations {
@@ -926,7 +935,9 @@ public interface MongoOperations {
/ * *
* Updates all objects that are found in the specified collection that matches the query document criteria with the
* provided updated document .
* provided updated document . < br / >
* < strong > NOTE : < / strong > Any additional support for field mapping , versions , etc . is not available due to the lack of
* domain type information . Use { @link # updateMulti ( Query , Update , Class , String ) } to get full type specific support .
*
* @param query the query document that specifies the criteria used to select a record to be updated
* @param update the update document that contains the updated object or $ operators to manipulate the existing
@ -985,7 +996,9 @@ public interface MongoOperations {
@@ -985,7 +996,9 @@ public interface MongoOperations {
/ * *
* Remove all documents from the specified collection that match the provided query document criteria . There is no
* conversion / mapping done for any criteria using the id field .
* conversion / mapping done for any criteria using the id field . < br / >
* < strong > NOTE : < / strong > Any additional support for field mapping is not available due to the lack of domain type
* information . Use { @link # remove ( Query , Class , String ) } to get full type specific support .
*
* @param query the query document that specifies the criteria used to remove a record
* @param collectionName name of the collection where the objects will removed
@ -993,10 +1006,12 @@ public interface MongoOperations {
@@ -993,10 +1006,12 @@ public interface MongoOperations {
WriteResult remove ( Query query , String collectionName ) ;
/ * *
* Returns and removes all documents form the specified collection that match the provided query .
* Returns and removes all documents form the specified collection that match the provided query . < br / >
* < strong > NOTE : < / strong > Any additional support for field mapping is not available due to the lack of domain type
* information . Use { @link # findAllAndRemove ( Query , Class , String ) } to get full type specific support .
*
* @param query
* @param collectionName
* @param query must not be { @literal null } .
* @param collectionName must not be { @literal null } .
* @return
* @since 1 . 5
* /