Top Description Methods
org.hibernate.metamodel.mapping.ordering.ast

public Interface OrderingExpression

extends Node
Known Direct Subinterfaces
org.hibernate.metamodel.mapping.ordering.ast.DomainPath
Known Direct Implementers
org.hibernate.metamodel.mapping.ordering.ast.SelfRenderingOrderingExpression, org.hibernate.metamodel.mapping.ordering.ast.ColumnReference, org.hibernate.metamodel.mapping.ordering.ast.FunctionExpression
Imports
org.hibernate.query.NullPrecedence, .SortDirection, org.hibernate.query.spi.QueryEngine, org.hibernate.query.sqm.sql.FakeSqmToSqlAstConverter, .SqmToSqlAstConverter, org.hibernate.query.sqm.tree.expression.SqmSelfRenderingExpression, org.hibernate.sql.ast.spi.SqlAstCreationState, org.hibernate.sql.ast.tree.SqlAstNode, org.hibernate.sql.ast.tree.expression.Expression, org.hibernate.sql.ast.tree.from.TableGroup, org.hibernate.sql.ast.tree.select.QuerySpec

Contract for anything that can be a sort expression
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public 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-expression

public static Expression
applyCollation(Expression expression, String collation, SqlAstCreationState creationState)

public SqlAstNode
resolve(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState)

public String

Method Detail

applyback to summary
public 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-expression

applyCollationback to summary
public static Expression applyCollation(Expression expression, String collation, SqlAstCreationState creationState)
resolveback to summary
public SqlAstNode resolve(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState)
toDescriptiveTextback to summary
public String toDescriptiveText()