Interface Predicate
-
- All Superinterfaces:
DomainResultProducer<Boolean>,Expression,SqlAstNode,SqlSelectionProducer
- All Known Implementing Classes:
AbstractPredicate,BetweenPredicate,BooleanExpressionPredicate,ComparisonPredicate,ExistsPredicate,FilterPredicate,FilterPredicate.FilterFragmentPredicate,GroupedPredicate,InArrayPredicate,InListPredicate,InSubQueryPredicate,Junction,LikePredicate,NegatedPredicate,NullnessPredicate,SelfRenderingPredicate,SqlFragmentPredicate,ThruthnessPredicate
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 voidapplySqlSelections(DomainResultCreationState creationState)Used when this producer is a selection in a sub-query.static PredicatecombinePredicates(Predicate p1, Predicate p2)default DomainResult<Boolean>createDomainResult(String resultVariable, DomainResultCreationState creationState)Produce the domain querybooleanisEmpty()-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, 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:DomainResultProducerProduce the domain query- Specified by:
createDomainResultin interfaceDomainResultProducer<Boolean>
-
applySqlSelections
default void applySqlSelections(DomainResultCreationState creationState)
Description copied from interface:DomainResultProducerUsed 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:
applySqlSelectionsin interfaceDomainResultProducer<Boolean>
-
-