vertx-lang-scala-docs_2.12 3.4.1 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package ext
  Definition Classes
    scala
-  package mongo
  Definition Classes
    ext
- FindOptions
- IndexOptions
- MongoClient
- MongoClientDeleteResult
- MongoClientUpdateResult
- MongoService
- UpdateOptions

c

io.vertx.scala.ext.mongo

# MongoService 

###
Companion object MongoService

#### class MongoService extends MongoClient

Linear Supertypes
MongoClient, AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. MongoService
2. MongoClient
3. AnyRef
4. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new MongoService(_asJava: AnyRef)

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
5.  def asJava: AnyRef
   Definition Classes
     MongoClient
6.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( ... )
7.  def close(): Unit

   Close the client and release its resources

   Close the client and release its resources

   Definition Classes
     MongoService → MongoClient
8.  def count(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Long]]): MongoService

   Count matching documents in a collection.

   Count matching documents in a collection.

   collection

     the collection

   query

     query used to match documents

   resultHandler

     will be provided with the number of matching documents

   Definition Classes
     MongoService → MongoClient
9.  def countFuture(collection: String, query: JsonObject): Future[Long]

   Like count but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

   Like count but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

   Definition Classes
     MongoService → MongoClient
10.  def createCollection(collectionName: String, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Create a new collection

    Create a new collection

    collectionName

      the name of the collection

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
11.  def createCollectionFuture(collectionName: String): Future[Unit]

    Like createCollection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like createCollection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
12.  def createIndex(collection: String, key: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Creates an index.

    Creates an index.

    collection

      the collection

    key

      A document that contains the field and value pairs where the field is the index key and the value describes the type of index for that field. For an ascending index on a field, specify a value of 1; for descending index, specify a value of -1.

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
13.  def createIndexFuture(collection: String, key: JsonObject): Future[Unit]

    Like createIndex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like createIndex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
14.  def createIndexWithOptions(collection: String, key: JsonObject, options: IndexOptions, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Creates an index.

    Creates an index.

    collection

      the collection

    key

      A document that contains the field and value pairs where the field is the index key and the value describes the type of index for that field. For an ascending index on a field, specify a value of 1; for descending index, specify a value of -1.

    options

      the options for the indexsee IndexOptions

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
15.  def createIndexWithOptionsFuture(collection: String, key: JsonObject, options: IndexOptions): Future[Unit]

    Like createIndexWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like createIndexWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
16.  def distinct(collection: String, fieldName: String, resultClassname: String, resultHandler: Handler[AsyncResult[JsonArray]]): MongoService

    Gets the distinct values of the specified field name.

    Gets the distinct values of the specified field name. Return a JsonArray containing distinct values (eg: [ 1 , 89 ])

    collection

      the collection

    fieldName

      the field name

    resultHandler

      will be provided with array of values.

    Definition Classes
      MongoService → MongoClient
17.  def distinctBatch(collection: String, fieldName: String, resultClassname: String, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Gets the distinct values of the specified field name.

    Gets the distinct values of the specified field name. This method use batchCursor for returning each found value. Each value is a json fragment with fieldName key (eg: {"num": 1`).`

    collection

      the collection

    fieldName

      the field name

    resultHandler

      will be provided with each found value

    Definition Classes
      MongoService → MongoClient
18.  def distinctBatchFuture(collection: String, fieldName: String, resultClassname: String): Future[JsonObject]

    Like distinctBatch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like distinctBatch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
19.  def distinctFuture(collection: String, fieldName: String, resultClassname: String): Future[JsonArray]

    Like distinct but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like distinct but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
20.  def dropCollection(collection: String, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Drop a collection

    Drop a collection

    collection

      the collection

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
21.  def dropCollectionFuture(collection: String): Future[Unit]

    Like dropCollection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like dropCollection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
22.  def dropIndex(collection: String, indexName: String, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Drops the index given its name.

    Drops the index given its name.

    collection

      the collection

    indexName

      the name of the index to remove

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
23.  def dropIndexFuture(collection: String, indexName: String): Future[Unit]

    Like dropIndex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like dropIndex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
24.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
25.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
26.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
27.  def find(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Buffer[JsonObject]]]): MongoService

    Find matching documents in the specified collection

    Find matching documents in the specified collection

    collection

      the collection

    query

      query used to match documents

    resultHandler

      will be provided with list of documents

    Definition Classes
      MongoService → MongoClient
28.  def findBatch(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Find matching documents in the specified collection.

    Find matching documents in the specified collection. This method use batchCursor for returning each found document.

    collection

      the collection

    query

      query used to match documents

    resultHandler

      will be provided with each found document

    Definition Classes
      MongoService → MongoClient
29.  def findBatchFuture(collection: String, query: JsonObject): Future[JsonObject]

    Like findBatch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findBatch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
30.  def findBatchWithOptions(collection: String, query: JsonObject, options: FindOptions, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Find matching documents in the specified collection, specifying options.

    Find matching documents in the specified collection, specifying options. This method use batchCursor for returning each found document.

    collection

      the collection

    query

      query used to match documents

    options

      options to configure the findsee FindOptions

    resultHandler

      will be provided with each found document

    Definition Classes
      MongoService → MongoClient
31.  def findBatchWithOptionsFuture(collection: String, query: JsonObject, options: FindOptions): Future[JsonObject]

    Like findBatchWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findBatchWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
32.  def findFuture(collection: String, query: JsonObject): Future[Buffer[JsonObject]]

    Like find but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like find but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
33.  def findOne(collection: String, query: JsonObject, fields: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Find a single matching document in the specified collection

    Find a single matching document in the specified collection

    This operation might change _id field of query parameter

    collection

      the collection

    query

      the query used to match the document

    fields

      the fields

    resultHandler

      will be provided with the document, if any

    Definition Classes
      MongoService → MongoClient
34.  def findOneAndDelete(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Find a single matching document in the specified collection and delete it.

    Find a single matching document in the specified collection and delete it.

    This operation might change _id field of query parameter

    collection

      the collection

    query

      the query used to match the document

    resultHandler

      will be provided with the deleted document, if any

    Definition Classes
      MongoService → MongoClient
35.  def findOneAndDeleteFuture(collection: String, query: JsonObject): Future[JsonObject]

    Like findOneAndDelete but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findOneAndDelete but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
36.  def findOneAndDeleteWithOptions(collection: String, query: JsonObject, findOptions: FindOptions, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Find a single matching document in the specified collection and delete it.

    Find a single matching document in the specified collection and delete it.

    This operation might change _id field of query parameter

    collection

      the collection

    query

      the query used to match the document

    findOptions

      options to configure the findsee FindOptions

    resultHandler

      will be provided with the deleted document, if any

    Definition Classes
      MongoService → MongoClient
37.  def findOneAndDeleteWithOptionsFuture(collection: String, query: JsonObject, findOptions: FindOptions): Future[JsonObject]

    Like findOneAndDeleteWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findOneAndDeleteWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
38.  def findOneAndReplace(collection: String, query: JsonObject, replace: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Find a single matching document in the specified collection and replace it.

    Find a single matching document in the specified collection and replace it.

    This operation might change _id field of query parameter

    collection

      the collection

    query

      the query used to match the document

    replace

      the replacement document

    resultHandler

      will be provided with the document, if any

    Definition Classes
      MongoService → MongoClient
39.  def findOneAndReplaceFuture(collection: String, query: JsonObject, replace: JsonObject): Future[JsonObject]

    Like findOneAndReplace but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findOneAndReplace but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
40.  def findOneAndReplaceWithOptions(collection: String, query: JsonObject, update: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Find a single matching document in the specified collection and replace it.

    Find a single matching document in the specified collection and replace it.

    This operation might change _id field of query parameter

    collection

      the collection

    query

      the query used to match the document

    findOptions

      options to configure the findsee FindOptions

    updateOptions

      options to configure the updatesee UpdateOptions

    resultHandler

      will be provided with the document, if any

    Definition Classes
      MongoService → MongoClient
41.  def findOneAndReplaceWithOptionsFuture(collection: String, query: JsonObject, update: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions): Future[JsonObject]

    Like findOneAndReplaceWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findOneAndReplaceWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
42.  def findOneAndUpdate(collection: String, query: JsonObject, update: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Find a single matching document in the specified collection and update it.

    Find a single matching document in the specified collection and update it.

    This operation might change _id field of query parameter

    collection

      the collection

    query

      the query used to match the document

    update

      used to describe how the documents will be updated

    resultHandler

      will be provided with the document, if any

    Definition Classes
      MongoService → MongoClient
43.  def findOneAndUpdateFuture(collection: String, query: JsonObject, update: JsonObject): Future[JsonObject]

    Like findOneAndUpdate but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findOneAndUpdate but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
44.  def findOneAndUpdateWithOptions(collection: String, query: JsonObject, update: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Find a single matching document in the specified collection and update it.

    Find a single matching document in the specified collection and update it.

    This operation might change _id field of query parameter

    collection

      the collection

    query

      the query used to match the document

    update

      used to describe how the documents will be updated

    findOptions

      options to configure the findsee FindOptions

    updateOptions

      options to configure the updatesee UpdateOptions

    resultHandler

      will be provided with the document, if any

    Definition Classes
      MongoService → MongoClient
45.  def findOneAndUpdateWithOptionsFuture(collection: String, query: JsonObject, update: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions): Future[JsonObject]

    Like findOneAndUpdateWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findOneAndUpdateWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
46.  def findOneFuture(collection: String, query: JsonObject, fields: JsonObject): Future[JsonObject]

    Like findOne but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findOne but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
47.  def findWithOptions(collection: String, query: JsonObject, options: FindOptions, resultHandler: Handler[AsyncResult[Buffer[JsonObject]]]): MongoService

    Find matching documents in the specified collection, specifying options

    Find matching documents in the specified collection, specifying options

    collection

      the collection

    query

      query used to match documents

    options

      options to configure the findsee FindOptions

    resultHandler

      will be provided with list of documents

    Definition Classes
      MongoService → MongoClient
48.  def findWithOptionsFuture(collection: String, query: JsonObject, options: FindOptions): Future[Buffer[JsonObject]]

    Like findWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like findWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
49.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
50.  def getCollections(resultHandler: Handler[AsyncResult[Buffer[String]]]): MongoService

    Get a list of all collections in the database.

    Get a list of all collections in the database.

    resultHandler

      will be called with a list of collections.

    Definition Classes
      MongoService → MongoClient
51.  def getCollectionsFuture(): Future[Buffer[String]]

    Like getCollections but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like getCollections but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
52.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
53.  def insert(collection: String, document: JsonObject, resultHandler: Handler[AsyncResult[String]]): MongoService

    Insert a document in the specified collection

    Insert a document in the specified collection

    This operation might change _id field of document parameter

    collection

      the collection

    document

      the document

    resultHandler

      result handler will be provided with the id if document didn't already have one

    Definition Classes
      MongoService → MongoClient
54.  def insertFuture(collection: String, document: JsonObject): Future[String]

    Like insert but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like insert but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
55.  def insertWithOptions(collection: String, document: JsonObject, writeOption: WriteOption, resultHandler: Handler[AsyncResult[String]]): MongoService

    Insert a document in the specified collection with the specified write option

    Insert a document in the specified collection with the specified write option

    This operation might change _id field of document parameter

    collection

      the collection

    document

      the document

    writeOption

      the write option to use

    resultHandler

      result handler will be provided with the id if document didn't already have one

    Definition Classes
      MongoService → MongoClient
56.  def insertWithOptionsFuture(collection: String, document: JsonObject, writeOption: WriteOption): Future[String]

    Like insertWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like insertWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
57.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
58.  def listIndexes(collection: String, resultHandler: Handler[AsyncResult[JsonArray]]): MongoService

    Get all the indexes in this collection.

    Get all the indexes in this collection.

    collection

      the collection

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
59.  def listIndexesFuture(collection: String): Future[JsonArray]

    Like listIndexes but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like listIndexes but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
60.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
61.  final def notify(): Unit
    Definition Classes
      AnyRef
62.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
63.  def remove(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Remove matching documents from a collection

    Remove matching documents from a collection

    collection

      the collection

    query

      query used to match documents

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
64.  def removeDocument(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoService

    Remove a single matching document from a collection and return the handler with MongoClientDeleteResult result

    Remove a single matching document from a collection and return the handler with MongoClientDeleteResult result

    collection

      the collection

    query

      query used to match document

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
65.  def removeDocumentFuture(collection: String, query: JsonObject): Future[MongoClientDeleteResult]

    Like removeDocument but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like removeDocument but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
66.  def removeDocumentWithOptions(collection: String, query: JsonObject, writeOption: WriteOption, resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoService

    Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result

    Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result

    collection

      the collection

    query

      query used to match document

    writeOption

      the write option to use

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
67.  def removeDocumentWithOptionsFuture(collection: String, query: JsonObject, writeOption: WriteOption): Future[MongoClientDeleteResult]

    Like removeDocumentWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like removeDocumentWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
68.  def removeDocuments(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoService

    Remove matching documents from a collection and return the handler with MongoClientDeleteResult result

    Remove matching documents from a collection and return the handler with MongoClientDeleteResult result

    collection

      the collection

    query

      query used to match documents

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
69.  def removeDocumentsFuture(collection: String, query: JsonObject): Future[MongoClientDeleteResult]

    Like removeDocuments but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like removeDocuments but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
70.  def removeDocumentsWithOptions(collection: String, query: JsonObject, writeOption: WriteOption, resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoService

    Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result

    Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result

    collection

      the collection

    query

      query used to match documents

    writeOption

      the write option to use

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
71.  def removeDocumentsWithOptionsFuture(collection: String, query: JsonObject, writeOption: WriteOption): Future[MongoClientDeleteResult]

    Like removeDocumentsWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like removeDocumentsWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
72.  def removeFuture(collection: String, query: JsonObject): Future[Unit]

    Like remove but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like remove but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
73.  def removeOne(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Remove a single matching document from a collection

    Remove a single matching document from a collection

    collection

      the collection

    query

      query used to match document

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
74.  def removeOneFuture(collection: String, query: JsonObject): Future[Unit]

    Like removeOne but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like removeOne but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
75.  def removeOneWithOptions(collection: String, query: JsonObject, writeOption: WriteOption, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Remove a single matching document from a collection with the specified write option

    Remove a single matching document from a collection with the specified write option

    collection

      the collection

    query

      query used to match document

    writeOption

      the write option to use

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
76.  def removeOneWithOptionsFuture(collection: String, query: JsonObject, writeOption: WriteOption): Future[Unit]

    Like removeOneWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like removeOneWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
77.  def removeWithOptions(collection: String, query: JsonObject, writeOption: WriteOption, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Remove matching documents from a collection with the specified write option

    Remove matching documents from a collection with the specified write option

    collection

      the collection

    query

      query used to match documents

    writeOption

      the write option to use

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
78.  def removeWithOptionsFuture(collection: String, query: JsonObject, writeOption: WriteOption): Future[Unit]

    Like removeWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like removeWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
79.  def replace(collection: String, query: JsonObject, replace: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Replace matching documents in the specified collection

    Replace matching documents in the specified collection

    This operation might change _id field of replace parameter

    collection

      the collection

    query

      query used to match the documents

    replace

      all matching documents will be replaced with this

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
80.  def replaceDocuments(collection: String, query: JsonObject, replace: JsonObject, resultHandler: Handler[AsyncResult[MongoClientUpdateResult]]): MongoService

    Replace matching documents in the specified collection and return the handler with MongoClientUpdateResult result

    Replace matching documents in the specified collection and return the handler with MongoClientUpdateResult result

    collection

      the collection

    query

      query used to match the documents

    replace

      all matching documents will be replaced with this

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
81.  def replaceDocumentsFuture(collection: String, query: JsonObject, replace: JsonObject): Future[MongoClientUpdateResult]

    Like replaceDocuments but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like replaceDocuments but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
82.  def replaceDocumentsWithOptions(collection: String, query: JsonObject, replace: JsonObject, options: UpdateOptions, resultHandler: Handler[AsyncResult[MongoClientUpdateResult]]): MongoService

    Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result

    Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result

    collection

      the collection

    query

      query used to match the documents

    replace

      all matching documents will be replaced with this

    options

      options to configure the replacesee UpdateOptions

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
83.  def replaceDocumentsWithOptionsFuture(collection: String, query: JsonObject, replace: JsonObject, options: UpdateOptions): Future[MongoClientUpdateResult]

    Like replaceDocumentsWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like replaceDocumentsWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
84.  def replaceFuture(collection: String, query: JsonObject, replace: JsonObject): Future[Unit]

    Like replace but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like replace but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
85.  def replaceWithOptions(collection: String, query: JsonObject, replace: JsonObject, options: UpdateOptions, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Replace matching documents in the specified collection, specifying options

    Replace matching documents in the specified collection, specifying options

    This operation might change _id field of replace parameter

    collection

      the collection

    query

      query used to match the documents

    replace

      all matching documents will be replaced with this

    options

      options to configure the replacesee UpdateOptions

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
86.  def replaceWithOptionsFuture(collection: String, query: JsonObject, replace: JsonObject, options: UpdateOptions): Future[Unit]

    Like replaceWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like replaceWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
87.  def runCommand(commandName: String, command: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService

    Run an arbitrary MongoDB command.

    Run an arbitrary MongoDB command.

    commandName

      the name of the command

    command

      the command

    resultHandler

      will be called with the result.

    Definition Classes
      MongoService → MongoClient
88.  def runCommandFuture(commandName: String, command: JsonObject): Future[JsonObject]

    Like runCommand but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like runCommand but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
89.  def save(collection: String, document: JsonObject, resultHandler: Handler[AsyncResult[String]]): MongoService

    Save a document in the specified collection

    Save a document in the specified collection

    This operation might change _id field of document parameter

    collection

      the collection

    document

      the document

    resultHandler

      result handler will be provided with the id if document didn't already have one

    Definition Classes
      MongoService → MongoClient
90.  def saveFuture(collection: String, document: JsonObject): Future[String]

    Like save but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like save but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
91.  def saveWithOptions(collection: String, document: JsonObject, writeOption: WriteOption, resultHandler: Handler[AsyncResult[String]]): MongoService

    Save a document in the specified collection with the specified write option

    Save a document in the specified collection with the specified write option

    This operation might change _id field of document parameter

    collection

      the collection

    document

      the document

    writeOption

      the write option to use

    resultHandler

      result handler will be provided with the id if document didn't already have one

    Definition Classes
      MongoService → MongoClient
92.  def saveWithOptionsFuture(collection: String, document: JsonObject, writeOption: WriteOption): Future[String]

    Like saveWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like saveWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
93.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
94.  def toString(): String
    Definition Classes
      AnyRef → Any
95.  def update(collection: String, query: JsonObject, update: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoService

    Update matching documents in the specified collection

    Update matching documents in the specified collection

    collection

      the collection

    query

      query used to match the documents

    update

      used to describe how the documents will be updated

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
96.  def updateCollection(collection: String, query: JsonObject, update: JsonObject, resultHandler: Handler[AsyncResult[MongoClientUpdateResult]]): MongoService

    Update matching documents in the specified collection and return the handler with MongoClientUpdateResult result

    Update matching documents in the specified collection and return the handler with MongoClientUpdateResult result

    collection

      the collection

    query

      query used to match the documents

    update

      used to describe how the documents will be updated

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
97.  def updateCollectionFuture(collection: String, query: JsonObject, update: JsonObject): Future[MongoClientUpdateResult]

    Like updateCollection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like updateCollection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
98.  def updateCollectionWithOptions(collection: String, query: JsonObject, update: JsonObject, options: UpdateOptions, resultHandler: Handler[AsyncResult[MongoClientUpdateResult]]): MongoService

    Update matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result

    Update matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result

    collection

      the collection

    query

      query used to match the documents

    update

      used to describe how the documents will be updated

    options

      options to configure the updatesee UpdateOptions

    resultHandler

      will be called when complete

    Definition Classes
      MongoService → MongoClient
99.  def updateCollectionWithOptionsFuture(collection: String, query: JsonObject, update: JsonObject, options: UpdateOptions): Future[MongoClientUpdateResult]

    Like updateCollectionWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like updateCollectionWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
      MongoService → MongoClient
100.  def updateFuture(collection: String, query: JsonObject, update: JsonObject): Future[Unit]

     Like update but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

     Like update but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

     Definition Classes
       MongoService → MongoClient
101.  def updateWithOptions(collection: String, query: JsonObject, update: JsonObject, options: UpdateOptions, resultHandler: Handler[AsyncResult[Unit]]): MongoService

     Update matching documents in the specified collection, specifying options

     Update matching documents in the specified collection, specifying options

     collection

       the collection

     query

       query used to match the documents

     update

       used to describe how the documents will be updated

     options

       options to configure the updatesee UpdateOptions

     resultHandler

       will be called when complete

     Definition Classes
       MongoService → MongoClient
102.  def updateWithOptionsFuture(collection: String, query: JsonObject, update: JsonObject, options: UpdateOptions): Future[Unit]

     Like updateWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

     Like updateWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

     Definition Classes
       MongoService → MongoClient
103.  final def wait(): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
104.  final def wait(arg0: Long, arg1: Int): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
105.  final def wait(arg0: Long): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

### Inherited from MongoClient

### Inherited from AnyRef

### Inherited from Any

### Ungrouped