public class SimpleExpression extends Object implements Criterion
superclass for "simple" comparisons (with SQL binary operators)
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleExpression(String propertyName,
Object value,
String op) |
protected |
SimpleExpression(String propertyName,
Object value,
String op,
boolean ignoreCase) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getOp() |
String |
getPropertyName() |
TypedValue[] |
getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
Object |
getValue() |
SimpleExpression |
ignoreCase()
Make case insensitive.
|
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String |
toString() |
protected final String getOp()
public String getPropertyName()
public Object getValue()
public SimpleExpression ignoreCase()
Make case insensitive. No effect for non-String values
this, for method chainingpublic String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
CriterionRender the SQL fragment
toSqlString in interface Criterioncriteria - The local criteriacriteriaQuery - The overal criteria queryHibernateException - Problem during rendering.public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
CriterionReturn typed values for all parameters in the rendered SQL fragment
getTypedValues in interface Criterioncriteria - The local criteriacriteriaQuery - The overal criteria queryHibernateException - Problem determining types.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.