FileDocCategorySizeDatePackage
NotExpression.javaAPI DocHibernate 3.2.51077Sat Feb 12 00:19:50 GMT 2005org.hibernate.criterion

NotExpression

public class NotExpression extends Object implements Criterion
Negates another criterion
author
Gavin King

Fields Summary
private Criterion
criterion
Constructors Summary
protected NotExpression(Criterion criterion)

		this.criterion = criterion;
	
Methods Summary
public org.hibernate.engine.TypedValue[]getTypedValues(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)

		return criterion.getTypedValues(criteria, criteriaQuery);
	
public java.lang.StringtoSqlString(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)

		if ( criteriaQuery.getFactory().getDialect() instanceof MySQLDialect ) {
			return "not (" + criterion.toSqlString(criteria, criteriaQuery) + ')";
		}
		else {
			return "not " + criterion.toSqlString(criteria, criteriaQuery);
		}
	
public java.lang.StringtoString()

		return "not " + criterion.toString();