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
Models a predicate in the SQL AST
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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, getExpressionTypeMethods inherited from interface org.hibernate.sql.ast.tree.SqlAstNode
accept
-
Method Details
-
combinePredicates
-
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
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>
-