Top Description Fields Constructors Methods
org.h2.mode

public final Class FunctionsOracle

extends ModeFunction
Class Inheritance
Imports
java.util.HashMap, org.h2.api.ErrorCode, org.h2.engine.SessionLocal, org.h2.expression.Expression, .ValueExpression, org.h2.expression.function.DateTimeFunction, org.h2.message.DbException, org.h2.value.TypeInfo, .Value, .ValueNull, .ValueUuid

Functions for org.h2.engine.Mode.ModeEnum#Oracle compatibility mode.

Field Summary

Modifier and TypeField and Description
private static final int
private static final HashMap<String, FunctionInfo>
private static final int
private static final int
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
protected void
checkParameterCount(int
the number of parameters set
len
)

Overrides org.h2.mode.ModeFunction.checkParameterCount.

Check if the parameter count is correct.

public static FunctionsOracle

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:
doneWithParametersgetArgumentsValuesgetCompatibilityDateTimeValueFunctiongetFunctiongetNamegetNullOrValueisEverythingoptimizeArguments

Field Detail

ADD_MONTHSback to summary
private static final int ADD_MONTHS
FUNCTIONSback to summary
private static final HashMap<String, FunctionInfo> FUNCTIONS
SYS_GUIDback to summary
private static final int SYS_GUID
TO_DATEback to summary
private static final int TO_DATE
TO_TIMESTAMPback to summary
private static final int TO_TIMESTAMP
TO_TIMESTAMP_TZback to summary
private static final int TO_TIMESTAMP_TZ

Constructor Detail

FunctionsOracleback to summary
private FunctionsOracle(FunctionInfo info)

Method Detail

checkParameterCountback to summary
protected void checkParameterCount(int len)

Overrides org.h2.mode.ModeFunction.checkParameterCount.

Doc from org.h2.mode.ModeFunction.checkParameterCount.

Check if the parameter count is correct.

Parameters
len:int

the number of parameters set

Annotations
@Override
getFunctionback to summary
public static FunctionsOracle getFunction(String upperName)

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

Parameters
upperName:String

the upper-case name of a function

Returns:FunctionsOracle

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