Package play.db
Interface DBComponents
- All Superinterfaces:
ConfigurationComponents,ConnectionPoolComponents
- All Known Subinterfaces:
JPAComponents
Java DB components. You can mix in
HikariCPComponents to have a default implementation
for accessing a connection pool.
For example:
public class MyComponents extends BuiltInComponentsFromContext implements DBComponents, HikariCPComponents {
public MyComponents(ApplicationLoader.Context context) {
super(context);
}
// required methods implementations
}
- See Also:
-
Method Summary
Methods inherited from interface play.components.ConfigurationComponents
config, configurationMethods inherited from interface play.db.ConnectionPoolComponents
connectionPool
-
Method Details
-
environment
Environment environment() -
applicationLifecycle
ApplicationLifecycle applicationLifecycle() -
databases
- Returns:
- all databases associated with the
dbApi(). - See Also:
-
database
- Parameters:
name- the database name- Returns:
- the database with the given name, associated with the
dbApi(). - See Also:
-
dbApi
-