/** * calls {@link DBCollection#update(com.mongodb.DBObject, com.mongodb.DBObject, boolean, boolean)} with upsert=false and multi=true * * @param query search query for old object to update * @param update update with which to update <tt>query</tt> * @return The write result * @throws MongoException If an error occurred */ public WriteResult<T, K> updateMulti(DBObject query, DBUpdate.Builder update) throws MongoException { return this.updateMulti(query, update.serialiseAndGet(objectMapper)); }
/** * calls {@link DBCollection#update(com.mongodb.DBObject, com.mongodb.DBObject, boolean, boolean)} with upsert=false and multi=true * * @param query search query for old object to update * @param update update with which to update <tt>query</tt> * @return The write result * @throws MongoException If an error occurred */ public WriteResult<T, K> updateMulti(DBObject query, DBUpdate.Builder update) throws MongoException { return this.updateMulti(query, update.serialiseAndGet(objectMapper)); }