public class

PropertyExpression

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

Class Overview

superclass for comparisons between two properties (with SQL binary operators)

Summary

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

Protected Constructors

protected PropertyExpression (String propertyName, String otherPropertyName, String op)

Public Methods

public String getOp ()

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 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 ()