Class FunctionExpression
java.lang.Object
org.hibernate.metamodel.mapping.ordering.ast.FunctionExpression
- All Implemented Interfaces:
Node
,OrderingExpression
,FunctionRenderer
Represents a function used in an order-by fragment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgument
(OrderingExpression argument) void
apply
(QuerySpec ast, TableGroup tableGroup, String collation, String modelPartName, SortDirection sortOrder, NullPrecedence nullPrecedence, SqlAstCreationState creationState) Apply the SQL AST sort-specifications associated with this ordering-expressiongetName()
void
render
(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker) resolve
(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.sqm.function.FunctionRenderer
render, render, render, render
-
Constructor Details
-
FunctionExpression
-
-
Method Details
-
getName
-
getArguments
-
addArgument
-
resolve
public SelfRenderingFunctionSqlAstExpression resolve(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState) - Specified by:
resolve
in interfaceOrderingExpression
-
apply
public void apply(QuerySpec ast, TableGroup tableGroup, String collation, String modelPartName, SortDirection sortOrder, NullPrecedence nullPrecedence, SqlAstCreationState creationState) Description copied from interface:OrderingExpression
Apply the SQL AST sort-specifications associated with this ordering-expression- Specified by:
apply
in interfaceOrderingExpression
-
render
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker) - Specified by:
render
in interfaceFunctionRenderer
-
toDescriptiveText
- Specified by:
toDescriptiveText
in interfaceOrderingExpression
-