Top Fields Constructors Methods
org.hibernate.query.sqm.tree.predicate

public Class SqmJunctionPredicate

extends AbstractSqmPredicate
Class Inheritance
Imports
java.util.ArrayList, .List, org.hibernate.query.sqm.NodeBuilder, .SemanticQueryWalker, org.hibernate.query.sqm.tree.SqmCopyContext, jakarta.persistence.criteria.Expression

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Predicate.BooleanOperator
private final List<SqmPredicate>

Constructor Summary

AccessConstructor and Description
public
SqmJunctionPredicate(Predicate.BooleanOperator booleanOperator, SqmPredicate leftHandPredicate, SqmPredicate rightHandPredicate, NodeBuilder nodeBuilder)

public
SqmJunctionPredicate(Predicate.BooleanOperator booleanOperator, List<SqmPredicate> predicates, NodeBuilder nodeBuilder)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(SemanticQueryWalker<T> walker)

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Accept the walker per visitation
public void
private void
public SqmJunctionPredicate
public List<Expression<Boolean>>
public Predicate.BooleanOperator
public List<SqmPredicate>
public boolean
isNegated()

Implements jakarta.persistence.criteria.Predicate.isNegated.

Whether the predicate has been created from another predicate by applying the Predicate.not() method or the CriteriaBuilder.not() method.
public SqmPredicate
not()

Implements org.hibernate.query.sqm.tree.predicate.SqmPredicate.not.

Create a negation of the predicate.

Field Detail

booleanOperatorback to summary
private final Predicate.BooleanOperator booleanOperator
predicatesback to summary
private final List<SqmPredicate> predicates

Constructor Detail

SqmJunctionPredicateback to summary
public SqmJunctionPredicate(Predicate.BooleanOperator booleanOperator, SqmPredicate leftHandPredicate, SqmPredicate rightHandPredicate, NodeBuilder nodeBuilder)
SqmJunctionPredicateback to summary
public SqmJunctionPredicate(Predicate.BooleanOperator booleanOperator, List<SqmPredicate> predicates, NodeBuilder nodeBuilder)

Method Detail

acceptback to summary
public <T> T accept(SemanticQueryWalker<T> walker)

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Doc from org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Accept the walker per visitation

Annotations
@Override
appendHqlStringback to summary
public void appendHqlString(StringBuilder sb)

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.appendHqlString.

Annotations
@Override
appendJunctionHqlStringback to summary
private void appendJunctionHqlString(SqmPredicate p, StringBuilder sb)
copyback to summary
public SqmJunctionPredicate copy(SqmCopyContext context)

Implements org.hibernate.query.sqm.tree.predicate.SqmPredicate.copy, org.hibernate.query.sqm.tree.expression.SqmExpression.copy, org.hibernate.query.sqm.tree.select.SqmSelectableNode.copy, org.hibernate.query.sqm.tree.SqmNode.copy.

Annotations
@Override
getExpressionsback to summary
public List<Expression<Boolean>> getExpressions()

Overrides org.hibernate.query.sqm.tree.predicate.AbstractSqmPredicate.getExpressions.

Implements jakarta.persistence.criteria.Predicate.getExpressions.

Doc from jakarta.persistence.criteria.Predicate.getExpressions.

Return the top-level conjuncts or disjuncts of the predicate. Returns empty list if there are no top-level conjuncts or disjuncts of the predicate. Modifications to the list do not affect the query.

Returns:List<Expression<Boolean>>

list of boolean expressions forming the predicate

Annotations
@Override
getOperatorback to summary
public Predicate.BooleanOperator getOperator()

Overrides org.hibernate.query.sqm.tree.predicate.AbstractSqmPredicate.getOperator.

Implements jakarta.persistence.criteria.Predicate.getOperator.

Doc from jakarta.persistence.criteria.Predicate.getOperator.

Return the boolean operator for the predicate. If the predicate is simple, this is AND.

Returns:Predicate.BooleanOperator

boolean operator for the predicate

Annotations
@Override
getPredicatesback to summary
public List<SqmPredicate> getPredicates()
isNegatedback to summary
public boolean isNegated()

Implements jakarta.persistence.criteria.Predicate.isNegated.

Doc from jakarta.persistence.criteria.Predicate.isNegated.

Whether the predicate has been created from another predicate by applying the Predicate.not() method or the CriteriaBuilder.not() method.

Returns:boolean

boolean indicating if the predicate is a negated predicate

Annotations
@Override
notback to summary
public SqmPredicate not()

Implements org.hibernate.query.sqm.tree.predicate.SqmPredicate.not.

Doc from jakarta.persistence.criteria.Predicate.not.

Create a negation of the predicate.

Returns:SqmPredicate

negated predicate

Annotations
@Override