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

public abstract Class FunctionN

extends OperationN
implements NamedExpression
Class Inheritance
All Implemented Interfaces
org.h2.expression.function.NamedExpression
Known Direct Subclasses
org.h2.expression.function.HashFunction, org.h2.expression.function.RegexpFunction, org.h2.expression.function.StringFunction, org.h2.expression.function.SubstringFunction, org.h2.expression.function.ToCharFunction, org.h2.expression.function.TruncateValueFunction, org.h2.expression.function.XMLFunction, org.h2.mode.ModeFunction, org.h2.expression.function.ArrayFunction, org.h2.expression.function.CoalesceFunction, org.h2.expression.function.ConcatFunction, org.h2.expression.function.CryptFunction, org.h2.expression.function.CSVWriteFunction, org.h2.expression.function.DataTypeSQLFunction, org.h2.expression.function.DateTimeFormatFunction, org.h2.expression.function.DBObjectFunction
Imports
org.h2.engine.SessionLocal, org.h2.expression.Expression, .OperationN, org.h2.message.DbException, org.h2.value.Value, .ValueNull

Function with many arguments.

Field Summary

Inherited from org.h2.expression.OperationN:
argsargsCounttype

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public StringBuilder
getUnenclosedSQL(StringBuilder
string builder
builder
,
int
formatting flags
sqlFlags
)

Implements abstract org.h2.expression.Expression.getUnenclosedSQL.

Get the SQL statement of this expression.

public Value
getValue(SessionLocal
the session
session
)

Implements abstract org.h2.expression.Expression.getValue.

Return the resulting value for the current row.

protected Value

Returns:

the resulting value
getValue
(SessionLocal
the session
session
,
Value
the value of first argument, or null
v1
,
Value
the value of second argument, or null
v2
,
Value
the value of third argument, or null
v3
)

Returns the value of this function.

Inherited from org.h2.expression.OperationN:
addParameterdoneWithParametersgetCostgetSubexpressiongetSubexpressionCountgetTypeisEverythingmapColumnsoptimizeArgumentssetEvaluatableupdateAggregate

Constructor Detail

FunctionNback to summary
protected FunctionN(Expression[] args)

Method Detail

getUnenclosedSQLback to summary
public StringBuilder getUnenclosedSQL(StringBuilder builder, int sqlFlags)

Implements abstract org.h2.expression.Expression.getUnenclosedSQL.

Doc from org.h2.expression.Expression.getUnenclosedSQL.

Get the SQL statement of this expression. This may not always be the original SQL statement, especially after optimization. Enclosing '(' and ')' are never appended.

Parameters
builder:StringBuilder

string builder

sqlFlags:int

formatting flags

Returns:StringBuilder

the specified string builder

Annotations
@Override
getValueback to summary
public Value getValue(SessionLocal session)

Implements abstract org.h2.expression.Expression.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
getValueback to summary
protected Value getValue(SessionLocal session, Value v1, Value v2, Value v3)

Returns the value of this function.

Parameters
session:SessionLocal

the session

v1:Value

the value of first argument, or null

v2:Value

the value of second argument, or null

v3:Value

the value of third argument, or null

Returns:Value

the resulting value