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 Database
getDatabase(String name)
List<Database>
getDatabases()
void
shutdown()
Shutdown all databases, releasing resources.
-
-
-
Method Detail
-
getDatabases
public List<Database> getDatabases()
- Specified by:
getDatabases
in interfaceDBApi
- Returns:
- all configured databases.
-
getDatabase
public Database getDatabase(String name)
- Specified by:
getDatabase
in interfaceDBApi
- Parameters:
name
- the configuration name of the database- Returns:
- Get database with given configuration name.
-
-