Package org.hibernate.criterion
Class PropertyExpression
java.lang.Object
org.hibernate.criterion.PropertyExpression
- All Implemented Interfaces:
Serializable,Criterion
superclass for comparisons between two properties (with SQL binary operators)
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPropertyExpression(String propertyName, String otherPropertyName, String op) -
Method Summary
Modifier and TypeMethodDescriptiongetOp()getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) Return typed values for all parameters in the rendered SQL fragmenttoSqlString(Criteria criteria, CriteriaQuery criteriaQuery) Render the SQL fragmenttoString()
-
Constructor Details
-
PropertyExpression
-
-
Method Details
-
toSqlString
Description copied from interface:CriterionRender the SQL fragment- Specified by:
toSqlStringin interfaceCriterion- Parameters:
criteria- The local criteriacriteriaQuery- The overal criteria query- Returns:
- The generated SQL fragment
- Throws:
HibernateException- Problem during rendering.
-
getTypedValues
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException Description copied from interface:CriterionReturn typed values for all parameters in the rendered SQL fragment- Specified by:
getTypedValuesin interfaceCriterion- Parameters:
criteria- The local criteriacriteriaQuery- The overal criteria query- Returns:
- The types values (for binding)
- Throws:
HibernateException- Problem determining types.
-
toString
-
getOp
-