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, placeholderLabelValuesProvider
to set as the LabelValuesProvider for aColumnConfiguration
to indicate the returnedLabelValue
List labels and values should be the distinct column values as queried from the database.Schema analog: <label_value_query_default>
-
-
Constructor Summary
Constructors Constructor Description PlaceholderDefaultQueryLabelValuesProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LabelValue>
createLabelValues(javax.sql.DataSource dataSource, javax.servlet.http.HttpServletRequest request)
Throws an UnsupportedOperationException.
-
-
-
Method Detail
-
createLabelValues
public List<LabelValue> createLabelValues(javax.sql.DataSource dataSource, javax.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.
-
-