Deprecated
as a consequence of AbstractSqmSelfRenderingFunctionDescriptor being deprecated. See corresponding docs for further information.
current_date.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | alwaysIncludesParentheses()
Overrides default org. |
| public String | |
| public void | render(SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker)
Overrides org. Implements org. |
| sql | back to summary |
|---|---|
| private final String sql | |
| CurrentFunction | back to summary |
|---|---|
| public CurrentFunction(String name, String sql, BasicType<?> type) | |
| alwaysIncludesParentheses | back to summary |
|---|---|
| public boolean alwaysIncludesParentheses() Overrides default org. Doc from org. Will a call to the described function always include parentheses? Instances of this interface are usually used for rendering of functions. However, there are cases where Hibernate needs to consume a fragment and decide if a token represents a function name. In cases where the token is followed by an opening parenthesis, we can safely assume the token is a function name. Bur if the next token is not an opening parenthesis, the token might still represent a function if the function has a "no paren" form in the case of no arguments.
For example, many databases do not require parentheses for functions
like
| |
| 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) Overrides org. Implements org.
| |