org.hibernate.ejb.criteria.predicate
Class AbstractPredicateImpl

java.lang.Object
  extended by org.hibernate.ejb.criteria.AbstractNode
      extended by org.hibernate.ejb.criteria.expression.AbstractTupleElement<X>
          extended by org.hibernate.ejb.criteria.expression.SelectionImpl<T>
              extended by org.hibernate.ejb.criteria.expression.ExpressionImpl<Boolean>
                  extended by org.hibernate.ejb.criteria.predicate.AbstractPredicateImpl
All Implemented Interfaces:
Serializable, javax.persistence.criteria.Expression<Boolean>, javax.persistence.criteria.Predicate, javax.persistence.criteria.Selection<Boolean>, TupleElement<Boolean>, ExpressionImplementor<Boolean>, ParameterContainer, Renderable, SelectionImplementor<Boolean>, TupleElementImplementor<Boolean>
Direct Known Subclasses:
AbstractSimplePredicate, CompoundPredicate

public abstract class AbstractPredicateImpl
extends ExpressionImpl<Boolean>
implements javax.persistence.criteria.Predicate, Serializable

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

Author:
Steve Ebersole
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.persistence.criteria.Predicate
javax.persistence.criteria.Predicate.BooleanOperator
 
Nested classes/interfaces inherited from interface org.hibernate.ejb.criteria.ParameterContainer
ParameterContainer.Helper
 
Constructor Summary
protected AbstractPredicateImpl(CriteriaBuilderImpl criteriaBuilder)
           
 
Method Summary
 List<javax.persistence.criteria.Selection<?>> getCompoundSelectionItems()
           
 boolean isCompoundSelection()
           
 boolean isNegated()
           
 javax.persistence.criteria.Predicate not()
           
 
Methods inherited from class org.hibernate.ejb.criteria.expression.ExpressionImpl
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
 
Methods inherited from class org.hibernate.ejb.criteria.expression.SelectionImpl
alias, getValueHandlers
 
Methods inherited from class org.hibernate.ejb.criteria.expression.AbstractTupleElement
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
 
Methods inherited from class org.hibernate.ejb.criteria.AbstractNode
criteriaBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.persistence.criteria.Predicate
getExpressions, getOperator
 
Methods inherited from interface javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
 
Methods inherited from interface javax.persistence.criteria.Selection
alias
 
Methods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
 
Methods inherited from interface org.hibernate.ejb.criteria.SelectionImplementor
getValueHandlers
 
Methods inherited from interface org.hibernate.ejb.criteria.TupleElementImplementor
getValueHandler
 
Methods inherited from interface org.hibernate.ejb.criteria.Renderable
render, renderProjection
 
Methods inherited from interface org.hibernate.ejb.criteria.ParameterContainer
registerParameters
 

Constructor Detail

AbstractPredicateImpl

protected AbstractPredicateImpl(CriteriaBuilderImpl criteriaBuilder)
Method Detail

isNegated

public boolean isNegated()
Specified by:
isNegated in interface javax.persistence.criteria.Predicate

not

public javax.persistence.criteria.Predicate not()
Specified by:
not in interface javax.persistence.criteria.Predicate

isCompoundSelection

public final boolean isCompoundSelection()
Specified by:
isCompoundSelection in interface javax.persistence.criteria.Selection<Boolean>
Overrides:
isCompoundSelection in class SelectionImpl<Boolean>

getCompoundSelectionItems

public final List<javax.persistence.criteria.Selection<?>> getCompoundSelectionItems()
Specified by:
getCompoundSelectionItems in interface javax.persistence.criteria.Selection<Boolean>
Overrides:
getCompoundSelectionItems in class SelectionImpl<Boolean>


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.