public class NegatedPredicateWrapper extends ExpressionImpl<java.lang.Boolean> implements PredicateImplementor, java.io.Serializable
javax.persistence.criteria.Predicate.BooleanOperator
ParameterContainer.Helper
Constructor and Description |
---|
NegatedPredicateWrapper(PredicateImplementor predicate) |
Modifier and Type | Method and Description |
---|---|
java.util.List<javax.persistence.criteria.Expression<java.lang.Boolean>> |
getExpressions() |
javax.persistence.criteria.Predicate.BooleanOperator |
getOperator() |
boolean |
isJunction()
Is this a conjunction or disjunction?
|
boolean |
isNegated() |
javax.persistence.criteria.Predicate |
not() |
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
java.lang.String |
render(boolean isNegated,
RenderingContext renderingContext)
Form of
Renderable.render(org.hibernate.jpa.criteria.compile.RenderingContext) used when the predicate is wrapped in a negated wrapper. |
java.lang.String |
render(RenderingContext renderingContext) |
java.lang.String |
renderProjection(RenderingContext renderingContext) |
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
criteriaBuilder
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getValueHandlers
getValueHandler
public NegatedPredicateWrapper(PredicateImplementor predicate)
public javax.persistence.criteria.Predicate.BooleanOperator getOperator()
getOperator
in interface javax.persistence.criteria.Predicate
public boolean isJunction()
PredicateImplementor
isJunction
in interface PredicateImplementor
true
if this predicate is a junction (AND/OR); false
otherwisepublic boolean isNegated()
isNegated
in interface javax.persistence.criteria.Predicate
public java.util.List<javax.persistence.criteria.Expression<java.lang.Boolean>> getExpressions()
getExpressions
in interface javax.persistence.criteria.Predicate
public javax.persistence.criteria.Predicate not()
not
in interface javax.persistence.criteria.Predicate
public void registerParameters(ParameterRegistry registry)
ParameterContainer
registerParameters
in interface ParameterContainer
registry
- The parameter registry with which to register.public java.lang.String render(boolean isNegated, RenderingContext renderingContext)
PredicateImplementor
Renderable.render(org.hibernate.jpa.criteria.compile.RenderingContext)
used when the predicate is wrapped in a negated wrapper. Allows passing
down the negation flag.
Note that this form is no-op in compound (junction) predicates. The reason being that compound predicates
are more complex and the negation is applied during its creation.render
in interface PredicateImplementor
isNegated
- Should the predicate be negated.renderingContext
- The context for renderingpublic java.lang.String render(RenderingContext renderingContext)
render
in interface Renderable
public java.lang.String renderProjection(RenderingContext renderingContext)
renderProjection
in interface Renderable
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.