Class ColumnReference
java.lang.Object
org.hibernate.metamodel.mapping.ordering.ast.ColumnReference
- All Implemented Interfaces:
Node
,OrderingExpression
,SequencePart
Represents a column-reference 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 TypeMethodDescriptionvoid
apply
(QuerySpec ast, TableGroup tableGroup, String collation, String modelPartName, SortDirection sortOrder, Nulls nullPrecedence, SqlAstCreationState creationState) Apply the SQL AST sort-specifications associated with this ordering-expressionboolean
resolve
(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState) resolvePathPart
(String name, String identifier, boolean isTerminal, TranslationContext translationContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.metamodel.mapping.ordering.ast.OrderingExpression
apply
-
Constructor Details
-
ColumnReference
-
-
Method Details
-
getColumnExpression
-
isColumnExpressionFormula
public boolean isColumnExpressionFormula() -
resolve
public Expression resolve(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState) - Specified by:
resolve
in interfaceOrderingExpression
-
resolvePathPart
public SequencePart resolvePathPart(String name, String identifier, boolean isTerminal, TranslationContext translationContext) - Specified by:
resolvePathPart
in interfaceSequencePart
-
apply
public void apply(QuerySpec ast, TableGroup tableGroup, String collation, String modelPartName, SortDirection sortOrder, Nulls nullPrecedence, SqlAstCreationState creationState) Description copied from interface:OrderingExpression
Apply the SQL AST sort-specifications associated with this ordering-expression- Specified by:
apply
in interfaceOrderingExpression
-
toDescriptiveText
- Specified by:
toDescriptiveText
in interfaceOrderingExpression
-