Deprecated
as a consequence of FunctionRenderer being deprecated. See corresponding docs for further information.
trunc and round functions
with the following signatures:
trunc(numeric, integer)round(numeric, integer)
This custom function falls back to using floor as a workaround only when necessary,
e.g. when there are 2 arguments to the function and either:
numerictrunc function| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected <T> SelfRenderingSqmFunction | generateSqmFunctionExpression(List<? extends SqmTypedNode<?>>
the arguments of the function invocation arguments, ReturnableType<T> the function return type as inferred from its usage impliedResultType, QueryEngine queryEngine)Implements abstract org. |
| public String | |
| public void | render(SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker)
Implements org. |
| supportsTwoArguments | back to summary |
|---|---|
| private final boolean supportsTwoArguments | |
| PostgreSQLTruncRoundFunction | back to summary |
|---|---|
| public PostgreSQLTruncRoundFunction(String name, boolean supportsTwoArguments) | |
| generateSqmFunctionExpression | back to summary |
|---|---|
| protected <T> SelfRenderingSqmFunction Implements abstract org. Doc from org. Return an SQM node or subtree representing an invocation of this function with the given arguments. This method may be overridden in the case of function descriptors that wish to customize creation of the node.
| |
| getArgumentListSignature | back to summary |
|---|---|
| public String getArgumentListSignature() Overrides org.
| |
| render | back to summary |
|---|---|
| public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker) Implements org.
| |