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, org.hibernate.metamodel.mapping.internal.SelectableMappingImpl
Mapping of a selectable (column/formula)
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the table to which this selectable is mapped@Nullable StringThe selection's read expression accounting for formula treatment as well asColumnTransformer.read()@Nullable StringThe selection's write expression accountingColumnTransformer.write()default Stringdefault SelectablePathThe selection's expression.default StringbooleanIs the mapping a formula instead of a physical column?booleanbooleanIs the mapping considered nullable?booleanbooleanMethods inherited from interface 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()
-