Enum Class PredefinedTransformation

java.lang.Object
java.lang.Enum<PredefinedTransformation>
io.jmix.reports.entity.PredefinedTransformation
All Implemented Interfaces:
EnumClass<Integer>, Serializable, Comparable<PredefinedTransformation>, Constable

public enum PredefinedTransformation extends Enum<PredefinedTransformation> implements EnumClass<Integer>
Convenient built-in transformations for input parameter values entered by user. Transformed value is passed to the data set loading stage, instead of original value.
  • Enum Constant Details

    • STARTS_WITH

      public static final PredefinedTransformation STARTS_WITH
      Convert text value into a mask working as "starts with" condition. Meant to be used in "like" expression in SQL or JPQL query.
    • CONTAINS

      public static final PredefinedTransformation CONTAINS
      Convert text value into a mask working as "contains" condition. Meant to be used in "like" expression in SQL or JPQL query.
    • ENDS_WITH

      public static final PredefinedTransformation ENDS_WITH
      Convert text value into a mask working as "ends with" condition. Meant to be used in "like" expression in SQL or JPQL query.
  • Method Details

    • values

      public static PredefinedTransformation[] 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 PredefinedTransformation 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
    • getId

      public Integer getId()
      Specified by:
      getId in interface EnumClass<Integer>
    • fromId

      public static PredefinedTransformation fromId(Integer id)