Package org.hibernate.metamodel.mapping
Interface ManagedMappingType
- All Superinterfaces:
Bindable
,FetchableContainer
,JdbcMappingContainer
,MappingModelExpressible
,MappingType
,ModelPart
,ModelPartContainer
- All Known Subinterfaces:
EmbeddableMappingType
,EntityMappingType
,EntityPersister
,InFlightEntityMappingType
,NonAggregatedIdentifierMapping.IdentifierValueMapper
- All Known Implementing Classes:
AbstractEmbeddableMapping
,AbstractEntityPersister
,AnonymousTupleEmbeddableValuedModelPart
,AnonymousTupleEmbeddedEntityIdentifierMapping
,AnonymousTupleEntityValuedModelPart
,AnonymousTupleNonAggregatedEntityIdentifierMapping
,EmbeddableMappingTypeImpl
,IdClassEmbeddable
,JoinedSubclassEntityPersister
,MockEntityPersister
,ProcessorSessionFactory.EntityPersister
,SingleTableEntityPersister
,UnionSubclassEntityPersister
,VirtualIdEmbeddable
Mapping-model corollary to
ManagedType
-
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
Modifier and TypeMethodDescriptiondefault boolean
default AttributeMapping
findAttributeMapping
(String name) Find an attribute by name.void
forEachAttributeMapping
(Consumer<? super AttributeMapping> action) Visit attributes defined on this class and any supersdefault void
forEachAttributeMapping
(IndexedConsumer<? super AttributeMapping> consumer) Visit attributes defined on this class and any supersgetAttributeMapping
(int position) Retrieve an attribute by its contributor positionGet access to the attributes defined on this class and any supersdefault JavaType<?>
The Java type for this part.int
Get the number of attributes defined on this class and any supersdefault MappingType
The type for this part.default Object
Extract a specific attribute value from the entity instance, by positionObject[]
Extract the individual attribute values from the entity instancedefault boolean
default boolean
isAffectedByEnabledFilters
(Set<ManagedMappingType> visitedTypes, LoadQueryInfluencers influencers, boolean onlyApplyForLoadByKey) default void
Inject a specific attribute value into the entity instance, by positionvoid
Inject the attribute values into the entity instanceMethods inherited from interface org.hibernate.metamodel.mapping.Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, getJdbcTypeCount
Methods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getFetchable, getKeyFetchable, getNumberOfFetchableKeys, getNumberOfFetchables, getNumberOfKeyFetchables, getSelectableIndex, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchables
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType, getJdbcMapping, getSingleJdbcMapping
Methods inherited from interface org.hibernate.metamodel.mapping.MappingType
getMappedJavaType
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, asAttributeMapping, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, findContainingEntityMapping, forEachSelectable, forEachSelectable, getNavigableRole, getPartName, isEntityIdentifierMapping, isVirtual
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, findSubPart, forEachSubPart, forEachSubPart, visitSubParts
-
Method Details
-
getJavaType
Description copied from interface:ModelPart
The Java type for this part. Generally equivalent toMappingType.getMappedJavaType()
relative toModelPart.getPartMappingType()
- Specified by:
getJavaType
in interfaceModelPart
-
getPartMappingType
Description copied from interface:ModelPart
The type for this part.- Specified by:
getPartMappingType
in interfaceModelPart
-
getNumberOfAttributeMappings
int getNumberOfAttributeMappings()Get the number of attributes defined on this class and any supers -
getAttributeMapping
Retrieve an attribute by its contributor position -
findAttributeMapping
Find an attribute by name.- Returns:
- The named attribute, or
null
if no match was found
-
getAttributeMappings
AttributeMappingsList getAttributeMappings()Get access to the attributes defined on this class and any supers -
forEachAttributeMapping
Visit attributes defined on this class and any supers -
forEachAttributeMapping
Visit attributes defined on this class and any supers -
getValues
Extract the individual attribute values from the entity instance -
getValue
Extract a specific attribute value from the entity instance, by position -
setValues
Inject the attribute values into the entity instance -
setValue
Inject a specific attribute value into the entity instance, by position -
anyRequiresAggregateColumnWriter
default boolean anyRequiresAggregateColumnWriter() -
hasPartitionedSelectionMapping
default boolean hasPartitionedSelectionMapping()- Specified by:
hasPartitionedSelectionMapping
in interfaceModelPart
-
isAffectedByEnabledFilters
default boolean isAffectedByEnabledFilters(Set<ManagedMappingType> visitedTypes, LoadQueryInfluencers influencers, boolean onlyApplyForLoadByKey)
-