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

public abstract Class AbstractPredicateImpl

extends ExpressionImpl<Boolean>
implements PredicateImplementor, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.query.criteria.internal.predicate.PredicateImplementor, org.hibernate.query.criteria.internal.Renderable, javax.persistence.criteria.Predicate, javax.persistence.criteria.Expression, javax.persistence.criteria.Selection, javax.persistence.TupleElement
Known Direct Subclasses
org.hibernate.query.criteria.internal.predicate.AbstractSimplePredicate, org.hibernate.query.criteria.internal.predicate.CompoundPredicate
Imports
java.io.Serializable, java.util.List, javax.persistence.criteria.Predicate, .Selection, org.hibernate.query.criteria.internal.CriteriaBuilderImpl, org.hibernate.query.criteria.internal.expression.ExpressionImpl

Basic template support for Predicate implementors providing expression handling, negation and conjunction/disjunction handling.
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public final List<Selection<?>>
public final boolean
public boolean
isNegated()

Implements javax.persistence.criteria.Predicate.isNegated.

Whether the predicate has been created from another predicate by applying the Predicate.not() method or the CriteriaBuilder.not() method.
public Predicate
not()

Implements javax.persistence.criteria.Predicate.not.

Create a negation of the predicate.
Inherited from org.hibernate.query.criteria.internal.expression.ExpressionImpl:
asasBigDecimalasBigIntegerasDoubleasFloatasIntegerasLongasStringininininisNotNullisNull

Constructor Detail

AbstractPredicateImplback to summary
protected AbstractPredicateImpl(CriteriaBuilderImpl criteriaBuilder)

Method Detail

getCompoundSelectionItemsback to summary
public final List<Selection<?>> getCompoundSelectionItems()

Overrides org.hibernate.query.criteria.internal.expression.SelectionImpl.getCompoundSelectionItems.

Implements javax.persistence.criteria.Selection.getCompoundSelectionItems.

Doc from javax.persistence.criteria.Selection.getCompoundSelectionItems.

Return the selection items composing a compound selection. Modifications to the list do not affect the query.

Returns:List<Selection<?>>

list of selection items

Annotations
@Override
isCompoundSelectionback to summary
public final boolean isCompoundSelection()

Overrides org.hibernate.query.criteria.internal.expression.SelectionImpl.isCompoundSelection.

Implements javax.persistence.criteria.Selection.isCompoundSelection.

Doc from javax.persistence.criteria.Selection.isCompoundSelection.

Whether the selection item is a compound selection.

Returns:boolean

boolean indicating whether the selection is a compound selection

Annotations
@Override
isNegatedback to summary
public boolean isNegated()

Implements javax.persistence.criteria.Predicate.isNegated.

Doc from javax.persistence.criteria.Predicate.isNegated.

Whether the predicate has been created from another predicate by applying the Predicate.not() method or the CriteriaBuilder.not() method.

Returns:boolean

boolean indicating if the predicate is a negated predicate

notback to summary
public Predicate not()

Implements javax.persistence.criteria.Predicate.not.

Doc from javax.persistence.criteria.Predicate.not.

Create a negation of the predicate.

Returns:Predicate

negated predicate