Annotation Interface SearchParameter


@Target(FIELD) @Retention(RUNTIME) public @interface SearchParameter
Enables filtration by the annotated field of DataResponseDTO. Configures the rules and parameters for filtering by field.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Used only for fields of MultivalueField type and is necessary to correctly type string representation of filtering parameter.
    A path to the field on a JPA entity on which filtering will be performed.
    Get a provider for defining of classify data parameter in sorting or searching cases.
    boolean
    Whether to filter by datetime as-is.
    boolean
    Whether to block the mechanism at the Cxbox level or not.
  • Element Details

    • name

      String name
      A path to the field on a JPA entity on which filtering will be performed. For collections annotated with ElementCollection provide a path to the collection field itself. For collections annotated with OneToMany provide a path to the association entity field.
      Returns:
      Dot notation path e.g. entityField.associationField.
      Default:
      ""
    • strict

      boolean strict
      Whether to filter by datetime as-is. If not strict, datetime filtering will be done by the value at the beginning or end of the day for the LESS THAN and GREATER THAN operators, respectively. If strict, filtering will be done by the actual filter value.
      Returns:
      Whether to apply strict filtering or not.
      Default:
      false
    • suppressProcess

      boolean suppressProcess
      Whether to block the mechanism at the Cxbox level or not. If blocked, filtering should be implemented at the level of services that manage the entity. By default, the Cxbox filter is not blocked.
      Returns:
      Whether to block the mechanism at the cxbox level or not
      Default:
      false
    • multiFieldKey

      Class<? extends ClassifyDataProvider> multiFieldKey
      Used only for fields of MultivalueField type and is necessary to correctly type string representation of filtering parameter.
      Returns:
      ClassifyDataProvider which could be applied to the key(id) of MultivalueFieldSingleValue. E.g. the key is stringified date, then we should use DateValueProvider
      Default:
      org.cxbox.core.util.filter.provider.impl.LongValueProvider.class
    • provider

      Class<? extends ClassifyDataProvider> provider
      Get a provider for defining of classify data parameter in sorting or searching cases. Necessary to correctly type string representation of filtering parameter.
      Returns:
      ClassifyDataProvider
      Default:
      org.cxbox.core.util.filter.provider.impl.StringValueProvider.class