Spring Data Document

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
 DB getDb()
          Creates a default DB instance.
 DB getDb(String dbName)
          Creates a DB instance to access the database with the given name.
 

Method Detail

getDb

DB getDb()
         throws DataAccessException
Creates a default DB instance.

Returns:
Throws:
DataAccessException

getDb

DB getDb(String dbName)
         throws DataAccessException
Creates a DB instance to access the database with the given name.

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

Spring Data Document

Copyright © 2011. All Rights Reserved.