Package play.db
Class DefaultDBApi
- Object
-
- play.db.DefaultDBApi
-
-
Constructor Summary
Constructors Constructor Description DefaultDBApi(play.api.db.DBApi dbApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabasegetDatabase(String name)List<Database>getDatabases()voidshutdown()Shutdown all databases, releasing resources.
-
-
-
Method Detail
-
getDatabases
public List<Database> getDatabases()
- Specified by:
getDatabasesin interfaceDBApi- Returns:
- all configured databases.
-
getDatabase
public Database getDatabase(String name)
- Specified by:
getDatabasein interfaceDBApi- Parameters:
name- the configuration name of the database- Returns:
- Get database with given configuration name.
-
-