Top Description Fields Constructors Methods
org.h2.mode

public final Class FunctionsDB2Derby

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

Functions for org.h2.engine.Mode.ModeEnum#DB2 and org.h2.engine.Mode.ModeEnum#Derby compatibility modes.

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FunctionsDB2Derby

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
IDENTITY_VAL_LOCALback to summary
private static final int IDENTITY_VAL_LOCAL
IDENTITY_VAL_LOCAL_TYPEback to summary
private static final TypeInfo IDENTITY_VAL_LOCAL_TYPE

Constructor Detail

FunctionsDB2Derbyback to summary
private FunctionsDB2Derby(FunctionInfo info)

Method Detail

getFunctionback to summary
public static FunctionsDB2Derby getFunction(String upperName)

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

Parameters
upperName:String

the upper-case name of a function

Returns:FunctionsDB2Derby

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