use of org.hibernate.sql.ast.tree.predicate.LikePredicate in project hibernate-orm by hibernate.
the class ExpressionReplacementWalker method visitLikePredicate.
@Override
public void visitLikePredicate(LikePredicate likePredicate) {
final Expression matchExpression = replaceExpression(likePredicate.getMatchExpression());
final Expression patternExpression = replaceExpression(likePredicate.getPattern());
final Expression escapeExpression = likePredicate.getEscapeCharacter() == null ? null : replaceExpression(likePredicate.getEscapeCharacter());
if (matchExpression != likePredicate.getMatchExpression() || patternExpression != likePredicate.getPattern() || escapeExpression != likePredicate.getEscapeCharacter()) {
returnedNode = new LikePredicate(matchExpression, patternExpression, escapeExpression, likePredicate.isNegated(), likePredicate.isCaseSensitive(), likePredicate.getExpressionType());
} else {
returnedNode = likePredicate;
}
}
Aggregations