class MongoService extends MongoClient
- Alphabetic
- By Inheritance
- MongoService
- MongoClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-  new MongoService(_asJava: AnyRef)
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        aggregate(collection: String, pipeline: JsonArray): ReadStream[JsonObject]
      
      
      Run aggregate MongoDB command with default AggregateOptions. Run aggregate MongoDB command with default AggregateOptions. * @param collection the collection - pipeline
- aggregation pipeline to be executed 
 - Definition Classes
- MongoClient
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        aggregateWithOptions(collection: String, pipeline: JsonArray, options: AggregateOptions): ReadStream[JsonObject]
      
      
      Run aggregate MongoDB command. Run aggregate MongoDB command. * @param collection the collection - pipeline
- aggregation pipeline to be executed 
- options
- options to configure the aggregation command see AggregateOptions 
 - Definition Classes
- MongoClient
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        asJava: AnyRef
      
      
      - Definition Classes
- MongoClient
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bulkWrite(collection: String, operations: Buffer[BulkOperation], resultHandler: Handler[AsyncResult[MongoClientBulkWriteResult]]): MongoService
      
      
      Execute a bulk operation. Execute a bulk operation. Can insert, update, replace, and/or delete multiple documents with one request. * @param collection the collection - operations
- the operations to execute 
- resultHandler
- will be called with a MongoClientBulkWriteResult when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bulkWriteFuture(collection: String, operations: Buffer[BulkOperation]): Future[MongoClientBulkWriteResult]
      
      
      Like bulkWrite but returns a scala.concurrent.Future instead of taking an AsyncResultHandler. Like bulkWrite but returns a scala.concurrent.Future instead of taking an AsyncResultHandler. - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bulkWriteWithOptions(collection: String, operations: Buffer[BulkOperation], bulkWriteOptions: BulkWriteOptions, resultHandler: Handler[AsyncResult[MongoClientBulkWriteResult]]): MongoService
      
      
      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. * @param collection the collection - operations
- the operations to execute 
- bulkWriteOptions
- the write options see BulkWriteOptions 
- resultHandler
- will be called with a MongoClientBulkWriteResult when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bulkWriteWithOptionsFuture(collection: String, operations: Buffer[BulkOperation], bulkWriteOptions: BulkWriteOptions): Future[MongoClientBulkWriteResult]
      
      
      Like bulkWriteWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler. Like bulkWriteWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler. - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        close(): Unit
      
      
      Close the client and release its resources Close the client and release its resources - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        count(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Long]]): MongoService
      
      
      Count matching documents in a collection. Count matching documents in a collection. * @param collection the collection - query
- query used to match documents 
- resultHandler
- will be provided with the number of matching documents 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        createCollection(collectionName: String, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Create a new collection * @param collectionName the name of the collection Create a new collection * @param collectionName the name of the collection - resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        createIndex(collection: String, key: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Creates an index. Creates an index. * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        createIndexWithOptions(collection: String, key: JsonObject, options: IndexOptions, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Creates an index. Creates an index. * @param 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 index see IndexOptions 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 ]) * @param collection the collection - fieldName
- the field name 
- resultHandler
- will be provided with array of values. 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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 ). * @param collection the collection- fieldName
- the field name 
- returns
- a ReadStream emitting json fragments 
 - Definition Classes
- MongoClient
 
- 
      
      
      
        
      
    
      
        
        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 ). * @param 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 
 - Definition Classes
- MongoClient
 
- 
      
      
      
        
      
    
      
        
        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 ). * @param collection the collection- fieldName
- the field name 
- query
- the query 
- returns
- a ReadStream emitting json fragments 
 - Definition Classes
- MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        distinctWithQuery(collection: String, fieldName: String, resultClassname: String, query: JsonObject, resultHandler: Handler[AsyncResult[JsonArray]]): MongoService
      
      
      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 ]) * @param collection the collection - fieldName
- the field name 
- query
- the query 
- resultHandler
- will be provided with array of values. 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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. Like distinctWithQuery but returns a scala.concurrent.Future instead of taking an AsyncResultHandler. - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        dropCollection(collection: String, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Drop a collection * @param collection the collection Drop a collection * @param collection the collection - resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        dropIndex(collection: String, indexName: String, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Drops the index given its name. Drops the index given its name. * @param collection the collection - indexName
- the name of the index to remove 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        find(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Buffer[JsonObject]]]): MongoService
      
      
      Find matching documents in the specified collection * @param collection the collection Find matching documents in the specified collection * @param collection the collection - query
- query used to match documents 
- resultHandler
- will be provided with list of documents 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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. * @param collection the collection - query
- query used to match documents 
- returns
- a ReadStream emitting found documents 
 - Definition Classes
- MongoClient
 
- 
      
      
      
        
      
    
      
        
        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. * @param collection the collection - query
- query used to match documents 
- options
- options to configure the find see FindOptions 
- returns
- a ReadStream emitting found documents 
 - Definition Classes
- MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        findOne(collection: String, query: JsonObject, fields: Option[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 * @param 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
 
- 
      
      
      
        
      
    
      
        
        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 * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param collection the collection - query
- the query used to match the document 
- findOptions
- options to configure the find see FindOptions 
- resultHandler
- will be provided with the deleted document, if any 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param collection the collection - query
- the query used to match the document 
- findOptions
- options to configure the find see FindOptions 
- updateOptions
- options to configure the update see UpdateOptions 
- resultHandler
- will be provided with the document, if any 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param 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 find see FindOptions 
- updateOptions
- options to configure the update see UpdateOptions 
- resultHandler
- will be provided with the document, if any 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        findOneFuture(collection: String, query: JsonObject, fields: Option[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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        findWithOptions(collection: String, query: JsonObject, options: FindOptions, resultHandler: Handler[AsyncResult[Buffer[JsonObject]]]): MongoService
      
      
      Find matching documents in the specified collection, specifying options * @param collection the collection Find matching documents in the specified collection, specifying options * @param collection the collection - query
- query used to match documents 
- options
- options to configure the find see FindOptions 
- resultHandler
- will be provided with list of documents 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        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. * @param resultHandler will be called with a list of collections. - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        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 * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        insertWithOptions(collection: String, document: JsonObject, writeOption: Option[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 * @param 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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        insertWithOptionsFuture(collection: String, document: JsonObject, writeOption: Option[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
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        listIndexes(collection: String, resultHandler: Handler[AsyncResult[JsonArray]]): MongoService
      
      
      Get all the indexes in this collection. Get all the indexes in this collection. * @param collection the collection - resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        remove(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Remove matching documents from a collection * @param collection the collection Remove matching documents from a collection * @param collection the collection - query
- query used to match documents 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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 * @param collection the collection Remove a single matching document from a collection and return the handler with MongoClientDeleteResult result * @param collection the collection - query
- query used to match document 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        removeDocumentWithOptions(collection: String, query: JsonObject, writeOption: Option[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 * @param collection the collection Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result * @param 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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        removeDocumentWithOptionsFuture(collection: String, query: JsonObject, writeOption: Option[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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        removeDocuments(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoService
      
      
      Remove matching documents from a collection and return the handler with MongoClientDeleteResult result * @param collection the collection Remove matching documents from a collection and return the handler with MongoClientDeleteResult result * @param collection the collection - query
- query used to match documents 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        removeDocumentsWithOptions(collection: String, query: JsonObject, writeOption: Option[WriteOption], resultHandler: Handler[AsyncResult[MongoClientDeleteResult]]): MongoService
      
      
      Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result * @param collection the collection Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result * @param 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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        removeDocumentsWithOptionsFuture(collection: String, query: JsonObject, writeOption: Option[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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        removeOne(collection: String, query: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Remove a single matching document from a collection * @param collection the collection Remove a single matching document from a collection * @param collection the collection - query
- query used to match document 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param collection the collection Remove a single matching document from a collection with the specified write option * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        removeWithOptions(collection: String, query: JsonObject, writeOption: WriteOption, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Remove matching documents from a collection with the specified write option * @param collection the collection Remove matching documents from a collection with the specified write option * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param 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
 
- 
      
      
      
        
      
    
      
        
        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 * @param collection the collection Replace matching documents in the specified collection and return the handler with MongoClientUpdateResult result * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param collection the collection Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result * @param collection the collection - query
- query used to match the documents 
- replace
- all matching documents will be replaced with this 
- options
- options to configure the replace see UpdateOptions 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param collection the collection - query
- query used to match the documents 
- replace
- all matching documents will be replaced with this 
- options
- options to configure the replace see UpdateOptions 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        runCommand(commandName: String, command: JsonObject, resultHandler: Handler[AsyncResult[JsonObject]]): MongoService
      
      
      Run an arbitrary MongoDB command. Run an arbitrary MongoDB command. * @param commandName the name of the command - command
- the command 
- resultHandler
- will be called with the result. 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        saveWithOptions(collection: String, document: JsonObject, writeOption: Option[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 * @param 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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        saveWithOptionsFuture(collection: String, document: JsonObject, writeOption: Option[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
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        update(collection: String, query: JsonObject, update: JsonObject, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Update matching documents in the specified collection * @param collection the collection Update matching documents in the specified collection * @param 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
 
- 
      
      
      
        
      
    
      
        
        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 * @param collection the collection Update matching documents in the specified collection and return the handler with MongoClientUpdateResult result * @param 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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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 * @param collection the collection Update matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result * @param 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 update see UpdateOptions 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        updateWithOptions(collection: String, query: JsonObject, update: JsonObject, options: UpdateOptions, resultHandler: Handler[AsyncResult[Unit]]): MongoService
      
      
      Update matching documents in the specified collection, specifying options * @param collection the collection Update matching documents in the specified collection, specifying options * @param 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 update see UpdateOptions 
- resultHandler
- will be called when complete 
 - Definition Classes
- MongoService → MongoClient
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )