Class SqmInSubQueryPredicate<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.SqmInSubQueryPredicate<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 SqmInSubQueryPredicate<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 SqmInSubQueryPredicate(SqmExpression<T> testExpression, SqmSubQuery<T> subQueryExpression, boolean negated, NodeBuilder nodeBuilder)SqmInSubQueryPredicate(SqmExpression<T> testExpression, SqmSubQuery<T> subQueryExpression, NodeBuilder nodeBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> Xaccept(SemanticQueryWalker<X> walker)Accept the walker per visitationvoidappendHqlString(StringBuilder sb)SqmInSubQueryPredicate<T>copy(SqmCopyContext context)protected SqmNegatablePredicatecreateNegatedNode()SqmExpression<T>getExpression()Return the expression to be tested against the list of values.SqmSubQuery<T>getSubQueryExpression()SqmExpression<T>getTestExpression()SqmInPredicate<T>value(Expression 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
alias, applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, getJavaTypeDescriptor, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder
-
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection
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
-
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, castAs, 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.SqmTypedNode
getExpressible, getNodeJavaType
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
Methods inherited from interface jakarta.persistence.TupleElement
getAlias
-
-
-
-
Constructor Detail
-
SqmInSubQueryPredicate
public SqmInSubQueryPredicate(SqmExpression<T> testExpression, SqmSubQuery<T> subQueryExpression, NodeBuilder nodeBuilder)
-
SqmInSubQueryPredicate
public SqmInSubQueryPredicate(SqmExpression<T> testExpression, SqmSubQuery<T> subQueryExpression, boolean negated, NodeBuilder nodeBuilder)
-
-
Method Detail
-
copy
public SqmInSubQueryPredicate<T> copy(SqmCopyContext context)
- Specified by:
copyin interfaceSqmExpression<T>- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmPredicate- Specified by:
copyin interfaceSqmSelectableNode<T>- Specified by:
copyin interfaceSqmTypedNode<T>
-
getTestExpression
public SqmExpression<T> getTestExpression()
- Specified by:
getTestExpressionin interfaceSqmInPredicate<T>
-
getExpression
public SqmExpression<T> getExpression()
Description copied from interface:JpaInPredicateReturn the expression to be tested against the list of values.- Specified by:
getExpressionin interfaceCriteriaBuilder.In<T>- Specified by:
getExpressionin interfaceJpaInPredicate<T>- Returns:
- expression
-
getSubQueryExpression
public SqmSubQuery<T> getSubQueryExpression()
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
value
public SqmInPredicate<T> value(Object value)
Description copied from interface:JpaInPredicateAdd to list of values to be tested against.- Specified by:
valuein interfaceCriteriaBuilder.In<T>- Specified by:
valuein interfaceJpaInPredicate<T>- Parameters:
value- value- Returns:
- in predicate
-
value
public SqmInPredicate<T> value(Expression value)
- Specified by:
valuein interfaceCriteriaBuilder.In<T>
-
value
public SqmInPredicate<T> value(JpaExpression<? extends T> value)
Description copied from interface:JpaInPredicateAdd to list of values to be tested against.- Specified by:
valuein interfaceJpaInPredicate<T>- Parameters:
value- expression- Returns:
- in predicate
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
createNegatedNode
protected SqmNegatablePredicate createNegatedNode()
- Specified by:
createNegatedNodein classAbstractNegatableSqmPredicate
-
-