All Implemented Interfaces:
QueryCriteria

public class ValueLike extends StringQueryCriteria
A QueryCriteria testing that a string field matches a given regex (using SQL syntax)
  • Constructor Details

    • ValueLike

      public ValueLike(String fieldName, String regex)
  • Method Details

    • getTestPredicate

      public jakarta.persistence.criteria.Predicate getTestPredicate(jakarta.persistence.criteria.Root<?> queryRoot, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
      Description copied from interface: QueryCriteria
      Creates a predicate using the given query root and criteria builder.
      Parameters:
      queryRoot - The query root.
      criteriaBuilder - The criteria builder.
      Returns:
      The predicate representing the criteria to query the database.