Package org.hibernate.mapping
Interface Selectable
-
- All Known Implementing Classes:
Column
,ExportableColumn
,Formula
,SelfRenderingAggregateFunctionSqlAstExpression
,SelfRenderingFunctionSqlAstExpression
,SelfRenderingOrderedSetAggregateFunctionSqlAstExpression
,SelfRenderingWindowFunctionSqlAstExpression
public interface Selectable
Models the commonality between a column and a formula (computed value).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String
getAlias(Dialect dialect)
Deprecated.new read-by-position paradigm means that these generated aliases are no longer neededString
getAlias(Dialect dialect, Table table)
Deprecated.new read-by-position paradigm means that these generated aliases are no longer neededString
getCustomReadExpression()
Any custom read expression for this selectable.String
getCustomWriteExpression()
Any custom write expression for this selectable.String
getTemplate(Dialect dialect, TypeConfiguration typeConfiguration, SqmFunctionRegistry functionRegistry)
String
getText()
The selectable's "canonical" text representationString
getText(Dialect dialect)
The selectable's text representation accounting for the Dialect's quoting, if quotedboolean
isFormula()
Does this selectable represent a formula?true
indicates it is a formula;false
indicates it is a physical column
-
-
-
Method Detail
-
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:
ColumnTransformer
-
getCustomWriteExpression
String getCustomWriteExpression()
Any custom write expression for this selectable. Only pertinent for physical columns (not formulas)- See Also:
ColumnTransformer
-
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)
-
-