| Modifier and Type | Field and Description |
|---|---|
| protected final FunctionInfo | info
The information about this function. |
| protected static final int | VAR_ARGS
Constant for variable number of arguments. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | doneWithParameters()
Overrides org. Implements org. This method must be called after all the parameters have been set. |
| pack-priv final Value[] | Returns: the values, ornull if function should return NULL due to
NULL argumentthe session session, Expression[] the arguments args)Gets values of arguments and checks them for NULL values if function returns NULL on NULL argument. |
| public static Expression | Returns: the function object or nullthe database database, String the upper case function name name, int the scale, or scale)-1Get an instance of the given function without parentheses for this database. |
| private static ModeFunction | |
| public static ModeFunction | Returns: the function object or nullthe database database, String the upper case function name name)Get an instance of the given function for this database. |
| public String | |
| pack-priv static Value | Returns: value or nulldatabase session session, Expression[] expressions args, Value[] array of input values values, int index of value of transform i)Get value transformed by expression, or null if i is out of range or the input value is null. |
| public boolean | isEverything(ExpressionVisitor
the visitor visitor)Overrides org. Check if this expression and all sub-expressions can fulfill a criteria. |
| pack-priv final boolean | Returns: whether all arguments are constants and function is deterministicthe session session)Optimizes arguments. |
| info | back to summary |
|---|---|
| protected final FunctionInfo info The information about this function. | |
| VAR_ARGS | back to summary |
|---|---|
| protected static final int VAR_ARGS Constant for variable number of arguments. | |
| ModeFunction | back to summary |
|---|---|
| pack-priv ModeFunction(FunctionInfo info) Creates a new instance of function.
| |
| checkParameterCount | back to summary |
|---|---|
| pack-priv void checkParameterCount(int len) Check if the parameter count is correct.
| |
| doneWithParameters | back to summary |
|---|---|
| public void doneWithParameters() Overrides org. Implements org. Doc from org. This method must be called after all the parameters have been set. It checks if the parameter count is correct when required by the implementation.
| |
| getArgumentsValues | back to summary |
|---|---|
| pack-priv final Value[] getArgumentsValues(SessionLocal session, Expression[] args) Gets values of arguments and checks them for NULL values if function returns NULL on NULL argument.
| |
| getCompatibilityDateTimeValueFunction | back to summary |
|---|---|
| public static Expression getCompatibilityDateTimeValueFunction(Database database, String name, int scale) Get an instance of the given function without parentheses for this database. If no function with this name is found, null is returned.
| |
| getCompatibilityModeFunction | back to summary |
|---|---|
| private static ModeFunction getCompatibilityModeFunction(String name, Mode. | |
| getFunction | back to summary |
|---|---|
| public static ModeFunction getFunction(Database database, String name) Get an instance of the given function for this database. If no function with this name is found, null is returned.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the name. | |
| getNullOrValue | back to summary |
|---|---|
| pack-priv static Value getNullOrValue(SessionLocal session, Expression[] args, Value[] values, int i) Get value transformed by expression, or null if i is out of range or the input value is null.
| |
| isEverything | back to summary |
|---|---|
| public boolean isEverything(ExpressionVisitor visitor) Overrides org. Doc from org. Check if this expression and all sub-expressions can fulfill a criteria. If any part returns false, the result is false.
| |
| optimizeArguments | back to summary |
|---|---|
| pack-priv final boolean optimizeArguments(SessionLocal session) Optimizes arguments.
| |