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 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 interface LabelValuesProvider
      Parameters:
      dataSource - The DataSource used to fill the parent Report. Use the dataSource to dynamically materialize a list of LabelValue beans from a JDBC query. Any opened JDBC connection must be closed by the implementing method.
      request - The HttpServletRequest 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 parent Column.
      Throws:
      UnsupportedOperationException - because this method should should never be invoked.