Top Description Fields Constructors Methods
org.h2.expression.condition

pack-priv abstract Class Condition

extends Expression
Class Inheritance
Known Direct Subclasses
org.h2.expression.condition.ConditionAndOr, org.h2.expression.condition.ConditionAndOrN, org.h2.expression.condition.ConditionIn, org.h2.expression.condition.ConditionInArray, org.h2.expression.condition.ConditionInConstantSet, org.h2.expression.condition.ConditionLocalAndGlobal, org.h2.expression.condition.ConditionNot, org.h2.expression.condition.IsJsonPredicate, org.h2.expression.condition.PredicateWithSubquery, org.h2.expression.condition.SimplePredicate, org.h2.expression.condition.BetweenPredicate, org.h2.expression.condition.CompareLike, org.h2.expression.condition.Comparison
Imports
org.h2.engine.SessionLocal, org.h2.expression.Expression, org.h2.expression.function.CastSpecification, org.h2.value.TypeInfo, .Value

Represents a condition returning a boolean value, or NULL.

Field Summary

Inherited from org.h2.expression.Expression:
AUTO_PARENTHESESMAP_IN_AGGREGATEMAP_IN_WINDOWMAP_INITIALWITH_PARENTHESESWITHOUT_PARENTHESES

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Expression

Returns:

the new expression
castToBoolean
(SessionLocal
the session
session
,
Expression
the expression
expression
)

Add a cast around the expression (if necessary) so that the type is boolean.

public TypeInfo
getType()

Implements abstract org.h2.expression.Expression.getType.

Implements org.h2.value.Typed.getType.

Returns the data type.

Inherited from org.h2.expression.Expression:
addFilterConditionscreateIndexConditionsgetAliasgetBooleanValuegetColumnNamegetColumnNameForViewgetCostgetEnclosedSQLgetNonAliasExpressiongetNotIfPossiblegetNullablegetSchemaNamegetSQLgetSQLgetSQLgetSQLgetSubexpressiongetSubexpressionCountgetTableAliasgetTableNamegetTypeIfStaticallyKnowngetUnenclosedSQLgetValuegetWhenSQLgetWhenValueisConstantisEverythingisIdentityisNullConstantisValueSetisWhenConditionOperandmapColumnsneedParenthesesoptimizeoptimizeConditionsetEvaluatabletoStringupdateAggregatewriteExpressionswriteExpressions

Constructor Detail

Conditionback to summary
pack-priv Condition()

Method Detail

castToBooleanback to summary
pack-priv static Expression castToBoolean(SessionLocal session, Expression expression)

Add a cast around the expression (if necessary) so that the type is boolean.

Parameters
session:SessionLocal

the session

expression:Expression

the expression

Returns:Expression

the new expression

getTypeback to summary
public TypeInfo getType()

Implements abstract org.h2.expression.Expression.getType.

Implements org.h2.value.Typed.getType.

Doc from org.h2.expression.Expression.getType.

Returns the data type. The data type may be unknown before the optimization phase.

Returns:TypeInfo

the data type

Annotations
@Override