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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.Predicate
Predicate.BooleanOperator
-
-
Constructor Summary
Constructors Constructor Description SqmInListPredicate(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> X
accept(SemanticQueryWalker<X> walker)
Accept the walker per visitationvoid
addExpression(SqmExpression<T> expression)
void
appendHqlString(StringBuilder sb)
SqmInListPredicate<T>
copy(SqmCopyContext context)
protected SqmNegatablePredicate
createNegatedNode()
SqmExpression<T>
getExpression()
Return the expression to be tested against the list of values.List<? extends SqmExpression<T>>
getListExpressions()
SqmExpression<T>
getTestExpression()
SqmInPredicate<T>
value(Expression<? extends T> value)
SqmInPredicate<T>
value(Object value)
Add to list of values to be tested against.SqmInPredicate<T>
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, equalTo, equalTo, getJavaTypeDescriptor, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder
-
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, 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 Detail
-
SqmInListPredicate
public SqmInListPredicate(SqmExpression<T> testExpression, NodeBuilder nodeBuilder)
-
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 Detail
-
copy
public SqmInListPredicate<T> copy(SqmCopyContext context)
- 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
public SqmExpression<T> getTestExpression()
- Specified by:
getTestExpression
in interfaceSqmInPredicate<T>
-
getExpression
public SqmExpression<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
public SqmInPredicate<T> value(Object 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
public SqmInPredicate<T> value(Expression<? extends T> value)
- Specified by:
value
in interfaceCriteriaBuilder.In<T>
-
value
public SqmInPredicate<T> value(JpaExpression<? extends 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
public List<? extends SqmExpression<T>> getListExpressions()
-
addExpression
public void addExpression(SqmExpression<T> expression)
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
createNegatedNode
protected SqmNegatablePredicate createNegatedNode()
- Specified by:
createNegatedNode
in classAbstractNegatableSqmPredicate
-
-