Class ColumnReference
- java.lang.Object
-
- org.hibernate.sql.ast.tree.expression.ColumnReference
-
- All Implemented Interfaces:
SqlSelectionProducer
,Expression
,SqlAstNode
,Assignable
- Direct Known Subclasses:
NestedColumnReference
public class ColumnReference extends Object implements Expression, Assignable
Models a reference to a Column in a SQL AST
-
-
Constructor Summary
Constructors Constructor Description ColumnReference(String qualifier, String columnExpression, boolean isFormula, String customReadExpression, JdbcMapping jdbcMapping)
ColumnReference(String qualifier, String columnExpression, SelectablePath selectablePath, boolean isFormula, String customReadExpression, JdbcMapping jdbcMapping)
ColumnReference(String qualifier, SelectableMapping selectableMapping)
ColumnReference(String qualifier, SelectableMapping selectableMapping, JdbcMapping jdbcMapping)
ColumnReference(TableReference tableReference, String columnExpression, boolean isFormula, String customReadExpression, JdbcMapping jdbcMapping)
ColumnReference(TableReference tableReference, String mapping, JdbcMapping jdbcMapping)
ColumnReference(TableReference tableReference, SelectableMapping selectableMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker interpreter)
void
appendColumnForWrite(SqlAppender appender)
void
appendColumnForWrite(SqlAppender appender, String qualifier)
void
appendReadExpression(String qualifier, Consumer<String> appender)
void
appendReadExpression(SqlAppender appender)
void
appendReadExpression(SqlAppender appender, String qualifier)
boolean
equals(Object o)
String
getColumnExpression()
ColumnReference
getColumnReference()
List<ColumnReference>
getColumnReferences()
String
getExpressionText()
JdbcMapping
getExpressionType()
The type for this expressionJdbcMapping
getJdbcMapping()
String
getQualifier()
protected String
getReadExpression()
String
getSelectableName()
SelectablePath
getSelectablePath()
int
hashCode()
boolean
isColumnExpressionFormula()
String
toString()
void
visitColumnReferences(Consumer<ColumnReference> columnReferenceConsumer)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection
-
-
-
-
Constructor Detail
-
ColumnReference
public ColumnReference(TableReference tableReference, SelectableMapping selectableMapping)
-
ColumnReference
public ColumnReference(TableReference tableReference, String mapping, JdbcMapping jdbcMapping)
-
ColumnReference
public ColumnReference(String qualifier, SelectableMapping selectableMapping)
-
ColumnReference
public ColumnReference(String qualifier, SelectableMapping selectableMapping, JdbcMapping jdbcMapping)
-
ColumnReference
public ColumnReference(TableReference tableReference, String columnExpression, boolean isFormula, String customReadExpression, JdbcMapping jdbcMapping)
-
ColumnReference
public ColumnReference(String qualifier, String columnExpression, boolean isFormula, String customReadExpression, JdbcMapping jdbcMapping)
-
ColumnReference
public ColumnReference(String qualifier, String columnExpression, SelectablePath selectablePath, boolean isFormula, String customReadExpression, JdbcMapping jdbcMapping)
-
-
Method Detail
-
getColumnReference
public ColumnReference getColumnReference()
- Specified by:
getColumnReference
in interfaceExpression
-
getQualifier
public String getQualifier()
-
getColumnExpression
public String getColumnExpression()
-
getReadExpression
protected String getReadExpression()
-
getSelectableName
public String getSelectableName()
-
getSelectablePath
public SelectablePath getSelectablePath()
-
isColumnExpressionFormula
public boolean isColumnExpressionFormula()
-
getExpressionText
public String getExpressionText()
-
appendReadExpression
public void appendReadExpression(SqlAppender appender)
-
appendReadExpression
public void appendReadExpression(SqlAppender appender, String qualifier)
-
appendColumnForWrite
public void appendColumnForWrite(SqlAppender appender)
-
appendColumnForWrite
public void appendColumnForWrite(SqlAppender appender, String qualifier)
-
getJdbcMapping
public JdbcMapping getJdbcMapping()
-
getExpressionType
public JdbcMapping getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
accept
public void accept(SqlAstWalker interpreter)
- Specified by:
accept
in interfaceSqlAstNode
-
visitColumnReferences
public void visitColumnReferences(Consumer<ColumnReference> columnReferenceConsumer)
- Specified by:
visitColumnReferences
in interfaceAssignable
-
getColumnReferences
public List<ColumnReference> getColumnReferences()
- Specified by:
getColumnReferences
in interfaceAssignable
-
-