Top Description Fields Constructors Methods
org.hibernate.query.criteria.internal.predicate

public final Enum TruthValue

extends Enum<TruthValue>
Class Inheritance

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 completeness.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final TruthValue
public static final TruthValue
public static final TruthValue

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TruthValue
public static TruthValue[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FALSEback to summary
public static final TruthValue FALSE
TRUEback to summary
public static final TruthValue TRUE
UNKNOWNback to summary
public static final TruthValue UNKNOWN

Constructor Detail

TruthValueback to summary
private TruthValue()

Method Detail

valueOfback to summary
public static TruthValue valueOf(String name)
valuesback to summary
public static TruthValue[] values()