public class BetweenPredicate<Y> extends AbstractSimplePredicate implements Serializable
Predicate
.Predicate.BooleanOperator
ParameterContainer.Helper
Constructor and Description |
---|
BetweenPredicate(CriteriaBuilderImpl criteriaBuilder,
Expression<? extends Y> expression,
Expression<? extends Y> lowerBound,
Expression<? extends Y> upperBound) |
BetweenPredicate(CriteriaBuilderImpl criteriaBuilder,
Expression<? extends Y> expression,
Y lowerBound,
Y upperBound) |
Modifier and Type | Method and Description |
---|---|
Expression<? extends Y> |
getExpression() |
Expression<? extends Y> |
getLowerBound() |
Expression<? extends Y> |
getUpperBound() |
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. |
getExpressions, getOperator, isJunction, render, renderProjection
getCompoundSelectionItems, isCompoundSelection, isNegated, not
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getValueHandlers
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
getAlias, getJavaType
getValueHandlers
getValueHandler
public BetweenPredicate(CriteriaBuilderImpl criteriaBuilder, Expression<? extends Y> expression, Y lowerBound, Y upperBound)
public BetweenPredicate(CriteriaBuilderImpl criteriaBuilder, Expression<? extends Y> expression, Expression<? extends Y> lowerBound, Expression<? extends Y> upperBound)
public Expression<? extends Y> getExpression()
public Expression<? extends Y> getLowerBound()
public Expression<? extends Y> getUpperBound()
public void registerParameters(ParameterRegistry registry)
ParameterContainer
registerParameters
in interface ParameterContainer
registry
- The parameter registry with which to register.public 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 renderingCopyright © 2017 JBoss by Red Hat. All rights reserved.