Class DatabaseModule
java.lang.Object
org.eclipse.dirigible.commons.api.module.AbstractDirigibleModule
org.eclipse.dirigible.database.api.DatabaseModule
- All Implemented Interfaces:
IDirigibleModule
public class DatabaseModule extends AbstractDirigibleModule
Module for managing Database instantiation and binding.
-
Field Summary
Fields inherited from interface org.eclipse.dirigible.commons.api.module.IDirigibleModule
LOW_PRIORITY, PRIORITY_CONFIGURATION, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_ENGINE, PRIORITY_REPOSITORY -
Constructor Summary
Constructors Constructor Description DatabaseModule() -
Method Summary
Modifier and Type Method Description voidconfigure()Configure.static List<String>getDatabaseTypes()Gets the database types.static DataSourcegetDataSource(String type, String datasource)Gets the data source.static Set<String>getDataSources(String type)Gets the data sources.StringgetName()Gets the name.intgetPriority()Gets the priority.
-
Constructor Details
-
DatabaseModule
public DatabaseModule()
-
-
Method Details
-
configure
public void configure()Configure.- Specified by:
configurein interfaceIDirigibleModule- Specified by:
configurein classAbstractDirigibleModule
-
getName
Gets the name.- Specified by:
getNamein interfaceIDirigibleModule- Specified by:
getNamein classAbstractDirigibleModule- Returns:
- the name
-
getDataSource
Gets the data source.- Parameters:
type- the typedatasource- the datasource- Returns:
- the data source
-
getDatabaseTypes
Gets the database types.- Returns:
- the database types
-
getDataSources
Gets the data sources.- Parameters:
type- the type- Returns:
- the data sources
-
getPriority
public int getPriority()Gets the priority.- Specified by:
getPriorityin interfaceIDirigibleModule- Overrides:
getPriorityin classAbstractDirigibleModule- Returns:
- the priority
-