Interface Predicate
-
- All Superinterfaces:
DomainResultProducer<Boolean>
,Expression
,SqlAstNode
,SqlSelectionProducer
- All Known Implementing Classes:
AbstractPredicate
,BetweenPredicate
,BooleanExpressionPredicate
,ComparisonPredicate
,ExistsPredicate
,FilterPredicate
,FilterPredicate.FilterFragmentPredicate
,GroupedPredicate
,InListPredicate
,InSubQueryPredicate
,Junction
,LikePredicate
,NegatedPredicate
,NullnessPredicate
,SelfRenderingPredicate
,SqlFragmentPredicate
public interface Predicate extends Expression, DomainResultProducer<Boolean>
Models a predicate in the SQL AST
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
applySqlSelections(DomainResultCreationState creationState)
Used when this producer is a selection in a sub-query.static Predicate
combinePredicates(Predicate p1, Predicate p2)
default DomainResult<Boolean>
createDomainResult(String resultVariable, DomainResultCreationState creationState)
Produce the domain queryboolean
isEmpty()
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createSqlSelection, getColumnReference, getExpressionType
-
Methods inherited from interface org.hibernate.sql.ast.tree.SqlAstNode
accept
-
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
-
createDomainResult
default DomainResult<Boolean> createDomainResult(String resultVariable, DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Produce the domain query- Specified by:
createDomainResult
in interfaceDomainResultProducer<Boolean>
-
applySqlSelections
default void applySqlSelections(DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Used when this producer is a selection in a sub-query. The DomainResult is only needed for root query of a SELECT statement. This default impl assumes this producer is a true (Sql)Expression- Specified by:
applySqlSelections
in interfaceDomainResultProducer<Boolean>
-
-