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

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