public class TruncSqlFunction extends SqlFunction
| Constructor and Description |
|---|
TruncSqlFunction() |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(SqlFunctionExecutionContext context)
Context can have from 1 to 2 arguments, the first is number ( can be float ), the second one is precision, it is optional,
whole number.
|
NumberFormat |
getDecimalFormatter(Number number,
int precision) |
assertNumberOfArguments, assertNumberOfArguments, fromSqlTypeName, isString, isWholeNumberpublic Object apply(SqlFunctionExecutionContext context)
apply in class SqlFunctioncontext - contains the arguments, SqlFunctionExecutionContextpublic NumberFormat getDecimalFormatter(Number number, int precision)
Copyright © GigaSpaces.