Class SqmInListPredicate<T>
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement<T>
org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection<T>
org.hibernate.query.sqm.tree.expression.AbstractSqmExpression<Boolean>
org.hibernate.query.sqm.tree.predicate.AbstractSqmPredicate
org.hibernate.query.sqm.tree.predicate.AbstractNegatableSqmPredicate
org.hibernate.query.sqm.tree.predicate.SqmInListPredicate<T>
- All Implemented Interfaces:
CriteriaBuilder.In<T>
,Expression<Boolean>
,Predicate
,Selection<Boolean>
,TupleElement<Boolean>
,Serializable
,JpaCriteriaNode
,JpaExpression<Boolean>
,JpaInPredicate<T>
,JpaPredicate
,JpaSelection<Boolean>
,JpaTupleElement<Boolean>
,SqmExpression<Boolean>
,SqmInPredicate<T>
,SqmNegatablePredicate
,SqmPredicate
,SqmSelectableNode<Boolean>
,SqmExpressibleAccessor<Boolean>
,SqmNode
,SqmTypedNode<Boolean>
,SqmVisitableNode
public class SqmInListPredicate<T>
extends AbstractNegatableSqmPredicate
implements SqmInPredicate<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.Predicate
Predicate.BooleanOperator
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmInListPredicate
(SqmExpression<T> testExpression, List<? extends SqmExpression<T>> listExpressions, boolean negated, NodeBuilder nodeBuilder) SqmInListPredicate
(SqmExpression<T> testExpression, List<? extends SqmExpression<T>> listExpressions, NodeBuilder nodeBuilder) SqmInListPredicate
(SqmExpression<T> testExpression, NodeBuilder nodeBuilder) SqmInListPredicate
(SqmExpression<T> testExpression, NodeBuilder nodeBuilder, SqmExpression<T>... listExpressions) -
Method Summary
Modifier and TypeMethodDescription<X> X
accept
(SemanticQueryWalker<X> walker) Accept the walker per visitationvoid
addExpression
(SqmExpression<T> expression) void
copy
(SqmCopyContext context) protected SqmNegatablePredicate
Return the expression to be tested against the list of values.List<? extends SqmExpression<T>>
value
(Expression<? extends T> value) Add to list of values to be tested against.value
(JpaExpression<? extends T> value) Add to list of values to be tested against.Methods inherited from class org.hibernate.query.sqm.tree.predicate.AbstractNegatableSqmPredicate
isNegated, negate, not
Methods inherited from class org.hibernate.query.sqm.tree.predicate.AbstractSqmPredicate
getExpressions, getOperator
Methods inherited from class org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, equalTo, equalTo, getJavaTypeDescriptor, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder, notEqualTo, notEqualTo
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection
alias, getSelectionItems, isCompoundSelection
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement
copyTo, getAlias, getNodeType, setAlias, setExpressibleType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItems
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeName, isEnum
Methods inherited from interface jakarta.persistence.criteria.Predicate
getExpressions, getOperator
Methods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelection
Methods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, castAs, equalTo, equalTo, getNodeType, in, in, in, in, isNotNull, isNull, notEqualTo, notEqualTo, visitSubSelectableNodes
Methods inherited from interface org.hibernate.query.sqm.tree.predicate.SqmNegatablePredicate
isNegated, negate
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText, nodeBuilder
Methods inherited from interface org.hibernate.query.sqm.tree.predicate.SqmPredicate
getJavaTypeDescriptor, not
Methods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLength
Methods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaType
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
Methods inherited from interface jakarta.persistence.TupleElement
getAlias
-
Constructor Details
-
SqmInListPredicate
-
SqmInListPredicate
public SqmInListPredicate(SqmExpression<T> testExpression, NodeBuilder nodeBuilder, SqmExpression<T>... listExpressions) -
SqmInListPredicate
public SqmInListPredicate(SqmExpression<T> testExpression, List<? extends SqmExpression<T>> listExpressions, NodeBuilder nodeBuilder) -
SqmInListPredicate
public SqmInListPredicate(SqmExpression<T> testExpression, List<? extends SqmExpression<T>> listExpressions, boolean negated, NodeBuilder nodeBuilder)
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceSqmExpression<T>
- Specified by:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmPredicate
- Specified by:
copy
in interfaceSqmSelectableNode<T>
- Specified by:
copy
in interfaceSqmTypedNode<T>
-
getTestExpression
- Specified by:
getTestExpression
in interfaceSqmInPredicate<T>
-
getExpression
Description copied from interface:JpaInPredicate
Return the expression to be tested against the list of values.- Specified by:
getExpression
in interfaceCriteriaBuilder.In<T>
- Specified by:
getExpression
in interfaceJpaInPredicate<T>
- Returns:
- expression
-
value
Description copied from interface:JpaInPredicate
Add to list of values to be tested against.- Specified by:
value
in interfaceCriteriaBuilder.In<T>
- Specified by:
value
in interfaceJpaInPredicate<T>
- Parameters:
value
- value- Returns:
- in predicate
-
value
- Specified by:
value
in interfaceCriteriaBuilder.In<T>
-
value
Description copied from interface:JpaInPredicate
Add to list of values to be tested against.- Specified by:
value
in interfaceJpaInPredicate<T>
- Parameters:
value
- expression- Returns:
- in predicate
-
getListExpressions
-
addExpression
-
accept
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
appendHqlString
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
createNegatedNode
- Specified by:
createNegatedNode
in classAbstractNegatableSqmPredicate
-