Package org.hibernate.metamodel.mapping
Interface EmbeddableMappingType
- All Superinterfaces:
Bindable,FetchableContainer,JdbcMappingContainer,ManagedMappingType,MappingModelExpressible,MappingType,ModelPart,ModelPartContainer,SelectableMappings
- All Known Subinterfaces:
NonAggregatedIdentifierMapping.IdentifierValueMapper
- All Known Implementing Classes:
AbstractEmbeddableMapping,AnonymousTupleEmbeddableValuedModelPart,AnonymousTupleEmbeddedEntityIdentifierMapping,AnonymousTupleNonAggregatedEntityIdentifierMapping,EmbeddableMappingTypeImpl,IdClassEmbeddable,VirtualIdEmbeddable
Describes an embeddable - the actual type
- See Also:
- Implementation Note:
- Even though this represents the embeddable class, one is created for each embedded usage. This is done to help
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceNested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault voidapplySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState) Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.default voidapplySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection, JdbcMapping> selectionConsumer) Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.default int<T> DomainResult<T> createDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState) Create a DomainResult for a specific reference to this ModelPart.createInverseMappingType(EmbeddedAttributeMapping valueMapping, TableGroupProducer declaringTableGroupProducer, SelectableMappings selectableMappings, MappingModelCreationProcess creationProcess) findSubtypeByDiscriminator(Object discriminatorValue) findSubtypeBySubclass(String subclassName) default voidforEachInsertable(int offset, SelectableConsumer consumer) intforEachJdbcType(int offset, IndexedConsumer<JdbcMapping> action) Visit each JdbcMapping starting from the given offsetintforEachSelectable(int offset, SelectableConsumer consumer) Visits each selectable mapping with the selectable index offset by the given value.default intforEachSelectable(SelectableConsumer consumer) A short hand form ofModelPart.forEachSelectable(int, SelectableConsumer), that passes 0 as offset.default voidforEachUpdatable(int offset, SelectableConsumer consumer) default SelectableMappingReturns the concrete embeddable subtypes or an empty collection ifisPolymorphic()isfalse.default EmbeddableDiscriminatorMappingReturns the discriminator mapping if this discriminator type is polymorphic,nullotherwise.intThe number of JDBC mappingsdefault intDifferent fromgetJdbcTypeCount()as this will treat an aggregate as a single element.default SelectableMappinggetJdbcValueSelectable(int columnIndex) default EmbeddableMappingTypeThe type for this part.default intgetSelectableIndex(String selectableName) default booleanReturnstrueif this embeddable mapping type defines a discriminator-based inheritance hierarchy,falseotherwise.default booleandefault booleandefault booleandefault booleanMethods inherited from interface org.hibernate.metamodel.mapping.Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getFetchable, getKeyFetchable, getNumberOfFetchableKeys, getNumberOfFetchables, getNumberOfKeyFetchables, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchablesMethods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
getJdbcMapping, getSingleJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.ManagedMappingType
findAttributeMapping, forEachAttributeMapping, forEachAttributeMapping, getAttributeMapping, getAttributeMappings, getJavaType, getNumberOfAttributeMappings, getValue, getValues, hasPartitionedSelectionMapping, isAffectedByEnabledFilters, setValue, setValuesMethods inherited from interface org.hibernate.metamodel.mapping.MappingType
getMappedJavaTypeMethods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, asAttributeMapping, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, decompose, decompose, findContainingEntityMapping, getNavigableRole, getPartName, isEntityIdentifierMapping, isVirtualMethods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, findSubPart, forEachSubPart, forEachSubPart, visitSubPartsMethods inherited from interface org.hibernate.metamodel.mapping.SelectableMappings
getSelectable
-
Method Details
-
getEmbeddedValueMapping
EmbeddableValuedModelPart getEmbeddedValueMapping() -
getRepresentationStrategy
EmbeddableRepresentationStrategy getRepresentationStrategy() -
getDiscriminatorMapping
Returns the discriminator mapping if this discriminator type is polymorphic,nullotherwise. -
isPolymorphic
default boolean isPolymorphic()Returnstrueif this embeddable mapping type defines a discriminator-based inheritance hierarchy,falseotherwise. -
findSubtypeByDiscriminator
default EmbeddableMappingType.ConcreteEmbeddableType findSubtypeByDiscriminator(Object discriminatorValue) -
findSubtypeBySubclass
-
getConcreteEmbeddableTypes
Returns the concrete embeddable subtypes or an empty collection ifisPolymorphic()isfalse. -
getAggregateMapping
-
shouldSelectAggregateMapping
default boolean shouldSelectAggregateMapping() -
getPartMappingType
Description copied from interface:ModelPartThe type for this part.- Specified by:
getPartMappingTypein interfaceManagedMappingType- Specified by:
getPartMappingTypein interfaceModelPart
-
shouldMutateAggregateMapping
default boolean shouldMutateAggregateMapping() -
shouldBindAggregateMapping
default boolean shouldBindAggregateMapping() -
anyRequiresAggregateColumnWriter
default boolean anyRequiresAggregateColumnWriter()- Specified by:
anyRequiresAggregateColumnWriterin interfaceManagedMappingType
-
requiresAggregateColumnWriter
default boolean requiresAggregateColumnWriter() -
getJdbcValueCount
default int getJdbcValueCount()Different fromgetJdbcTypeCount()as this will treat an aggregate as a single element. -
getJdbcValueSelectable
-
getSelectableIndex
- Specified by:
getSelectableIndexin interfaceFetchableContainer
-
createInverseMappingType
EmbeddableMappingType createInverseMappingType(EmbeddedAttributeMapping valueMapping, TableGroupProducer declaringTableGroupProducer, SelectableMappings selectableMappings, MappingModelCreationProcess creationProcess) -
forEachSelectable
Description copied from interface:ModelPartA short hand form ofModelPart.forEachSelectable(int, SelectableConsumer), that passes 0 as offset.- Specified by:
forEachSelectablein interfaceModelPart- Specified by:
forEachSelectablein interfaceSelectableMappings
-
forEachSelectable
Description copied from interface:ModelPartVisits each selectable mapping with the selectable index offset by the given value. Returns the amount of jdbc types that have been visited.- Specified by:
forEachSelectablein interfaceModelPart- Specified by:
forEachSelectablein interfaceSelectableMappings- See Also:
-
forEachInsertable
-
forEachUpdatable
-
getJdbcTypeCount
int getJdbcTypeCount()Description copied from interface:BindableThe number of JDBC mappings- Specified by:
getJdbcTypeCountin interfaceBindable- Specified by:
getJdbcTypeCountin interfaceJdbcMappingContainer- Specified by:
getJdbcTypeCountin interfaceSelectableMappings
-
forEachJdbcType
Description copied from interface:JdbcMappingContainerVisit each JdbcMapping starting from the given offset- Specified by:
forEachJdbcTypein interfaceJdbcMappingContainer
-
compare
-