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
@Incubating public interface SelectableMapping extends SqlTypedMapping
Mapping of a selectable (column/formula)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getContainingTableExpression()
The name of the table to which this selectable is mappedString
getCustomReadExpression()
The selection's read expression accounting for formula treatment as well asColumnTransformer.read()
String
getCustomWriteExpression()
The selection's write expression accountingColumnTransformer.write()
default String
getSelectableName()
default SelectablePath
getSelectablePath()
String
getSelectionExpression()
The selection's expression.default String
getWriteExpression()
boolean
isFormula()
Is the mapping a formula instead of a physical column?boolean
isInsertable()
boolean
isNullable()
Is the mapping considered nullable?boolean
isPartitioned()
boolean
isUpdateable()
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale, getTemporalPrecision, isLob, toSize
-
-
-
-
Method Detail
-
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
default String getSelectableName()
-
getSelectablePath
default SelectablePath 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
default String 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()
-
-