Class QueryModel.PropertyCriterion

java.lang.Object
io.micronaut.data.model.query.QueryModel.PropertyNameCriterion
io.micronaut.data.model.query.QueryModel.PropertyCriterion
All Implemented Interfaces:
QueryModel.Criterion
Direct Known Subclasses:
QueryModel.ArrayContains, QueryModel.Between, QueryModel.Contains, QueryModel.EndsWith, QueryModel.Equals, QueryModel.GreaterThan, QueryModel.GreaterThanEquals, QueryModel.IdEquals, QueryModel.In, QueryModel.LessThan, QueryModel.LessThanEquals, QueryModel.Like, QueryModel.NotEquals, QueryModel.NotIn, QueryModel.Regex, QueryModel.SizeEquals, QueryModel.SizeGreaterThan, QueryModel.SizeGreaterThanEquals, QueryModel.SizeLessThan, QueryModel.SizeLessThanEquals, QueryModel.SizeNotEquals, QueryModel.StartsWith, QueryModel.SubqueryCriterion, QueryModel.VersionEquals
Enclosing interface:
QueryModel

public static class QueryModel.PropertyCriterion extends QueryModel.PropertyNameCriterion
Criterion that applies to a property and value.
  • Field Details

    • value

      protected Object value
  • Constructor Details

    • PropertyCriterion

      public PropertyCriterion(String name, Object value)
      Default constructor.
      Parameters:
      name - The property name
      value - The criterion value
  • Method Details

    • getValue

      public Object getValue()
      Returns:
      The value
    • setValue

      public void setValue(Object v)
      Sets the value.
      Parameters:
      v - The value to set
    • isIgnoreCase

      public boolean isIgnoreCase()
      Returns:
      Whether to ignore case,
    • ignoreCase

      public QueryModel.PropertyCriterion ignoreCase(boolean ignoreCase)
      Sets whether to ignore case.
      Parameters:
      ignoreCase - True if case should be ignored
      Returns:
      This criterion