Top Description Fields Constructors Methods
org.hibernate.criterion

public Class LikeExpression

extends Object
implements Criterion
Class Inheritance
All Implemented Interfaces
org.hibernate.criterion.Criterion, java.io.Serializable
Imports
java.util.Locale, org.hibernate.Criteria, .HibernateException, org.hibernate.dialect.Dialect, org.hibernate.engine.spi.TypedValue

A criterion representing a "like" expression
Authors
Scott Marlow, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Character
private final boolean
private final String
private final Object

Constructor Summary

AccessConstructor and Description
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)

Method Summary

Modifier and TypeMethod and Description
public TypedValue[]
getTypedValues(Criteria
The local criteria
criteria
,
CriteriaQuery
The overall criteria query
criteriaQuery
)

Implements org.hibernate.criterion.Criterion.getTypedValues.

Return typed values for all parameters in the rendered SQL fragment
public String
toSqlString(Criteria
The local criteria
criteria
,
CriteriaQuery
The overall criteria query
criteriaQuery
)

Implements org.hibernate.criterion.Criterion.toSqlString.

Render the SQL fragment
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

escapeCharback to summary
private final Character escapeChar
ignoreCaseback to summary
private final boolean ignoreCase
propertyNameback to summary
private final String propertyName
valueback to summary
private final Object value

Constructor Detail

LikeExpressionback to summary
protected LikeExpression(String propertyName, String value, Character escapeChar, boolean ignoreCase)
LikeExpressionback to summary
protected LikeExpression(String propertyName, String value)
LikeExpressionback to summary
protected LikeExpression(String propertyName, String value, MatchMode matchMode)
Annotations
@SuppressWarnings:UnusedDeclaration
LikeExpressionback to summary
protected LikeExpression(String propertyName, String value, MatchMode matchMode, Character escapeChar, boolean ignoreCase)

Method Detail

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

Implements org.hibernate.criterion.Criterion.getTypedValues.

Doc from org.hibernate.criterion.Criterion.getTypedValues.

Return typed values for all parameters in the rendered SQL fragment

Parameters
criteria:Criteria

The local criteria

criteriaQuery:CriteriaQuery

The overall criteria query

Returns:TypedValue[]

The types values (for binding)

Annotations
@Override
toSqlStringback to summary
public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)

Implements org.hibernate.criterion.Criterion.toSqlString.

Doc from org.hibernate.criterion.Criterion.toSqlString.

Render the SQL fragment

Parameters
criteria:Criteria

The local criteria

criteriaQuery:CriteriaQuery

The overall criteria query

Returns:String

The generated SQL fragment

Annotations
@Override