Top Description Methods
org.hibernate.metamodel.mapping

public Interface SelectableMapping

extends SqlTypedMapping
Known Direct Subinterfaces
org.hibernate.metamodel.mapping.SoftDeleteMapping, org.hibernate.metamodel.mapping.TableDetails.KeyColumn, org.hibernate.metamodel.mapping.BasicValuedModelPart, org.hibernate.metamodel.mapping.EntityRowIdMapping
Known Direct Implementers
org.hibernate.metamodel.mapping.internal.SelectableMappingImpl, org.hibernate.metamodel.mapping.SelectableConsumer.MutableSelectableMapping
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.annotations.ColumnTransformer

Mapping of a selectable (column/formula)
Author
Christian Beikov

Method Summary

Modifier and TypeMethod and Description
public String
getContainingTableExpression()

The name of the table to which this selectable is mapped

public String
getCustomReadExpression()

The selection's read expression accounting for formula treatment as well as ColumnTransformer#read()

public String
getCustomWriteExpression()

The selection's write expression accounting ColumnTransformer#write()

public default String
public default SelectablePath
public String
getSelectionExpression()

The selection's expression.

public default String
public boolean
isFormula()

Is the mapping a formula instead of a physical column?

public boolean
public boolean
isNullable()

Is the mapping considered nullable?

public boolean
public boolean
Inherited from org.hibernate.metamodel.mapping.SqlTypedMapping:
getColumnDefinitiongetJdbcMappinggetLengthgetPrecisiongetScaleisLobtoSize

Method Detail

getContainingTableExpressionback to summary
public String getContainingTableExpression()

The name of the table to which this selectable is mapped

getCustomReadExpressionback to summary
public String getCustomReadExpression()

The selection's read expression accounting for formula treatment as well as ColumnTransformer#read()

getCustomWriteExpressionback to summary
public String getCustomWriteExpression()

The selection's write expression accounting ColumnTransformer#write()

API Note

Always null for formula mappings

getSelectableNameback to summary
public default String getSelectableName()
getSelectablePathback to summary
public default SelectablePath getSelectablePath()
getSelectionExpressionback to summary
public String getSelectionExpression()

The selection's expression. This is the column name or formula

getWriteExpressionback to summary
public default String getWriteExpression()
isFormulaback to summary
public boolean isFormula()

Is the mapping a formula instead of a physical column?

isInsertableback to summary
public boolean isInsertable()
isNullableback to summary
public boolean isNullable()

Is the mapping considered nullable?

isPartitionedback to summary
public boolean isPartitioned()
isUpdateableback to summary
public boolean isUpdateable()