Package com.pullreports.model.config
Class PlaceholderDefaultQueryLabelValuesProvider
Object
com.pullreports.model.config.PlaceholderDefaultQueryLabelValuesProvider
- All Implemented Interfaces:
LabelValuesProvider
public class PlaceholderDefaultQueryLabelValuesProvider
extends Object
implements LabelValuesProvider
A PlaceholderDefaultQueryLabelValuesProvider is a no operation, placeholder
LabelValuesProvider
to set as the LabelValuesProvider
for a ColumnConfiguration
to indicate the returned LabelValue
List
labels and values should be the distinct column values as queried from the database.
Schema analog: <label_value_query_default>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLabelValues
(DataSource dataSource, jakarta.servlet.http.HttpServletRequest request) Throws an UnsupportedOperationException.
-
Constructor Details
-
PlaceholderDefaultQueryLabelValuesProvider
public PlaceholderDefaultQueryLabelValuesProvider()
-
-
Method Details
-
createLabelValues
public List<LabelValue> createLabelValues(DataSource dataSource, jakarta.servlet.http.HttpServletRequest request) Throws an UnsupportedOperationException.- Specified by:
createLabelValues
in interfaceLabelValuesProvider
- Parameters:
dataSource
- TheDataSource
used to fill the parentReport
. Use the dataSource to dynamically materialize a list ofLabelValue
beans from a JDBC query. Any opened JDBC connection must be closed by the implementing method.request
- TheHttpServletRequest
sent to the GET Label Value List API. to retrieve the LabelValue list. Use the request parameter to contextualize the returned list to the current user.- Returns:
- A List of
LabelValue
beans representing the values of the parentColumn
. - Throws:
UnsupportedOperationException
- because this method should should never be invoked.
-