public interface ReactiveMongoDatabaseFactory
MongoDatabase
instances.Modifier and Type | Method and Description |
---|---|
PersistenceExceptionTranslator |
getExceptionTranslator()
Exposes a shared
MongoExceptionTranslator . |
com.mongodb.reactivestreams.client.MongoDatabase |
getMongoDatabase()
Creates a default
MongoDatabase instance. |
com.mongodb.reactivestreams.client.MongoDatabase |
getMongoDatabase(String dbName)
Creates a
MongoDatabase instance to access the database with the given name. |
com.mongodb.reactivestreams.client.MongoDatabase getMongoDatabase() throws DataAccessException
MongoDatabase
instance.DataAccessException
com.mongodb.reactivestreams.client.MongoDatabase getMongoDatabase(String dbName) throws DataAccessException
MongoDatabase
instance to access the database with the given name.dbName
- must not be null or empty.DataAccessException
PersistenceExceptionTranslator getExceptionTranslator()
MongoExceptionTranslator
.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.