Top Description Fields Constructors Methods
org.h2.mode

public Class FunctionsLegacy

extends ModeFunction
Class Inheritance
Imports
java.util.HashMap, org.h2.engine.SessionLocal, org.h2.expression.Expression, org.h2.message.DbException, org.h2.value.TypeInfo, .Value

This class implements some legacy functions not available in Regular mode.

Field Summary

Modifier and TypeField and Description
private static final HashMap<String, FunctionInfo>
private static final int
private static final int
Inherited from org.h2.mode.ModeFunction:
infoVAR_ARGS

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FunctionsLegacy

Returns:

the function with specified name or null
getFunction
(String
the upper-case name of a function
upperName
)

Returns mode-specific function for a given name, or null.

public Value
getValue(SessionLocal
the session
session
)

Overrides org.h2.expression.function.FunctionN.getValue.

Return the resulting value for the current row.

public Expression
optimize(SessionLocal
the session
session
)

Implements abstract org.h2.expression.Expression.optimize.

Try to optimize the expression.

Inherited from org.h2.mode.ModeFunction:
checkParameterCountdoneWithParametersgetArgumentsValuesgetCompatibilityDateTimeValueFunctiongetFunctiongetNamegetNullOrValueisEverythingoptimizeArguments

Field Detail

FUNCTIONSback to summary
private static final HashMap<String, FunctionInfo> FUNCTIONS
IDENTITYback to summary
private static final int IDENTITY
SCOPE_IDENTITYback to summary
private static final int SCOPE_IDENTITY

Constructor Detail

FunctionsLegacyback to summary
private FunctionsLegacy(FunctionInfo info)

Method Detail

getFunctionback to summary
public static FunctionsLegacy getFunction(String upperName)

Returns mode-specific function for a given name, or null.

Parameters
upperName:String

the upper-case name of a function

Returns:FunctionsLegacy

the function with specified name or null

getValueback to summary
public Value getValue(SessionLocal session)

Overrides org.h2.expression.function.FunctionN.getValue.

Doc from org.h2.expression.Expression.getValue.

Return the resulting value for the current row.

Parameters
session:SessionLocal

the session

Returns:Value

the result

Annotations
@Override
optimizeback to summary
public Expression optimize(SessionLocal session)

Implements abstract org.h2.expression.Expression.optimize.

Doc from org.h2.expression.Expression.optimize.

Try to optimize the expression.

Parameters
session:SessionLocal

the session

Returns:Expression

the optimized expression

Annotations
@Override