org.hibernate.criterion

Class PropertyExpression

Implemented Interfaces:
Criterion, Serializable

public class PropertyExpression
extends java.lang.Object
implements Criterion

superclass for comparisons between two properties (with SQL binary operators)
Author:
Gavin King

Constructor Summary

PropertyExpression(String propertyName, String otherPropertyName, String op)

Method Summary

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

Constructor Details

PropertyExpression

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

Method Details

getOp

public String getOp()

getTypedValues

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

toSqlString

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

toString

public String toString()