Class FunctionExpression
- java.lang.Object
-
- org.hibernate.metamodel.mapping.ordering.ast.FunctionExpression
-
- All Implemented Interfaces:
Node
,OrderingExpression
,FunctionRenderer
,FunctionRenderingSupport
public class FunctionExpression extends Object implements OrderingExpression, FunctionRenderer
Represents a function used in an order-by fragment
-
-
Constructor Summary
Constructors Constructor Description FunctionExpression(String name, int numberOfArguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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-expressionList<OrderingExpression>
getArguments()
String
getName()
void
render(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker)
SelfRenderingFunctionSqlAstExpression
resolve(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState)
String
toDescriptiveText()
-
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
-
Methods inherited from interface org.hibernate.query.sqm.function.FunctionRenderingSupport
render, render, render
-
-
-
-
Constructor Detail
-
FunctionExpression
public FunctionExpression(String name, int numberOfArguments)
-
-
Method Detail
-
getName
public String getName()
-
getArguments
public List<OrderingExpression> getArguments()
-
addArgument
public void addArgument(OrderingExpression argument)
-
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
- Specified by:
render
in interfaceFunctionRenderingSupport
-
toDescriptiveText
public String toDescriptiveText()
- Specified by:
toDescriptiveText
in interfaceOrderingExpression
-
-