Class SqmOrPredicate
- 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.SqmOrPredicate
-
- All Implemented Interfaces:
jakarta.persistence.criteria.Expression<Boolean>
,jakarta.persistence.criteria.Predicate
,jakarta.persistence.criteria.Selection<Boolean>
,jakarta.persistence.TupleElement<Boolean>
,Serializable
,JpaCriteriaNode
,JpaExpression<Boolean>
,JpaPredicate
,JpaSelection<Boolean>
,JpaTupleElement<Boolean>
,SqmExpression<Boolean>
,SqmJunctivePredicate
,SqmPredicate
,SqmSelectableNode<Boolean>
,SqmExpressibleAccessor<Boolean>
,SqmNode
,SqmTypedNode<Boolean>
,SqmVisitableNode
public class SqmOrPredicate extends AbstractSqmExpression<Boolean> implements SqmJunctivePredicate
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmOrPredicate(SqmPredicate leftHandPredicate, SqmPredicate rightHandPredicate, NodeBuilder nodeBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(SemanticQueryWalker<T> walker)
Accept the walker per visitationvoid
appendHqlString(StringBuilder sb)
List<jakarta.persistence.criteria.Expression<Boolean>>
getExpressions()
SqmPredicate
getLeftHandPredicate()
jakarta.persistence.criteria.Predicate.BooleanOperator
getOperator()
SqmPredicate
getRightHandPredicate()
boolean
isNegated()
SqmPredicate
not()
-
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
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 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.SqmNode
asLoggableText, nodeBuilder
-
Methods inherited from interface org.hibernate.query.sqm.tree.predicate.SqmPredicate
getJavaTypeDescriptor
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaType
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
-
-
-
Constructor Detail
-
SqmOrPredicate
public SqmOrPredicate(SqmPredicate leftHandPredicate, SqmPredicate rightHandPredicate, NodeBuilder nodeBuilder)
-
-
Method Detail
-
getLeftHandPredicate
public SqmPredicate getLeftHandPredicate()
- Specified by:
getLeftHandPredicate
in interfaceSqmJunctivePredicate
-
getRightHandPredicate
public SqmPredicate getRightHandPredicate()
- Specified by:
getRightHandPredicate
in interfaceSqmJunctivePredicate
-
accept
public <T> T accept(SemanticQueryWalker<T> walker)
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
not
public SqmPredicate not()
- Specified by:
not
in interfaceJpaPredicate
- Specified by:
not
in interfacejakarta.persistence.criteria.Predicate
- Specified by:
not
in interfaceSqmPredicate
-
getOperator
public jakarta.persistence.criteria.Predicate.BooleanOperator getOperator()
- Specified by:
getOperator
in interfacejakarta.persistence.criteria.Predicate
-
isNegated
public boolean isNegated()
- Specified by:
isNegated
in interfacejakarta.persistence.criteria.Predicate
-
getExpressions
public List<jakarta.persistence.criteria.Expression<Boolean>> getExpressions()
- Specified by:
getExpressions
in interfacejakarta.persistence.criteria.Predicate
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
-