org.hibernate.criterion

Class NotExpression

Implemented Interfaces:
Criterion, Serializable

public class NotExpression
extends java.lang.Object
implements Criterion

Negates another criterion
Author:
Gavin King

Constructor Summary

NotExpression(Criterion criterion)

Method Summary

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

Constructor Details

NotExpression

protected NotExpression(Criterion criterion)

Method Details

getTypedValues

public TypedValue[] getTypedValues(Criteria criteria,
                                   CriteriaQuery criteriaQuery)
            throws HibernateException
Return typed values for all parameters in the rendered SQL fragment
Specified by:
getTypedValues in interface Criterion
Parameters:
criteria - TODO
criteriaQuery -
Returns:
TypedValue[]

toSqlString

public String toSqlString(Criteria criteria,
                          CriteriaQuery criteriaQuery)
            throws HibernateException
Render the SQL fragment
Specified by:
toSqlString in interface Criterion
Parameters:
criteriaQuery -
Returns:
String

toString

public String toString()