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

public abstract Class Function1_2

extends Operation1_2
implements NamedExpression
Class Inheritance
All Implemented Interfaces
org.h2.expression.function.NamedExpression
Known Direct Subclasses
org.h2.expression.function.MathFunction, org.h2.expression.function.SoundexFunction, org.h2.expression.function.TableInfoFunction, org.h2.expression.function.TrimFunction, org.h2.expression.function.DateTimeFunction, org.h2.expression.function.BitFunction, org.h2.expression.function.CastSpecification, org.h2.expression.function.CompatibilitySequenceValueFunction, org.h2.expression.function.CompressFunction, org.h2.expression.function.FileFunction
Imports
org.h2.engine.SessionLocal, org.h2.expression.Expression, .Operation1_2, org.h2.message.DbException, org.h2.value.Value, .ValueNull

Function with two arguments.

Field Summary

Inherited from org.h2.expression.Operation1_2:
leftrighttype

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
v1
,
Value
the value of second argument, or null
v2
)

Returns the value of this function.

Inherited from org.h2.expression.Operation1_2:
getCostgetSubexpressiongetSubexpressionCountgetTypeisEverythingmapColumnssetEvaluatableupdateAggregate

Constructor Detail

Function1_2back to summary
protected Function1_2(Expression left, Expression right)

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)

Returns the value of this function.

Parameters
session:SessionLocal

the session

v1:Value

the value of first argument

v2:Value

the value of second argument, or null

Returns:Value

the resulting value