public class NullnessPredicate extends AbstractSimplePredicate implements UnaryOperatorExpression<Boolean>, Serializable
Predicate for checking the
nullness state of an expression, aka an IS [NOT] NULL predicate.
The NOT NULL form can be built by calling the constructor and then
calling AbstractPredicateImpl.not().javax.persistence.criteria.Predicate.BooleanOperatorParameterContainer.Helper| Constructor and Description |
|---|
NullnessPredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<?> operand)
Constructs the affirmitive form of nullness checking (IS NULL).
|
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Expression<?> |
getOperand()
Get the operand.
|
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
String |
render(CriteriaQueryCompiler.RenderingContext renderingContext) |
String |
renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext) |
getExpressions, getOperatorgetCompoundSelectionItems, isCompoundSelection, isNegated, notas, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNullalias, getValueHandlersforceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAliascriteriaBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectiongetValueHandlersgetValueHandlerpublic NullnessPredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<?> operand)
AbstractPredicateImpl.not() on the
constructed instance.criteriaBuilder - The query builder from whcih this originates.operand - The expression to check.public javax.persistence.criteria.Expression<?> getOperand()
UnaryOperatorExpressiongetOperand in interface UnaryOperatorExpression<Boolean>public void registerParameters(ParameterRegistry registry)
ParameterContainerregisterParameters in interface ParameterContainerregistry - The parameter registry with which to register.public String render(CriteriaQueryCompiler.RenderingContext renderingContext)
render in interface Renderablepublic String renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext)
renderProjection in interface RenderableCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved