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