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:
AbstractDiscriminatorMapping
,AnonymousTupleBasicEntityIdentifierMapping
,AnonymousTupleBasicValuedModelPart
,AnyDiscriminatorPart
,AnyKeyPart
,BasicAttributeMapping
,BasicEntityIdentifierMappingImpl
,BasicValuedCollectionPart
,CaseStatementDiscriminatorMappingImpl
,CollectionIdentifierDescriptorImpl
,EntityRowIdMappingImpl
,EntityTableMapping.KeyColumn
,EntityVersionMappingImpl
,ExplicitColumnDiscriminatorMappingImpl
,SelectableConsumer.MutableSelectableMapping
,SelectableMappingImpl
,SimpleForeignKeyDescriptor
,SoftDeleteMappingImpl
Mapping of a selectable (column/formula)
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the table to which this selectable is mappedThe selection's read expression accounting for formula treatment as well asColumnTransformer.read()
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
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
String getCustomReadExpression()The selection's read expression accounting for formula treatment as well asColumnTransformer.read()
-
getCustomWriteExpression
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()
-