public class

LikeExpression

extends Object
implements Criterion
java.lang.Object
   ↳ org.hibernate.criterion.LikeExpression

Class Overview

A criterion representing a "like" expression

Summary

Protected Constructors
LikeExpression(String propertyName, String value, Character escapeChar, boolean ignoreCase)
LikeExpression(String propertyName, String value)
LikeExpression(String propertyName, String value, MatchMode matchMode)
LikeExpression(String propertyName, String value, MatchMode matchMode, Character escapeChar, boolean ignoreCase)
Public Methods
TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
Render the SQL fragment
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.criterion.Criterion

Protected Constructors

protected LikeExpression (String propertyName, String value, Character escapeChar, boolean ignoreCase)

protected LikeExpression (String propertyName, String value)

protected LikeExpression (String propertyName, String value, MatchMode matchMode)

protected LikeExpression (String propertyName, String value, MatchMode matchMode, Character escapeChar, boolean ignoreCase)

Public Methods

public TypedValue[] getTypedValues (Criteria criteria, CriteriaQuery criteriaQuery)

Return typed values for all parameters in the rendered SQL fragment

Parameters
criteria The local criteria
criteriaQuery The overal criteria query
Returns
  • The types values (for binding)

public String toSqlString (Criteria criteria, CriteriaQuery criteriaQuery)

Render the SQL fragment

Parameters
criteria The local criteria
criteriaQuery The overal criteria query
Returns
  • The generated SQL fragment