Package org.openbravo.dal.dbpool
Class ReportDataPoolConfiguration
- java.lang.Object
-
- org.openbravo.dal.dbpool.ReportDataPoolConfiguration
-
- All Implemented Interfaces:
DataPoolConfiguration
public class ReportDataPoolConfiguration extends Object implements DataPoolConfiguration
Retrieves the database pool configurations for the application reports, i.e., the information about which database pool must be used to retrieve the information for each report.
-
-
Constructor Summary
Constructors Constructor Description ReportDataPoolConfiguration()
-
Method Summary
All Methods Instance Methods Concrete 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
public Map<String,String> getDataPoolSelection()
Description copied from interface:DataPoolConfiguration
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.- Specified by:
getDataPoolSelection
in interfaceDataPoolConfiguration
- 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
public String getPreferenceName()
Description copied from interface:DataPoolConfiguration
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- Specified by:
getPreferenceName
in interfaceDataPoolConfiguration
- Returns:
- The preference name
-
getDataType
public String getDataType()
Description copied from interface:DataPoolConfiguration
Provides the name of the type of data for this configuration- Specified by:
getDataType
in interfaceDataPoolConfiguration
- Returns:
- The name of the data type
-
-