Package org.hibernate.metamodel.mapping
Interface ManagedMappingType
-
- All Superinterfaces:
Bindable,FetchableContainer,JdbcMappingContainer,MappingModelExpressible,MappingType,ModelPart,ModelPartContainer
- All Known Subinterfaces:
DeprecatedEntityStuff,EmbeddableMappingType,EntityMappingType,EntityPersister,Loadable,Lockable,NonAggregatedIdentifierMapping.IdentifierValueMapper,OuterJoinLoadable,PostInsertIdentityPersister,Queryable,SQLLoadable,UniqueKeyLoadable
- All Known Implementing Classes:
AbstractEntityPersister,AnonymousTupleEmbeddableValuedModelPart,AnonymousTupleEmbeddedEntityIdentifierMapping,AnonymousTupleEntityValuedModelPart,AnonymousTupleNonAggregatedEntityIdentifierMapping,JoinedSubclassEntityPersister,SingleTableEntityPersister,UnionSubclassEntityPersister
public interface ManagedMappingType extends MappingType, FetchableContainer
Mapping-model corollary toManagedType
-
-
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 AttributeMappingfindAttributeMapping(String name)Find an attribute by name.voidforEachAttributeMapping(Consumer<? super AttributeMapping> action)Visit attributes defined on this class and any supersdefault voidforEachAttributeMapping(org.hibernate.internal.util.IndexedConsumer<? super AttributeMapping> consumer)Visit attributes defined on this class and any supersAttributeMappinggetAttributeMapping(int position)Retrieve an attribute by its contributor positionAttributeMappingsListgetAttributeMappings()Get access to the attributes defined on this class and any supersdefault JavaType<?>getJavaType()The Java type for this part.intgetNumberOfAttributeMappings()Get the number of attributes defined on this class and any supersdefault MappingTypegetPartMappingType()The type for this part.default ObjectgetValue(Object instance, int position)Extract a specific attribute value from the entity instance, by positionObject[]getValues(Object instance)Extract the individual attribute values from the entity instancedefault booleanhasPartitionedSelectionMapping()default booleanisAffectedByEnabledFilters(Set<ManagedMappingType> visitedTypes, LoadQueryInfluencers influencers, boolean onlyApplyForLoadByKey)default voidsetValue(Object instance, int position, Object value)Inject a specific attribute value into the entity instance, by positionvoidsetValues(Object instance, Object[] resolvedValues)Inject the attribute values into the entity instance-
Methods 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 Detail
-
getJavaType
default JavaType<?> getJavaType()
Description copied from interface:ModelPartThe Java type for this part. Generally equivalent toMappingType.getMappedJavaType()relative toModelPart.getPartMappingType()- Specified by:
getJavaTypein interfaceModelPart
-
getPartMappingType
default MappingType getPartMappingType()
Description copied from interface:ModelPartThe type for this part.- Specified by:
getPartMappingTypein interfaceModelPart
-
getNumberOfAttributeMappings
int getNumberOfAttributeMappings()
Get the number of attributes defined on this class and any supers
-
getAttributeMapping
AttributeMapping getAttributeMapping(int position)
Retrieve an attribute by its contributor position
-
findAttributeMapping
default AttributeMapping findAttributeMapping(String name)
Find an attribute by name.- Returns:
- The named attribute, or
nullif no match was found
-
getAttributeMappings
AttributeMappingsList getAttributeMappings()
Get access to the attributes defined on this class and any supers
-
forEachAttributeMapping
void forEachAttributeMapping(Consumer<? super AttributeMapping> action)
Visit attributes defined on this class and any supers
-
forEachAttributeMapping
default void forEachAttributeMapping(org.hibernate.internal.util.IndexedConsumer<? super AttributeMapping> consumer)
Visit attributes defined on this class and any supers
-
getValues
Object[] getValues(Object instance)
Extract the individual attribute values from the entity instance
-
getValue
default Object getValue(Object instance, int position)
Extract a specific attribute value from the entity instance, by position
-
setValues
void setValues(Object instance, Object[] resolvedValues)
Inject the attribute values into the entity instance
-
setValue
default void setValue(Object instance, int position, Object value)
Inject a specific attribute value into the entity instance, by position
-
anyRequiresAggregateColumnWriter
default boolean anyRequiresAggregateColumnWriter()
-
hasPartitionedSelectionMapping
default boolean hasPartitionedSelectionMapping()
- Specified by:
hasPartitionedSelectionMappingin interfaceModelPart
-
isAffectedByEnabledFilters
default boolean isAffectedByEnabledFilters(Set<ManagedMappingType> visitedTypes, LoadQueryInfluencers influencers, boolean onlyApplyForLoadByKey)
-
-