public class InPredicate<T> extends AbstractSimplePredicate implements javax.persistence.criteria.CriteriaBuilder.In<T>, java.io.Serializable
javax.persistence.criteria.Predicate.BooleanOperatorParameterContainer.Helper| Constructor and Description |
|---|
InPredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<? extends T> expression)
Constructs an IN predicate against a given expression with an empty list of values.
|
InPredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<? extends T> expression,
java.util.Collection<T> values)
Constructs an IN predicate against a given expression with the given literal value list.
|
InPredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<? extends T> expression,
javax.persistence.criteria.Expression<? extends T>... values)
Constructs an IN predicate against a given expression with the given list of expression values.
|
InPredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<? extends T> expression,
java.util.List<javax.persistence.criteria.Expression<? extends T>> values)
Constructs an IN predicate against a given expression with the given list of expression values.
|
InPredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<? extends T> expression,
T... values)
Constructs an IN predicate against a given expression with the given given literal value list.
|
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Expression<T> |
getExpression() |
javax.persistence.criteria.Expression<? extends T> |
getExpressionInternal() |
java.util.List<javax.persistence.criteria.Expression<? extends T>> |
getValues() |
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.query.criteria.internal.compile.RenderingContext) used when the predicate is wrapped in a negated wrapper. |
InPredicate<T> |
value(javax.persistence.criteria.Expression<? extends T> value) |
InPredicate<T> |
value(T value) |
getExpressions, getOperator, isJunction, rendergetCompoundSelectionItems, 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, waitgetExpressions, getOperator, isNegated, notas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectioncriteriaBuilderrenderGroupBy, renderProjectiongetValueHandlersgetValueHandlerpublic InPredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<? extends T> expression)
criteriaBuilder - The query builder from which this originates.expression - The expression.public InPredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<? extends T> expression, javax.persistence.criteria.Expression<? extends T>... values)
criteriaBuilder - The query builder from which this originates.expression - The expression.values - The value list.public InPredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<? extends T> expression, java.util.List<javax.persistence.criteria.Expression<? extends T>> values)
criteriaBuilder - The query builder from which this originates.expression - The expression.values - The value list.public InPredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<? extends T> expression, T... values)
criteriaBuilder - The query builder from which this originates.expression - The expression.values - The value list.public InPredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<? extends T> expression, java.util.Collection<T> values)
criteriaBuilder - The query builder from which this originates.expression - The expression.values - The value list.public javax.persistence.criteria.Expression<T> getExpression()
getExpression in interface javax.persistence.criteria.CriteriaBuilder.In<T>public javax.persistence.criteria.Expression<? extends T> getExpressionInternal()
public java.util.List<javax.persistence.criteria.Expression<? extends T>> getValues()
public InPredicate<T> value(T value)
value in interface javax.persistence.criteria.CriteriaBuilder.In<T>public InPredicate<T> value(javax.persistence.criteria.Expression<? extends T> value)
value in interface javax.persistence.criteria.CriteriaBuilder.In<T>public void registerParameters(ParameterRegistry registry)
ParameterContainerregisterParameters in interface ParameterContainerregistry - The parameter registry with which to register.public java.lang.String render(boolean isNegated,
RenderingContext renderingContext)
PredicateImplementorRenderable.render(org.hibernate.query.criteria.internal.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 renderingCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.