Package play.db
Class DefaultDBApi
java.lang.Object
play.db.DefaultDBApi
- All Implemented Interfaces:
DBApi
Default delegating implementation of the DB API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDatabase(String name) voidshutdown()Shutdown all databases, releasing resources.
-
Constructor Details
-
DefaultDBApi
@Inject public DefaultDBApi(play.api.db.DBApi dbApi)
-
-
Method Details
-
getDatabases
- Specified by:
getDatabasesin interfaceDBApi- Returns:
- all configured databases.
-
getDatabase
- Specified by:
getDatabasein interfaceDBApi- Parameters:
name- the configuration name of the database- Returns:
- Get database with given configuration name.
-
shutdown
public void shutdown()Description copied from interface:DBApiShutdown all databases, releasing resources.
-