like(x, pattern, escapeChar) - JPA CriteriaBuilder's method

Method
javax.persistence.criteria.CriteriaBuilder
Predicate like(
  Expression<String> x,
  String pattern,
  char escapeChar
)

Create a predicate for testing whether the expression satisfies the given pattern.
Parameters:
x - string expression
pattern - string
escapeChar - escape character
Returns:
like predicate
Since:
JPA 2.0