Package org.hibernate.metamodel.mapping
Interface SelectableMapping
- All Superinterfaces:
SqlTypedMapping
- All Known Subinterfaces:
BasicEntityIdentifierMapping
,BasicValuedModelPart
,CollectionIdentifierDescriptor
,DiscriminatorMapping
,EmbeddableDiscriminatorMapping
,EntityDiscriminatorMapping
,EntityRowIdMapping
,EntityVersionMapping
,SoftDeleteMapping
,TableDetails.KeyColumn
- All Known Implementing Classes:
EntityTableMapping.KeyColumn
,SelectableConsumer.MutableSelectableMapping
Mapping of a selectable (column/formula)
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the table to which this selectable is mapped@Nullable String
The selection's read expression accounting for formula treatment as well asColumnTransformer.read()
@Nullable String
The selection's write expression accountingColumnTransformer.write()
default String
default SelectablePath
The selection's expression.default String
boolean
Is the mapping a formula instead of a physical column?boolean
boolean
Is the mapping considered nullable?boolean
boolean
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getArrayLength, getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale, getTemporalPrecision, isLob, toSize
-
Method Details
-
getContainingTableExpression
String getContainingTableExpression()The name of the table to which this selectable is mapped -
getSelectionExpression
String getSelectionExpression()The selection's expression. This is the column name or formula -
getSelectableName
-
getSelectablePath
-
getCustomReadExpression
@Nullable String getCustomReadExpression()The selection's read expression accounting for formula treatment as well asColumnTransformer.read()
-
getCustomWriteExpression
@Nullable String getCustomWriteExpression()The selection's write expression accountingColumnTransformer.write()
- API Note:
- Always null for formula mappings
-
getWriteExpression
-
isFormula
boolean isFormula()Is the mapping a formula instead of a physical column? -
isNullable
boolean isNullable()Is the mapping considered nullable? -
isInsertable
boolean isInsertable() -
isUpdateable
boolean isUpdateable() -
isPartitioned
boolean isPartitioned()
-