public class

SimpleExpression

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

Class Overview

superclass for "simple" comparisons (with SQL binary operators)

Summary

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

Protected Constructors

protected SimpleExpression (String propertyName, Object value, String op)

protected SimpleExpression (String propertyName, Object value, String op, 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 SimpleExpression ignoreCase ()

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

public String toString ()

Protected Methods

protected final String getOp ()