Package org.hibernate.metamodel.mapping
Interface AttributeMapping
-
- All Superinterfaces:
Bindable,DatabaseSnapshotContributor,Fetchable,JavaTypedExpressible,JdbcMappingContainer,MappingModelExpressible,ModelPart,MutabilityPlanExposer,PropertyBasedMapping,ValueMapping
- All Known Subinterfaces:
PluralAttributeMapping,SingularAttributeMapping
- All Known Implementing Classes:
AbstractAttributeMapping,AbstractSingularAttributeMapping,AbstractStateArrayContributorMapping,BasicAttributeMapping,DiscriminatedAssociationAttributeMapping,EmbeddedAttributeMapping,InverseNonAggregatedIdentifierMapping,PluralAttributeMappingImpl,ToOneAttributeMapping,VirtualEmbeddedAttributeMapping
public interface AttributeMapping extends ModelPart, ValueMapping, Fetchable, DatabaseSnapshotContributor, PropertyBasedMapping, MutabilityPlanExposer
Describes an attribute at the mapping model level.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AttributeMappingasAttributeMapping()default EmbeddedAttributeMappingasEmbeddedAttributeMapping()A utility method to avoid casting explicitly to EmbeddedAttributeMappingdefault PluralAttributeMappingasPluralAttributeMapping()A utility method to avoid casting explicitly to PluralAttributeMappingdefault EntityMappingTypefindContainingEntityMapping()AttributeMetadataAccessgetAttributeMetadataAccess()Access to AttributeMetadataStringgetAttributeName()The name of the mapped attributeManagedMappingTypegetDeclaringType()The managed type that declares this attributedefault MutabilityPlan<?>getExposedMutabilityPlan()default StringgetPartName()PropertyAccessgetPropertyAccess()The getter/setter access to this attributeintgetStateArrayPosition()The attribute's position within the container's state arraydefault ObjectgetValue(Object container)Convenient access to getting the value for this attribute from the declarerValueGenerationgetValueGeneration()The value generation strategy to use for this attribute.default booleanisEmbeddedAttributeMapping()default booleanisPluralAttributeMapping()default voidsetValue(Object container, Object value)Convenient access to setting the value for this attribute on the declarer-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, getJdbcMappings, getJdbcTypeCount
-
Methods inherited from interface org.hibernate.sql.results.graph.DatabaseSnapshotContributor
createSnapshotDomainResult
-
Methods inherited from interface org.hibernate.sql.results.graph.Fetchable
generateFetch, getFetchableName, getMappedFetchOptions, incrementFetchDepth, resolveCircularFetch
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, breakDownJdbcValues, createDomainResult, forEachSelectable, forEachSelectable, getJavaType, getNavigableRole, getPartMappingType
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, getMappedType, treatAs
-
-
-
-
Method Detail
-
getAttributeName
String getAttributeName()
The name of the mapped attribute
-
getPartName
default String getPartName()
- Specified by:
getPartNamein interfaceModelPart
-
getStateArrayPosition
int getStateArrayPosition()
The attribute's position within the container's state array
-
getAttributeMetadataAccess
AttributeMetadataAccess getAttributeMetadataAccess()
Access to AttributeMetadata
-
getDeclaringType
ManagedMappingType getDeclaringType()
The managed type that declares this attribute
-
getPropertyAccess
PropertyAccess getPropertyAccess()
The getter/setter access to this attribute- Specified by:
getPropertyAccessin interfacePropertyBasedMapping
-
getValue
default Object getValue(Object container)
Convenient access to getting the value for this attribute from the declarer
-
setValue
default void setValue(Object container, Object value)
Convenient access to setting the value for this attribute on the declarer
-
getValueGeneration
ValueGeneration getValueGeneration()
The value generation strategy to use for this attribute.
-
findContainingEntityMapping
default EntityMappingType findContainingEntityMapping()
- Specified by:
findContainingEntityMappingin interfaceModelPart
-
getExposedMutabilityPlan
default MutabilityPlan<?> getExposedMutabilityPlan()
- Specified by:
getExposedMutabilityPlanin interfaceMutabilityPlanExposer
-
asAttributeMapping
default AttributeMapping asAttributeMapping()
- Specified by:
asAttributeMappingin interfaceFetchable- Specified by:
asAttributeMappingin interfaceModelPart
-
asPluralAttributeMapping
default PluralAttributeMapping asPluralAttributeMapping()
A utility method to avoid casting explicitly to PluralAttributeMapping- Returns:
- PluralAttributeMapping if this is an instance of PluralAttributeMapping otherwise
null
-
isPluralAttributeMapping
default boolean isPluralAttributeMapping()
-
asEmbeddedAttributeMapping
default EmbeddedAttributeMapping asEmbeddedAttributeMapping()
A utility method to avoid casting explicitly to EmbeddedAttributeMapping- Returns:
- EmbeddedAttributeMapping if this is an instance of EmbeddedAttributeMapping otherwise
null
-
isEmbeddedAttributeMapping
default boolean isEmbeddedAttributeMapping()
-
-