Package org.hibernate.metamodel.mapping
Interface AttributeMapping
-
- All Superinterfaces:
Bindable
,DatabaseSnapshotContributor
,Fetchable
,JavaTypedExpressible
,JdbcMappingContainer
,MappingModelExpressible
,ModelPart
,MutabilityPlanExposer
,PropertyBasedMapping
,SelectableMappings
,ValuedModelPart
,ValueMapping
- All Known Subinterfaces:
PluralAttributeMapping
,SingularAttributeMapping
- All Known Implementing Classes:
AbstractAttributeMapping
,AbstractSingularAttributeMapping
,AbstractStateArrayContributorMapping
,BasicAttributeMapping
,DiscriminatedAssociationAttributeMapping
,EmbeddedAttributeMapping
,InverseNonAggregatedIdentifierMapping
,PluralAttributeMappingImpl
,ToOneAttributeMapping
,VirtualEmbeddedAttributeMapping
public interface AttributeMapping extends ValuedModelPart, 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.IndexedJdbcValueConsumer, ModelPart.JdbcValueConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AttributeMapping
asAttributeMapping()
default int
compare(Object value1, Object value2)
default EntityMappingType
findContainingEntityMapping()
AttributeMetadata
getAttributeMetadata()
Access to AttributeMetadataString
getAttributeName()
The name of the mapped attributeManagedMappingType
getDeclaringType()
The managed type that declares this attributedefault MutabilityPlan<?>
getExposedMutabilityPlan()
Generator
getGenerator()
The value generation strategy to use for this attribute.default String
getPartName()
The local part name, which is generally the unqualified role namePropertyAccess
getPropertyAccess()
The getter/setter access to this attributeint
getStateArrayPosition()
The attribute's position within the container's state arraydefault Object
getValue(Object container)
Convenient access to getting the value for this attribute from the declarerdefault void
setValue(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
-
Methods inherited from interface org.hibernate.sql.results.graph.DatabaseSnapshotContributor
createSnapshotDomainResult
-
Methods inherited from interface org.hibernate.sql.results.graph.Fetchable
generateFetch, getFetchableKey, 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, decompose, getJavaType, getNavigableRole, getPartMappingType, hasPartitionedSelectionMapping, isVirtual
-
Methods inherited from interface org.hibernate.metamodel.mapping.SelectableMappings
getSelectable
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachInsertable, forEachSelectable, forEachSelectable, forEachUpdatable, getContainingTableExpression, getJdbcMappings, getJdbcTypeCount
-
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()
Description copied from interface:ModelPart
The local part name, which is generally the unqualified role name- Specified by:
getPartName
in interfaceModelPart
-
getStateArrayPosition
int getStateArrayPosition()
The attribute's position within the container's state array
-
getAttributeMetadata
AttributeMetadata getAttributeMetadata()
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:
getPropertyAccess
in 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
-
getGenerator
Generator getGenerator()
The value generation strategy to use for this attribute.
-
findContainingEntityMapping
default EntityMappingType findContainingEntityMapping()
- Specified by:
findContainingEntityMapping
in interfaceModelPart
-
getExposedMutabilityPlan
default MutabilityPlan<?> getExposedMutabilityPlan()
- Specified by:
getExposedMutabilityPlan
in interfaceMutabilityPlanExposer
-
asAttributeMapping
default AttributeMapping asAttributeMapping()
- Specified by:
asAttributeMapping
in interfaceFetchable
- Specified by:
asAttributeMapping
in interfaceModelPart
-
-