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 classFilterPredicate.FilterFragmentPredicate
-
Constructor Summary
Constructors Constructor Description FilterPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SqlAstWalker sqlTreeWalker)voidapplyFragment(String sqlFragment)voidapplyFragment(FilterPredicate.FilterFragmentPredicate predicate)voidapplyParameter(FilterJdbcParameter parameter)JdbcMappingContainergetExpressionType()The type for this expressionJunctiongetFragments()List<FilterJdbcParameter>getParameters()booleanisEmpty()-
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:
acceptin interfaceSqlAstNode
-
getExpressionType
public JdbcMappingContainer getExpressionType()
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
-