Class SelfRenderingOrderingExpression
java.lang.Object
org.hibernate.sql.ast.tree.expression.SelfRenderingSqlFragmentExpression
org.hibernate.metamodel.mapping.ordering.ast.SelfRenderingOrderingExpression
- All Implemented Interfaces:
Node,OrderingExpression,SqlSelectionProducer,Expression,SelfRenderingExpression,SqlAstNode
public class SelfRenderingOrderingExpression
extends SelfRenderingSqlFragmentExpression
implements OrderingExpression
Represents a self rendering expression i.e. usually a literal used in an order-by fragment
- API Note:
- This is Hibernate-specific feature. For
OrderBy(JPA) all path references are expected to be domain paths (attributes).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(QuerySpec ast, TableGroup tableGroup, String collation, String modelPartName, SortDirection sortOrder, Nulls nullPrecedence, SqlAstCreationState creationState) Apply the SQL AST sort-specifications associated with this ordering-expressionresolve(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState) Methods inherited from class org.hibernate.sql.ast.tree.expression.SelfRenderingSqlFragmentExpression
getExpression, getExpressionType, renderToSqlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReferenceMethods inherited from interface org.hibernate.metamodel.mapping.ordering.ast.OrderingExpression
applyMethods inherited from interface org.hibernate.sql.ast.tree.expression.SelfRenderingExpression
accept
-
Constructor Details
-
SelfRenderingOrderingExpression
-
-
Method Details
-
resolve
public Expression resolve(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState) - Specified by:
resolvein interfaceOrderingExpression
-
apply
public void apply(QuerySpec ast, TableGroup tableGroup, String collation, String modelPartName, SortDirection sortOrder, Nulls nullPrecedence, SqlAstCreationState creationState) Description copied from interface:OrderingExpressionApply the SQL AST sort-specifications associated with this ordering-expression- Specified by:
applyin interfaceOrderingExpression
-
toDescriptiveText
- Specified by:
toDescriptiveTextin interfaceOrderingExpression
-