Class ColumnReference
- java.lang.Object
-
- org.hibernate.metamodel.mapping.ordering.ast.ColumnReference
-
- All Implemented Interfaces:
Node
,OrderingExpression
,SequencePart
public class ColumnReference extends Object implements 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 Constructor Description ColumnReference(String columnExpression, boolean isColumnExpressionFormula)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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-expressionString
getColumnExpression()
boolean
isColumnExpressionFormula()
Expression
resolve(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState)
SequencePart
resolvePathPart(String name, String identifier, boolean isTerminal, TranslationContext translationContext)
String
toDescriptiveText()
-
-
-
Constructor Detail
-
ColumnReference
public ColumnReference(String columnExpression, boolean isColumnExpressionFormula)
-
-
Method Detail
-
getColumnExpression
public String 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, 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
-
toDescriptiveText
public String toDescriptiveText()
- Specified by:
toDescriptiveText
in interfaceOrderingExpression
-
-