Top Methods
org.hibernate.query.criteria.internal.predicate

public Interface PredicateImplementor

extends Predicate, Renderable
Known Direct Implementers
org.hibernate.query.criteria.internal.predicate.AbstractPredicateImpl, org.hibernate.query.criteria.internal.predicate.NegatedPredicateWrapper
Imports
javax.persistence.criteria.Predicate, org.hibernate.query.criteria.internal.CriteriaBuilderImpl, .Renderable, org.hibernate.query.criteria.internal.compile.RenderingContext

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public CriteriaBuilderImpl

Returns:

The CriteriaBuilder
criteriaBuilder
()

Access to the CriteriaBuilder

public boolean

Returns:

true if this predicate is a junction (AND/OR); false otherwise
isJunction
()

Is this a conjunction or disjunction?

public String

Returns:

The rendered predicate fragment.
render
(boolean
Should the predicate be negated.
isNegated
,
RenderingContext
The context for rendering
renderingContext
)

Form of Renderable#render used when the predicate is wrapped in a negated wrapper.

Inherited from javax.persistence.criteria.Predicate:
getExpressionsgetOperatorisNegatednot
Inherited from org.hibernate.query.criteria.internal.Renderable:
render

Method Detail

criteriaBuilderback to summary
public CriteriaBuilderImpl criteriaBuilder()

Access to the CriteriaBuilder

Returns:CriteriaBuilderImpl

The CriteriaBuilder

isJunctionback to summary
public boolean isJunction()

Is this a conjunction or disjunction?

Returns:boolean

true if this predicate is a junction (AND/OR); false otherwise

renderback to summary
public String render(boolean isNegated, RenderingContext renderingContext)

Form of Renderable#render used when the predicate is wrapped in a negated wrapper. Allows passing down the negation flag.

Note that this form is no-op in compound (junction) predicates. The reason being that compound predicates are more complex and the negation is applied during its creation.

Parameters
isNegated:boolean

Should the predicate be negated.

renderingContext:RenderingContext

The context for rendering

Returns:String

The rendered predicate fragment.