Package org.hibernate.mapping
Interface Selectable
-
- All Known Implementing Classes:
Column,ExportableColumn,Formula,SelfRenderingAggregateFunctionSqlAstExpression,SelfRenderingFunctionSqlAstExpression
public interface SelectableModels 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 StringgetAlias(Dialect dialect)Deprecated.new read-by-position paradigm means that these generated aliases are no longer neededStringgetAlias(Dialect dialect, Table table)Deprecated.new read-by-position paradigm means that these generated aliases are no longer neededStringgetCustomReadExpression()Any custom read expression for this selectable.StringgetCustomWriteExpression()Any custom write expression for this selectable.StringgetTemplate(Dialect dialect, SqmFunctionRegistry functionRegistry)Deprecated.usegetCustomWriteExpression()insteadStringgetText()The selectable's "canonical" text representationStringgetText(Dialect dialect)The selectable's text representation accounting for the Dialect's quoting, if quotedbooleanisFormula()Does this selectable represent a formula?trueindicates it is a formula;falseindicates 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?trueindicates it is a formula;falseindicates 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
@Deprecated(since="6.0") String getTemplate(Dialect dialect, SqmFunctionRegistry functionRegistry)
Deprecated.usegetCustomWriteExpression()instead
-
-