public interface MongoDBConnectionService
Modifier and Type | Method and Description |
---|---|
com.mongodb.client.MongoDatabase |
getDatabase(String id) |
Iterable<com.mongodb.client.MongoDatabase> |
getDatabases() |
com.mongodb.client.MongoDatabase getDatabase(String id)
id
- the connection id to retrieve.MongoDBConnectionConfig
for the input id, or the default one if it
doesn't existIterable<com.mongodb.client.MongoDatabase> getDatabases()
Copyright © 2018 Nuxeo. All rights reserved.