public class ComparisonPredicate extends AbstractSimplePredicate implements BinaryOperatorExpression<Boolean>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ComparisonPredicate.ComparisonOperator
Defines the comparison operators.
|
Predicate.BooleanOperator
ParameterContainer.Helper
Constructor and Description |
---|
ComparisonPredicate(CriteriaBuilderImpl criteriaBuilder,
ComparisonPredicate.ComparisonOperator comparisonOperator,
Expression<?> leftHandSide,
Expression<?> rightHandSide) |
ComparisonPredicate(CriteriaBuilderImpl criteriaBuilder,
ComparisonPredicate.ComparisonOperator comparisonOperator,
Expression<?> leftHandSide,
Object rightHandSide) |
ComparisonPredicate(CriteriaBuilderImpl criteriaBuilder,
ComparisonPredicate.ComparisonOperator comparisonOperator,
Expression<N> leftHandSide,
Number rightHandSide) |
Modifier and Type | Method and Description |
---|---|
ComparisonPredicate.ComparisonOperator |
getComparisonOperator() |
Expression |
getLeftHandOperand()
Get the left-hand operand.
|
Expression |
getRightHandOperand()
Get the right-hand operand.
|
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
String |
render(CriteriaQueryCompiler.RenderingContext renderingContext) |
String |
renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext) |
getExpressions, getOperator
getCompoundSelectionItems, isCompoundSelection, isNegated, not
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getValueHandlers
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
getValueHandlers
getValueHandler
public ComparisonPredicate(CriteriaBuilderImpl criteriaBuilder, ComparisonPredicate.ComparisonOperator comparisonOperator, Expression<?> leftHandSide, Expression<?> rightHandSide)
public ComparisonPredicate(CriteriaBuilderImpl criteriaBuilder, ComparisonPredicate.ComparisonOperator comparisonOperator, Expression<?> leftHandSide, Object rightHandSide)
public ComparisonPredicate(CriteriaBuilderImpl criteriaBuilder, ComparisonPredicate.ComparisonOperator comparisonOperator, Expression<N> leftHandSide, Number rightHandSide)
public ComparisonPredicate.ComparisonOperator getComparisonOperator()
public Expression getLeftHandOperand()
BinaryOperatorExpression
getLeftHandOperand
in interface BinaryOperatorExpression<Boolean>
public Expression getRightHandOperand()
BinaryOperatorExpression
getRightHandOperand
in interface BinaryOperatorExpression<Boolean>
public void registerParameters(ParameterRegistry registry)
ParameterContainer
registerParameters
in interface ParameterContainer
registry
- The parameter registry with which to register.public String render(CriteriaQueryCompiler.RenderingContext renderingContext)
render
in interface Renderable
public String renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext)
renderProjection
in interface Renderable
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.