Interface EntityDiscriminatorMapping
- All Superinterfaces:
BasicValuedMapping, BasicValuedModelPart, Bindable, DiscriminatorMapping, Fetchable, FetchOptions, FetchStyleAccess, FetchTimingAccess, JavaTypedExpressible, JdbcMappingContainer, MappingModelExpressible, ModelPart, SelectableMapping, SelectableMappings, SqlExpressible, SqlTypedMapping, ValuedModelPart, ValueMapping, VirtualModelPart
Details about the discriminator for an entity hierarchy.
- See Also:
- Implementation Note:
- All entity-mappings within the hierarchy share the same EntityDiscriminatorMapping instance.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer Nested classes/interfaces inherited from interface ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault intThe key that identifies this Fetchable within aFetchableContainer.default StringThe name of the fetchable.default FetchOptionsThe configured fetch timing and styledefault StringThe local part name, which is generally the unqualified role namedefault FetchStylegetStyle()default FetchTimingbooleanIs the discriminator defined by a physical column?static booleanmatchesRoleName(String name) Methods inherited from interface BasicValuedMapping
addToCacheKey, disassemble, getJdbcMappingMethods inherited from interface BasicValuedModelPart
asBasicValuedModelPart, forEachSelectable, forEachSelectable, getJdbcMapping, getJdbcTypeCount, getPartMappingType, getSelectable, getSingleJdbcMapping, hasPartitionedSelectionMappingMethods inherited from interface Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface DiscriminatorMapping
generateFetch, getDomainJavaType, getRelationalJavaType, getUnderlyingJdbcMapping, getValueConverter, resolveDiscriminatorValue, resolveSqlExpressionMethods inherited from interface Fetchable
asAttributeMapping, incrementFetchDepth, isSelectable, resolveCircularFetchMethods inherited from interface JavaTypedExpressible
addToCacheKeyMethods inherited from interface JdbcMappingContainer
forEachJdbcTypeMethods inherited from interface ModelPart
applySqlSelections, applySqlSelections, areEqual, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, findContainingEntityMapping, getJavaType, getNavigableRole, isEntityIdentifierMappingMethods inherited from interface SelectableMapping
getContainingTableExpression, getCustomReadExpression, getCustomWriteExpression, getSelectableName, getSelectablePath, getSelectionExpression, getWriteExpression, isFormula, isInsertable, isNullable, isPartitioned, isUpdateableMethods inherited from interface SqlTypedMapping
getArrayLength, getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale, getTemporalPrecision, isLob, toSizeMethods inherited from interface ValuedModelPart
forEachInsertable, forEachNonFormula, forEachUpdatable, getContainingTableExpressionMethods inherited from interface ValueMapping
getExpressibleJavaType, getMappedType, treatAsMethods inherited from interface VirtualModelPart
isVirtual
-
Field Details
-
DISCRIMINATOR_ROLE_NAME
- See Also:
-
LEGACY_DISCRIMINATOR_NAME
- See Also:
-
-
Method Details
-
matchesRoleName
-
getPartName
Description copied from interface:ModelPartThe local part name, which is generally the unqualified role name- Specified by:
getPartNamein interfaceModelPart
-
getFetchableName
Description copied from interface:FetchableThe name of the fetchable. This is the part's "local name".- Specified by:
getFetchableNamein interfaceFetchable- See Also:
-
hasPhysicalColumn
boolean hasPhysicalColumn()Is the discriminator defined by a physical column? -
getFetchableKey
default int getFetchableKey()Description copied from interface:FetchableThe key that identifies this Fetchable within aFetchableContainer. If this Fetchable is part ofFetchableContainer.visitFetchables(IndexedConsumer, EntityMappingType), the values is guaranteed to be between 0 (inclusive) andFetchableContainer.getNumberOfFetchableKeys()(exclusive). Other Fetchable objects may have a special negative value.The main intent of this key is to index e.g.
Fetchobjects in an array.- Specified by:
getFetchableKeyin interfaceFetchable
-
getMappedFetchOptions
Description copied from interface:FetchableThe configured fetch timing and style- Specified by:
getMappedFetchOptionsin interfaceFetchable
-
getStyle
- Specified by:
getStylein interfaceFetchStyleAccess
-
getTiming
- Specified by:
getTimingin interfaceFetchTimingAccess
-