public class NegatedPredicateWrapper extends ExpressionImpl<Boolean> implements PredicateImplementor, Serializable
Predicate.BooleanOperatorParameterContainer.Helper| Constructor and Description |
|---|
NegatedPredicateWrapper(PredicateImplementor predicate) |
| Modifier and Type | Method and Description |
|---|---|
List<Expression<Boolean>> |
getExpressions()
Return the top-level conjuncts or disjuncts of the predicate.
|
Predicate.BooleanOperator |
getOperator()
Return the boolean operator for the predicate.
|
boolean |
isJunction()
Is this a conjunction or disjunction?
|
boolean |
isNegated()
Whether the predicate has been created from another
predicate by applying the
Predicate.not() method
or the CriteriaBuilder.not() method. |
Predicate |
not()
Create a negation of the predicate.
|
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
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. |
String |
render(RenderingContext renderingContext) |
String |
renderProjection(RenderingContext renderingContext) |
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, getValueHandlers, isCompoundSelectionforceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAliascriteriaBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcriteriaBuilderas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectiongetAlias, getJavaTypegetValueHandlersgetValueHandlerpublic NegatedPredicateWrapper(PredicateImplementor predicate)
public Predicate.BooleanOperator getOperator()
PredicateAND.getOperator in interface Predicatepublic boolean isJunction()
PredicateImplementorisJunction in interface PredicateImplementortrue if this predicate is a junction (AND/OR); false otherwisepublic boolean isNegated()
PredicatePredicate.not() method
or the CriteriaBuilder.not() method.public List<Expression<Boolean>> getExpressions()
PredicategetExpressions in interface Predicatepublic Predicate not()
Predicatepublic void registerParameters(ParameterRegistry registry)
ParameterContainerregisterParameters in interface ParameterContainerregistry - The parameter registry with which to register.public String render(boolean isNegated, RenderingContext renderingContext)
PredicateImplementorRenderable.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 PredicateImplementorisNegated - Should the predicate be negated.renderingContext - The context for renderingpublic String render(RenderingContext renderingContext)
render in interface Renderablepublic String renderProjection(RenderingContext renderingContext)
renderProjection in interface RenderableCopyright © 2017 JBoss by Red Hat. All rights reserved.