public abstract class ModeFunction extends FunctionN
| Modifier and Type | Field and Description |
|---|---|
protected FunctionInfo |
info
The information about this function.
|
protected static int |
VAR_ARGS
Constant for variable number of arguments.
|
args, argsCount, typeAUTO_PARENTHESES, MAP_IN_AGGREGATE, MAP_IN_WINDOW, MAP_INITIAL, WITH_PARENTHESES, WITHOUT_PARENTHESESADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Modifier and Type | Method and Description |
|---|---|
void |
doneWithParameters()
This method must be called after all the parameters have been set.
|
static Expression |
getCompatibilityDateTimeValueFunction(Database database,
java.lang.String name,
int scale)
Get an instance of the given function without parentheses for this
database.
|
static ModeFunction |
getFunction(Database database,
java.lang.String name)
Get an instance of the given function for this database.
|
java.lang.String |
getName()
Get the name.
|
boolean |
isEverything(ExpressionVisitor visitor)
Check if this expression and all sub-expressions can fulfill a criteria.
|
getUnenclosedSQL, getValue, getValueaddParameter, getCost, getSubexpression, getSubexpressionCount, getType, mapColumns, optimizeArguments, setEvaluatable, updateAggregateaddFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNotIfPossible, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getTableAlias, getTableName, getWhenSQL, getWhenValue, isConstant, isIdentity, isNullConstant, isValueSet, isWhenConditionOperand, needParentheses, optimize, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLprotected static final int VAR_ARGS
protected final FunctionInfo info
public static ModeFunction getFunction(Database database, java.lang.String name)
database - the databasename - the upper case function namepublic static Expression getCompatibilityDateTimeValueFunction(Database database, java.lang.String name, int scale)
database - the databasename - the upper case function namescale - the scale, or -1public void doneWithParameters()
ExpressionWithVariableParametersdoneWithParameters in interface ExpressionWithVariableParametersdoneWithParameters in class OperationNpublic java.lang.String getName()
NamedExpressionpublic boolean isEverything(ExpressionVisitor visitor)
ExpressionisEverything in class OperationNvisitor - the visitor