Enum Class FilterableType

java.lang.Object
java.lang.Enum<FilterableType>
tech.ailef.dbadmin.external.annotations.FilterableType
All Implemented Interfaces:
Serializable, Comparable<FilterableType>, Constable

public enum FilterableType extends Enum<FilterableType>
Type of filters that can be used in the faceted search.
  • Enum Constant Details

    • DEFAULT

      public static final FilterableType DEFAULT
      The default filter provides a list of standard operators customized to the field type (e.g. greater than/less than/equals for numbers, after/before/equals for dates, contains/equals for strings, etc...), with, if applicable, an autocomplete form if the field references a foreign key.
    • CATEGORICAL

      public static final FilterableType CATEGORICAL
      The categorical filter provides the full list of possible values for the field, rendered as a list of clickable items (that will filter for equality). This provides a better UX if the field can take a limited number of values and it's more convenient to have them all on screen rather than typing them.
  • Method Details

    • values

      public static FilterableType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FilterableType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null