Packages

class MongoClient extends AnyRef

A Vert.x service used to interact with MongoDB server instances.

Some of the operations might change _id field of passed document.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoClient(_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
  6. def bulkWrite(collection: String, operations: Buffer[BulkOperation], resultHandler: Handler[AsyncResult[MongoClientBulkWriteResult]]): MongoClient

    Execute a bulk operation.

    Execute a bulk operation. Can insert, update, replace, and/or delete multiple documents with one request.

    collection

    the collection

    operations

    the operations to execute

    resultHandler

    will be called with a MongoClientBulkWriteResult when complete

  7. def bulkWriteFuture(collection: String, operations: Buffer[BulkOperation]): Future[MongoClientBulkWriteResult]

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

  8. def bulkWriteWithOptions(collection: String, operations: Buffer[BulkOperation], bulkWriteOptions: BulkWriteOptions, resultHandler: Handler[AsyncResult[MongoClientBulkWriteResult]]): MongoClient

    Execute a bulk operation with the specified write options.

    Execute a bulk operation with the specified write options. Can insert, update, replace, and/or delete multiple documents with one request.

    collection

    the collection

    operations

    the operations to execute

    bulkWriteOptions

    the write optionssee BulkWriteOptions

    resultHandler

    will be called with a MongoClientBulkWriteResult when complete

  9. def bulkWriteWithOptionsFuture(collection: String, operations: Buffer[BulkOperation], bulkWriteOptions: BulkWriteOptions): Future[MongoClientBulkWriteResult]

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

  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. def close(): Unit

    Close the client and release its resources

  12. def count(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Long]]): MongoClient

    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

  13. def countFuture(collection: String, query: JsonObject): Future[Long]

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

  14. def createCollection(collectionName: String, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    Create a new collection

    Create a new collection

    collectionName

    the name of the collection

    resultHandler

    will be called when complete

  15. def createCollectionFuture(collectionName: String): Future[Unit]

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

  16. def createIndex(collection: String, key: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  17. def createIndexFuture(collection: String, key: JsonObject): Future[Unit]

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

  18. def createIndexWithOptions(collection: String, key: JsonObject, options: IndexOptions, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  19. def createIndexWithOptionsFuture(collection: String, key: JsonObject, options: IndexOptions): Future[Unit]

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

  20. def distinct(collection: String, fieldName: String, resultClassname: String, resultHandler: Handler[AsyncResult[JsonArray]]): MongoClient

    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.

  21. def distinctBatch(collection: String, fieldName: String, resultClassname: String): ReadStream[JsonObject]

    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

    returns

    a ReadStream emitting json fragments

  22. def distinctBatchWithQuery(collection: String, fieldName: String, resultClassname: String, query: JsonObject, batchSize: Int): ReadStream[JsonObject]

    Gets the distinct values of the specified field name filtered by specified query.

    Gets the distinct values of the specified field name filtered by specified query. 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

    query

    the query

    batchSize

    the number of documents to load in a batch

    returns

    a ReadStream emitting json fragments

  23. def distinctBatchWithQuery(collection: String, fieldName: String, resultClassname: String, query: JsonObject): ReadStream[JsonObject]

    Gets the distinct values of the specified field name filtered by specified query.

    Gets the distinct values of the specified field name filtered by specified query. 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

    query

    the query

    returns

    a ReadStream emitting json fragments

  24. def distinctFuture(collection: String, fieldName: String, resultClassname: String): Future[JsonArray]

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

  25. def distinctWithQuery(collection: String, fieldName: String, resultClassname: String, query: JsonObject, resultHandler: Handler[AsyncResult[JsonArray]]): MongoClient

    Gets the distinct values of the specified field name filtered by specified query.

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

    collection

    the collection

    fieldName

    the field name

    query

    the query

    resultHandler

    will be provided with array of values.

  26. def distinctWithQueryFuture(collection: String, fieldName: String, resultClassname: String, query: JsonObject): Future[JsonArray]

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

  27. def dropCollection(collection: String, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    Drop a collection

    Drop a collection

    collection

    the collection

    resultHandler

    will be called when complete

  28. def dropCollectionFuture(collection: String): Future[Unit]

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

  29. def dropIndex(collection: String, indexName: String, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  30. def dropIndexFuture(collection: String, indexName: String): Future[Unit]

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

  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  33. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. def find(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Buffer[JsonObject]]]): MongoClient

    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

  35. def findBatch(collection: String, query: JsonObject): ReadStream[JsonObject]

    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

    returns

    a ReadStream emitting found documents

  36. def findBatchWithOptions(collection: String, query: JsonObject, options: FindOptions): ReadStream[JsonObject]

    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

    returns

    a ReadStream emitting found documents

  37. def findFuture(collection: String, query: JsonObject): Future[Buffer[JsonObject]]

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

  38. def findOne(collection: String, query: JsonObject, fields: Option[JsonObject], resultHandler: Handler[AsyncResult[JsonObject]]): MongoClient

    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

  39. def findOneAndDelete(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoClient

    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

  40. def findOneAndDeleteFuture(collection: String, query: JsonObject): Future[JsonObject]

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

  41. def findOneAndDeleteWithOptions(collection: String, query: JsonObject, findOptions: FindOptions, resultHandler: Handler[AsyncResult[JsonObject]]): MongoClient

    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

  42. def findOneAndDeleteWithOptionsFuture(collection: String, query: JsonObject, findOptions: FindOptions): Future[JsonObject]

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

  43. def findOneAndReplace(collection: String, query: JsonObject, replace: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoClient

    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

  44. def findOneAndReplaceFuture(collection: String, query: JsonObject, replace: JsonObject): Future[JsonObject]

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

  45. def findOneAndReplaceWithOptions(collection: String, query: JsonObject, replace: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions, resultHandler: Handler[AsyncResult[JsonObject]]): MongoClient

    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

    findOptions

    options to configure the findsee FindOptions

    updateOptions

    options to configure the updatesee UpdateOptions

    resultHandler

    will be provided with the document, if any

  46. def findOneAndReplaceWithOptionsFuture(collection: String, query: JsonObject, replace: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions): Future[JsonObject]

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

  47. def findOneAndUpdate(collection: String, query: JsonObject, update: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoClient

    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

  48. def findOneAndUpdateFuture(collection: String, query: JsonObject, update: JsonObject): Future[JsonObject]

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

  49. def findOneAndUpdateWithOptions(collection: String, query: JsonObject, update: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions, resultHandler: Handler[AsyncResult[JsonObject]]): MongoClient

    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

  50. 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.

  51. def findOneFuture(collection: String, query: JsonObject, fields: Option[JsonObject]): Future[JsonObject]

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

  52. def findWithOptions(collection: String, query: JsonObject, options: FindOptions, resultHandler: Handler[AsyncResult[Buffer[JsonObject]]]): MongoClient

    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

  53. def findWithOptionsFuture(collection: String, query: JsonObject, options: FindOptions): Future[Buffer[JsonObject]]

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

  54. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  55. def getCollections(resultHandler: Handler[AsyncResult[Buffer[String]]]): MongoClient

    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.

  56. def getCollectionsFuture(): Future[Buffer[String]]

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

  57. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  58. def insert(collection: String, document: JsonObject, resultHandler: Handler[AsyncResult[String]]): MongoClient

    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

  59. def insertFuture(collection: String, document: JsonObject): Future[String]

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

  60. def insertWithOptions(collection: String, document: JsonObject, writeOption: Option[WriteOption], resultHandler: Handler[AsyncResult[String]]): MongoClient

    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

  61. def insertWithOptionsFuture(collection: String, document: JsonObject, writeOption: Option[WriteOption]): Future[String]

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

  62. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  63. def listIndexes(collection: String, resultHandler: Handler[AsyncResult[JsonArray]]): MongoClient

    Get all the indexes in this collection.

    Get all the indexes in this collection.

    collection

    the collection

    resultHandler

    will be called when complete

  64. def listIndexesFuture(collection: String): Future[JsonArray]

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

  65. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  66. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  67. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  68. def remove(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  69. def removeDocument(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoClient

    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

  70. def removeDocumentFuture(collection: String, query: JsonObject): Future[MongoClientDeleteResult]

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

  71. def removeDocumentWithOptions(collection: String, query: JsonObject, writeOption: Option[WriteOption], resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoClient

    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

  72. def removeDocumentWithOptionsFuture(collection: String, query: JsonObject, writeOption: Option[WriteOption]): Future[MongoClientDeleteResult]

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

  73. def removeDocuments(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoClient

    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

  74. def removeDocumentsFuture(collection: String, query: JsonObject): Future[MongoClientDeleteResult]

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

  75. def removeDocumentsWithOptions(collection: String, query: JsonObject, writeOption: Option[WriteOption], resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoClient

    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

  76. def removeDocumentsWithOptionsFuture(collection: String, query: JsonObject, writeOption: Option[WriteOption]): Future[MongoClientDeleteResult]

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

  77. def removeFuture(collection: String, query: JsonObject): Future[Unit]

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

  78. def removeOne(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  79. def removeOneFuture(collection: String, query: JsonObject): Future[Unit]

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

  80. def removeOneWithOptions(collection: String, query: JsonObject, writeOption: WriteOption, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  81. def removeOneWithOptionsFuture(collection: String, query: JsonObject, writeOption: WriteOption): Future[Unit]

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

  82. def removeWithOptions(collection: String, query: JsonObject, writeOption: WriteOption, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  83. def removeWithOptionsFuture(collection: String, query: JsonObject, writeOption: WriteOption): Future[Unit]

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

  84. def replace(collection: String, query: JsonObject, replace: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  85. def replaceDocuments(collection: String, query: JsonObject, replace: JsonObject, resultHandler: Handler[AsyncResult[MongoClientUpdateResult]]): MongoClient

    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

  86. def replaceDocumentsFuture(collection: String, query: JsonObject, replace: JsonObject): Future[MongoClientUpdateResult]

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

  87. def replaceDocumentsWithOptions(collection: String, query: JsonObject, replace: JsonObject, options: UpdateOptions, resultHandler: Handler[AsyncResult[MongoClientUpdateResult]]): MongoClient

    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

  88. 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.

  89. def replaceFuture(collection: String, query: JsonObject, replace: JsonObject): Future[Unit]

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

  90. def replaceWithOptions(collection: String, query: JsonObject, replace: JsonObject, options: UpdateOptions, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  91. 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.

  92. def runCommand(commandName: String, command: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoClient

    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.

  93. def runCommandFuture(commandName: String, command: JsonObject): Future[JsonObject]

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

  94. def save(collection: String, document: JsonObject, resultHandler: Handler[AsyncResult[String]]): MongoClient

    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

  95. def saveFuture(collection: String, document: JsonObject): Future[String]

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

  96. def saveWithOptions(collection: String, document: JsonObject, writeOption: Option[WriteOption], resultHandler: Handler[AsyncResult[String]]): MongoClient

    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

  97. def saveWithOptionsFuture(collection: String, document: JsonObject, writeOption: Option[WriteOption]): Future[String]

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

  98. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  99. def toString(): String
    Definition Classes
    AnyRef → Any
  100. def update(collection: String, query: JsonObject, update: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  101. def updateCollection(collection: String, query: JsonObject, update: JsonObject, resultHandler: Handler[AsyncResult[MongoClientUpdateResult]]): MongoClient

    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

  102. def updateCollectionFuture(collection: String, query: JsonObject, update: JsonObject): Future[MongoClientUpdateResult]

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

  103. def updateCollectionWithOptions(collection: String, query: JsonObject, update: JsonObject, options: UpdateOptions, resultHandler: Handler[AsyncResult[MongoClientUpdateResult]]): MongoClient

    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

  104. 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.

  105. def updateFuture(collection: String, query: JsonObject, update: JsonObject): Future[Unit]

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

  106. def updateWithOptions(collection: String, query: JsonObject, update: JsonObject, options: UpdateOptions, resultHandler: Handler[AsyncResult[Unit]]): MongoClient

    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

  107. 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.

  108. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  109. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  110. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped