Skip to content

Commit

Permalink
vert-x3#39 Added information about document mutability
Browse files Browse the repository at this point in the history
Signed-off-by: meshuga <[email protected]>
  • Loading branch information
meshuga committed Dec 22, 2015
1 parent c2cb29a commit b618b63
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

/**
* A Vert.x service used to interact with MongoDB server instances.
* <p>
* Some of the operations might change <i>_id</i> field of passed {@link JsonObject} document.
*
* @author <a href="http://tfox.org">Tim Fox</a>
*/
Expand Down Expand Up @@ -67,6 +69,8 @@ static MongoClient createShared(Vertx vertx, JsonObject config) {

/**
* Save a document in the specified collection
* <p>
* This operation might change <i>_id</i> field of <i>document</i> parameter
*
* @param collection the collection
* @param document the document
Expand All @@ -77,6 +81,8 @@ static MongoClient createShared(Vertx vertx, JsonObject config) {

/**
* Save a document in the specified collection with the specified write option
* <p>
* This operation might change <i>_id</i> field of <i>document</i> parameter
*
* @param collection the collection
* @param document the document
Expand All @@ -88,6 +94,8 @@ static MongoClient createShared(Vertx vertx, JsonObject config) {

/**
* Insert a document in the specified collection
* <p>
* This operation might change <i>_id</i> field of <i>document</i> parameter
*
* @param collection the collection
* @param document the document
Expand All @@ -98,6 +106,8 @@ static MongoClient createShared(Vertx vertx, JsonObject config) {

/**
* Insert a document in the specified collection with the specified write option
* <p>
* This operation might change <i>_id</i> field of <i>document</i> parameter
*
* @param collection the collection
* @param document the document
Expand Down Expand Up @@ -132,6 +142,8 @@ static MongoClient createShared(Vertx vertx, JsonObject config) {

/**
* Replace matching documents in the specified collection
* <p>
* This operation might change <i>_id</i> field of <i>replace</i> parameter
*
* @param collection the collection
* @param query query used to match the documents
Expand All @@ -143,6 +155,8 @@ static MongoClient createShared(Vertx vertx, JsonObject config) {

/**
* Replace matching documents in the specified collection, specifying options
* <p>
* This operation might change <i>_id</i> field of <i>replace</i> parameter
*
* @param collection the collection
* @param query query used to match the documents
Expand Down Expand Up @@ -199,6 +213,8 @@ static MongoClient createShared(Vertx vertx, JsonObject config) {

/**
* Find a single matching document in the specified collection
* <p>
* This operation might change <i>_id</i> field of <i>query</i> parameter
*
* @param collection the collection
* @param query the query used to match the document
Expand Down

0 comments on commit b618b63

Please sign in to comment.