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.DataAccessExceptioncom.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.DataAccessExceptionorg.springframework.dao.support.PersistenceExceptionTranslator getExceptionTranslator()
MongoExceptionTranslator.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.