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. |
org.springframework.dao.support.PersistenceExceptionTranslator |
getExceptionTranslator()
Exposes a shared
MongoExceptionTranslator . |
com.mongodb.DB getDb() throws org.springframework.dao.DataAccessException
DB
instance.org.springframework.dao.DataAccessException
com.mongodb.DB getDb(String dbName) throws org.springframework.dao.DataAccessException
DB
instance to access the database with the given name.dbName
- must not be null or empty.org.springframework.dao.DataAccessException
org.springframework.dao.support.PersistenceExceptionTranslator getExceptionTranslator()
MongoExceptionTranslator
.Copyright © 2015. All rights reserved.