Interface Selectable

All Known Implementing Classes:
AggregateColumn, Column, ExportableColumn, Formula, SelfRenderingAggregateFunctionSqlAstExpression, SelfRenderingFunctionSqlAstExpression, SelfRenderingOrderedSetAggregateFunctionSqlAstExpression, SelfRenderingWindowFunctionSqlAstExpression

public interface Selectable
Models the commonality between a Column and a Formula (computed value).
  • Method Details

    • getText

      String getText()
      The selectable's "canonical" text representation
    • getText

      String getText(Dialect dialect)
      The selectable's text representation accounting for the Dialect's quoting, if quoted
    • isFormula

      boolean isFormula()
      Does this selectable represent a formula? true indicates it is a formula; false indicates it is a physical column
    • getCustomReadExpression

      String getCustomReadExpression()
      Any custom read expression for this selectable. Only pertinent for physical columns (not formulas)
      See Also:
    • getCustomWriteExpression

      String getCustomWriteExpression()
      Any custom write expression for this selectable. Only pertinent for physical columns (not formulas)
      See Also:
    • getAlias

      @Deprecated(since="6.0") String getAlias(Dialect dialect)
      Deprecated.
      new read-by-position paradigm means that these generated aliases are no longer needed
    • getAlias

      @Deprecated(since="6.0") String getAlias(Dialect dialect, Table table)
      Deprecated.
      new read-by-position paradigm means that these generated aliases are no longer needed
    • getTemplate

      String getTemplate(Dialect dialect, TypeConfiguration typeConfiguration, SqmFunctionRegistry functionRegistry)
    • getWriteExpr

      @Incubating default String getWriteExpr()
    • getWriteExpr

      @Incubating default String getWriteExpr(JdbcMapping jdbcMapping, Dialect dialect)