public interface ReactiveMongoDatabaseFactory
MongoDatabase instances.| Modifier and Type | Method and Description |
|---|---|
org.springframework.dao.support.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 org.springframework.dao.DataAccessException
MongoDatabase instance.org.springframework.dao.DataAccessExceptioncom.mongodb.reactivestreams.client.MongoDatabase getMongoDatabase(String dbName) throws org.springframework.dao.DataAccessException
MongoDatabase instance to access the database with the given name.dbName - must not be null or empty.org.springframework.dao.DataAccessExceptionorg.springframework.dao.support.PersistenceExceptionTranslator getExceptionTranslator()
MongoExceptionTranslator.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.