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 voidapply(QuerySpec ast, TableGroup tableGroup, String collation, String modelPartName, SortOrder sortOrder, NullPrecedence nullPrecedence, SqlAstCreationState creationState)Apply the SQL AST sort-specifications associated with this ordering-expressionStringgetColumnExpression()booleanisColumnExpressionFormula()Expressionresolve(QuerySpec ast, TableGroup tableGroup, String modelPartName, SqlAstCreationState creationState)SequencePartresolvePathPart(String name, String identifier, boolean isTerminal, TranslationContext translationContext)StringtoDescriptiveText()
-
-
-
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:
resolvein interfaceOrderingExpression
-
resolvePathPart
public SequencePart resolvePathPart(String name, String identifier, boolean isTerminal, TranslationContext translationContext)
- Specified by:
resolvePathPartin interfaceSequencePart
-
apply
public void apply(QuerySpec ast, TableGroup tableGroup, String collation, String modelPartName, SortOrder sortOrder, NullPrecedence nullPrecedence, SqlAstCreationState creationState)
Description copied from interface:OrderingExpressionApply the SQL AST sort-specifications associated with this ordering-expression- Specified by:
applyin interfaceOrderingExpression
-
toDescriptiveText
public String toDescriptiveText()
- Specified by:
toDescriptiveTextin interfaceOrderingExpression
-
-