Enum ModelCriteriaBuilder.Operator

    • Enum Constant Detail

      • LIKE

        public static final ModelCriteriaBuilder.Operator LIKE
        Similar to SQL case-sensitive LIKE Whole string is matched. Percent sign means "any characters", question mark means "any single character":
        • field LIKE "abc" means value of the field field must match exactly abc
        • field LIKE "abc%" means value of the field field must start with abc
        • field LIKE "%abc" means value of the field field must end with abc
        • field LIKE "%abc%" means value of the field field must contain abc
      • ILIKE

        public static final ModelCriteriaBuilder.Operator ILIKE
        Similar to SQL case-insensitive LIKE. Whole string is matched. Percent sign means "any characters", question mark means "any single character":
        • field ILIKE "abc" means value of the field field must match exactly abc, ABC, aBc etc.
        • field ILIKE "abc%" means value of the field field must start with abc, ABC, aBc etc.
        • field ILIKE "%abc" means value of the field field must end with abc, ABC, aBc etc.
        • field ILIKE "%abc%" means value of the field field must contain abc, ABC, aBc etc.
    • Method Detail

      • values

        public static ModelCriteriaBuilder.Operator[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ModelCriteriaBuilder.Operator c : ModelCriteriaBuilder.Operator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ModelCriteriaBuilder.Operator valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null