Top Description Methods
org.hibernate.mapping

public Interface Selectable

Known Direct Implementers
org.hibernate.query.sqm.function.SelfRenderingFunctionSqlAstExpression, org.hibernate.mapping.Column, org.hibernate.mapping.Formula
Imports
org.hibernate.Incubating, org.hibernate.dialect.Dialect, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.mapping.JdbcMapping, org.hibernate.query.sqm.function.SqmFunctionRegistry, org.hibernate.type.descriptor.jdbc.JdbcType, org.hibernate.type.spi.TypeConfiguration

Models the commonality between a Column and a Formula (computed value).

Method Summary

Modifier and TypeMethod and Description
public String
getAlias(Dialect dialect)

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

Deprecated since 6.0. new read-by-position paradigm means that these generated aliases are no longer needed
public String
getCustomReadExpression()

Any custom read expression for this selectable.

public String
getCustomWriteExpression()

Any custom write expression for this selectable.

public String
getTemplate(Dialect dialect, TypeConfiguration typeConfiguration, SqmFunctionRegistry functionRegistry)

public String
getText()

The selectable's "canonical" text representation

public String
getText(Dialect dialect)

The selectable's text representation accounting for the Dialect's quoting, if quoted

public default String
public default String
getWriteExpr(JdbcMapping jdbcMapping, Dialect dialect)

public boolean
isFormula()

Does this selectable represent a formula?

Method Detail

getAliasback to summary
public String getAlias(Dialect dialect)

Deprecated

since 6.0.

new read-by-position paradigm means that these generated aliases are no longer needed

Annotations
@Deprecated
since:6.0
getAliasback to summary
public String getAlias(Dialect dialect, Table table)

Deprecated

since 6.0.

new read-by-position paradigm means that these generated aliases are no longer needed

Annotations
@Deprecated
since:6.0
getCustomReadExpressionback to summary
public String getCustomReadExpression()

Any custom read expression for this selectable. Only pertinent for physical columns (not formulas)

See Also
org.hibernate.annotations.ColumnTransformer
getCustomWriteExpressionback to summary
public String getCustomWriteExpression()

Any custom write expression for this selectable. Only pertinent for physical columns (not formulas)

See Also
org.hibernate.annotations.ColumnTransformer
getTemplateback to summary
public String getTemplate(Dialect dialect, TypeConfiguration typeConfiguration, SqmFunctionRegistry functionRegistry)
getTextback to summary
public String getText()

The selectable's "canonical" text representation

getTextback to summary
public String getText(Dialect dialect)

The selectable's text representation accounting for the Dialect's quoting, if quoted

getWriteExprback to summary
public default String getWriteExpr()
Annotations
@Incubating
getWriteExprback to summary
public default String getWriteExpr(JdbcMapping jdbcMapping, Dialect dialect)
Annotations
@Incubating
isFormulaback to summary
public boolean isFormula()

Does this selectable represent a formula? true indicates it is a formula; false indicates it is a physical column