Class FilterPredicate
- java.lang.Object
-
- org.hibernate.sql.ast.tree.predicate.FilterPredicate
-
- All Implemented Interfaces:
DomainResultProducer<Boolean>
,SqlSelectionProducer
,Expression
,Predicate
,SqlAstNode
public class FilterPredicate extends Object implements Predicate
Represents a filter applied to an entity/collection.Note, we do not attempt to parse the filter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FilterPredicate.FilterFragmentPredicate
-
Constructor Summary
Constructors Constructor Description FilterPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
void
applyFragment(String sqlFragment)
void
applyFragment(FilterPredicate.FilterFragmentPredicate predicate)
void
applyParameter(FilterJdbcParameter parameter)
JdbcMappingContainer
getExpressionType()
The type for this expressionJunction
getFragments()
List<FilterJdbcParameter>
getParameters()
boolean
isEmpty()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createSqlSelection, getColumnReference
-
Methods inherited from interface org.hibernate.sql.ast.tree.predicate.Predicate
applySqlSelections, createDomainResult
-
-
-
-
Method Detail
-
applyFragment
public void applyFragment(FilterPredicate.FilterFragmentPredicate predicate)
-
applyFragment
public void applyFragment(String sqlFragment)
-
applyParameter
public void applyParameter(FilterJdbcParameter parameter)
-
getFragments
public Junction getFragments()
-
getParameters
public List<FilterJdbcParameter> getParameters()
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
getExpressionType
public JdbcMappingContainer getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
-