Package org.openbravo.dal.service
Interface DataPoolConfiguration
-
- All Known Implementing Classes:
ReportDataPoolConfiguration
public interface DataPoolConfiguration
Used by theDataPoolChecker
to retrieve the database pool configuration for a specific type of data
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>
getDataPoolSelection()
Provides a map that contains the data pool to be used for each entry of this configuration.String
getDataType()
Provides the name of the type of data for this configurationString
getPreferenceName()
Provides the name of the preference that specifies the default database pool to be used by the elements of this configuration when there is no an specific configuration form them
-
-
-
Method Detail
-
getDataPoolSelection
Map<String,String> getDataPoolSelection()
Provides a map that contains the data pool to be used for each entry of this configuration. The entries (keys of the map) should be built according to the format expected by the to ensure that it is able to find the configuration correctly.- Returns:
- configured values defined on a map with the IDs of the different entries as keys and the database pool name to be used by each key as values.
- See Also:
DataPoolChecker.shouldUseDefaultPool()
-
getPreferenceName
String getPreferenceName()
Provides the name of the preference that specifies the default database pool to be used by the elements of this configuration when there is no an specific configuration form them- Returns:
- The preference name
-
getDataType
String getDataType()
Provides the name of the type of data for this configuration- Returns:
- The name of the data type
-
-