org.springframework.data.mongodb
Interface MongoDbFactory

All Known Implementing Classes:
SimpleMongoDbFactory

public interface MongoDbFactory

Interface for factories creating DB instances.

Author:
Mark Pollack

Method Summary
 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.
 

Method Detail

getDb

com.mongodb.DB getDb()
                     throws org.springframework.dao.DataAccessException
Creates a default DB instance.

Returns:
Throws:
org.springframework.dao.DataAccessException

getDb

com.mongodb.DB getDb(String dbName)
                     throws org.springframework.dao.DataAccessException
Creates a DB instance to access the database with the given name.

Parameters:
dbName - must not be null or empty.
Returns:
Throws:
org.springframework.dao.DataAccessException


Copyright © 2011. All Rights Reserved.