org.hibernate.query.criteria.internal.predicate.TruthValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.query.criteria.internal.predicate;
/**
* Models what ANSI-SQL terms a truth value. Specifically, ANSI-SQL defines TRUE, FALSE and
* UNKNOWN as truth values. These truth values are used to explicitly check the result of a
* boolean expression (the syntax is like a > b IS TRUE. IS TRUE is the assumed default.
*
* JPA defines support for only IS TRUE and IS FALSE, not IS UNKNOWN (a > NULL
* is an example where the result would be UNKNOWN). All 3 are provided here for completness.
*
* @author Steve Ebersole
*/
public enum TruthValue {
TRUE,
FALSE,
UNKNOWN
}