org.hibernate.criterion

Class SimpleExpression

Implemented Interfaces:
Criterion, Serializable

public class SimpleExpression
extends java.lang.Object
implements Criterion

superclass for "simple" comparisons (with SQL binary operators)
Author:
Gavin King

Constructor Summary

SimpleExpression(String propertyName, Object value, String op)
SimpleExpression(String propertyName, Object value, String op, boolean ignoreCase)

Method Summary

protected String
getOp()
TypedValue[]
getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
SimpleExpression
ignoreCase()
String
toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
String
toString()

Constructor Details

SimpleExpression

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

SimpleExpression

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

Method Details

getOp

protected final String getOp()

getTypedValues

public TypedValue[] getTypedValues(Criteria criteria,
                                   CriteriaQuery criteriaQuery)
            throws HibernateException
Specified by:
getTypedValues in interface Criterion

ignoreCase

public SimpleExpression ignoreCase()

toSqlString

public String toSqlString(Criteria criteria,
                          CriteriaQuery criteriaQuery)
            throws HibernateException
Specified by:
toSqlString in interface Criterion

toString

public String toString()