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:
AnonymousTupleEmbeddableValuedModelPart,AnonymousTupleEmbeddedEntityIdentifierMapping,AnonymousTupleNonAggregatedEntityIdentifierMapping
public interface EmbeddableMappingType extends ManagedMappingType, SelectableMappings
Describes an embeddable - the actual type- See Also:
EmbeddableValuedModelPart- 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 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleananyRequiresAggregateColumnWriter()default 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 intcompare(Object value1, Object value2)<T> DomainResult<T>createDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState)Create a DomainResult for a specific reference to this ModelPart.EmbeddableMappingTypecreateInverseMappingType(org.hibernate.metamodel.mapping.internal.EmbeddedAttributeMapping valueMapping, TableGroupProducer declaringTableGroupProducer, SelectableMappings selectableMappings, org.hibernate.metamodel.mapping.internal.MappingModelCreationProcess creationProcess)default voidforEachInsertable(int offset, SelectableConsumer consumer)intforEachJdbcType(int offset, org.hibernate.internal.util.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 SelectableMappinggetAggregateMapping()EmbeddableValuedModelPartgetEmbeddedValueMapping()intgetJdbcTypeCount()The number of JDBC mappingsdefault intgetJdbcValueCount()Different fromgetJdbcTypeCount()as this will treat an aggregate as a single element.default SelectableMappinggetJdbcValueSelectable(int columnIndex)default EmbeddableMappingTypegetPartMappingType()The type for this part.EmbeddableRepresentationStrategygetRepresentationStrategy()default intgetSelectableIndex(String selectableName)booleanisCreateEmptyCompositesEnabled()default booleanrequiresAggregateColumnWriter()default booleanshouldBindAggregateMapping()default booleanshouldMutateAggregateMapping()default booleanshouldSelectAggregateMapping()-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getFetchable, getKeyFetchable, getNumberOfFetchableKeys, getNumberOfFetchables, getNumberOfKeyFetchables, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchables
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
getJdbcMapping, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ManagedMappingType
findAttributeMapping, forEachAttributeMapping, forEachAttributeMapping, getAttributeMapping, getAttributeMappings, getJavaType, getNumberOfAttributeMappings, getValue, getValues, hasPartitionedSelectionMapping, setValue, setValues
-
Methods inherited from interface org.hibernate.metamodel.mapping.MappingType
getMappedJavaType
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, asAttributeMapping, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, decompose, decompose, findContainingEntityMapping, getNavigableRole, getPartName, isEntityIdentifierMapping, isVirtual
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, findSubPart, forEachSubPart, forEachSubPart, visitSubParts
-
Methods inherited from interface org.hibernate.metamodel.mapping.SelectableMappings
getSelectable
-
-
-
-
Method Detail
-
getEmbeddedValueMapping
EmbeddableValuedModelPart getEmbeddedValueMapping()
-
getRepresentationStrategy
EmbeddableRepresentationStrategy getRepresentationStrategy()
-
isCreateEmptyCompositesEnabled
boolean isCreateEmptyCompositesEnabled()
-
getAggregateMapping
default SelectableMapping getAggregateMapping()
-
shouldSelectAggregateMapping
default boolean shouldSelectAggregateMapping()
-
getPartMappingType
default EmbeddableMappingType 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
default SelectableMapping getJdbcValueSelectable(int columnIndex)
-
getSelectableIndex
default int getSelectableIndex(String selectableName)
- Specified by:
getSelectableIndexin interfaceFetchableContainer
-
createInverseMappingType
EmbeddableMappingType createInverseMappingType(org.hibernate.metamodel.mapping.internal.EmbeddedAttributeMapping valueMapping, TableGroupProducer declaringTableGroupProducer, SelectableMappings selectableMappings, org.hibernate.metamodel.mapping.internal.MappingModelCreationProcess creationProcess)
-
forEachSelectable
default int forEachSelectable(SelectableConsumer consumer)
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
int forEachSelectable(int offset, SelectableConsumer consumer)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:
SelectableConsumer.accept(int, SelectableMapping)
-
forEachInsertable
default void forEachInsertable(int offset, SelectableConsumer consumer)
-
forEachUpdatable
default void forEachUpdatable(int offset, SelectableConsumer consumer)
-
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
int forEachJdbcType(int offset, org.hibernate.internal.util.IndexedConsumer<JdbcMapping> action)Description copied from interface:JdbcMappingContainerVisit each JdbcMapping starting from the given offset- Specified by:
forEachJdbcTypein interfaceJdbcMappingContainer
-
createDomainResult
<T> DomainResult<T> createDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState)
Description copied from interface:ModelPartCreate a DomainResult for a specific reference to this ModelPart.- Specified by:
createDomainResultin interfaceModelPart
-
applySqlSelections
default void applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState)
Description copied from interface:ModelPartApply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.- Specified by:
applySqlSelectionsin interfaceModelPart
-
applySqlSelections
default void applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection,JdbcMapping> selectionConsumer)
Description copied from interface:ModelPartApply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.- Specified by:
applySqlSelectionsin interfaceModelPart
-
-