Class SqmInSubQueryPredicate<T>
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement<Boolean>
org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection<Boolean>
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>, SqmCacheable, SqmExpressibleAccessor<Boolean>, SqmNode, SqmTypedNode<Boolean>, SqmVisitableNode
public class SqmInSubQueryPredicate<T>
extends AbstractNegatableSqmPredicate
implements SqmInPredicate<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Predicate
Predicate.BooleanOperator -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmInSubQueryPredicate(SqmExpression<T> testExpression, SqmSubQuery<T> subQueryExpression, boolean negated, NodeBuilder nodeBuilder) SqmInSubQueryPredicate(SqmExpression<T> testExpression, SqmSubQuery<T> subQueryExpression, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationvoidappendHqlString(StringBuilder hql, SqmRenderContext context) intcopy(SqmCopyContext context) protected SqmNegatablePredicatebooleanReturn the expression to be tested against the list of values.inthashCode()booleanisCompatible(Object object) value(Expression 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 AbstractNegatableSqmPredicate
isNegated, negate, notMethods inherited from class AbstractSqmPredicate
getExpressible, getExpressions, getJavaTypeDescriptor, getNodeJavaType, getNodeType, getOperatorMethods inherited from class AbstractSqmExpression
applyInferableType, as, cast, equalTo, equalTo, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder, notEqualTo, notEqualToMethods inherited from class AbstractJpaSelection
alias, getSelectionItems, isCompoundSelectionMethods inherited from class AbstractJpaTupleElement
copyTo, getAlias, setAlias, setExpressibleTypeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeName, isEnumMethods inherited from interface Predicate
getExpressions, getOperatorMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface SqmExpression
applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, castAs, equalTo, equalTo, in, in, in, in, isNotNull, isNull, notEqualTo, notEqualTo, visitSubSelectableNodesMethods inherited from interface SqmNegatablePredicate
isNegated, negateMethods inherited from interface SqmNode
asLoggableText, nodeBuilderMethods inherited from interface SqmPredicate
getExpressible, getJavaTypeDescriptor, getNodeJavaType, getNodeType, notMethods inherited from interface SqmSelectableNode
getTupleLengthMethods inherited from interface SqmVisitableNode
toHqlStringMethods inherited from interface TupleElement
getAlias
-
Constructor Details
-
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 Details
-
copy
- Specified by:
copyin interfaceSqmExpression<T>- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmPredicate- Specified by:
copyin interfaceSqmSelectableNode<T>- Specified by:
copyin interfaceSqmTypedNode<T>
-
getTestExpression
- Specified by:
getTestExpressionin interfaceSqmInPredicate<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
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
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
- Specified by:
valuein interfaceCriteriaBuilder.In<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
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
createNegatedNode
- Specified by:
createNegatedNodein classAbstractNegatableSqmPredicate
-
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-