Interface AttributeMapping
- All Superinterfaces:
Bindable, DatabaseSnapshotContributor, Fetchable, JavaTypedExpressible, JdbcMappingContainer, MappingModelExpressible, ModelPart, MutabilityPlanExposer, OwnedValuedModelPart, PropertyBasedMapping, SelectableMappings, ValuedModelPart, ValueMapping
- All Known Subinterfaces:
AggregatedIdentifierMapping, BasicEntityIdentifierMapping, PluralAttributeMapping, SingleAttributeIdentifierMapping, SingularAttributeMapping
public interface AttributeMapping
extends OwnedValuedModelPart, Fetchable, DatabaseSnapshotContributor, PropertyBasedMapping, MutabilityPlanExposer
Describes an attribute at the mapping model level.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer Nested classes/interfaces inherited from interface ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer -
Method Summary
Modifier and TypeMethodDescriptiondefault AttributeMappingdefault org.hibernate.metamodel.mapping.internal.EmbeddedAttributeMappingA utility method to avoid casting explicitly to EmbeddedAttributeMappingdefault PluralAttributeMappingA utility method to avoid casting explicitly to PluralAttributeMappingdefault intCompare attribute values, treatingnullas less than every non-null value.default EntityMappingTypeAccess to AttributeMetadata, ornullfor a synthetic attribute without metadata.The name of the mapped attribute, ornullfor an unnamed synthetic attribute.The managed type that declares this attribute, ornullfor a synthetic attribute.default MutabilityPlan<?> The value generation strategy to use for this attribute.default StringThe local part name, which is generally the unqualified role nameThe getter/setter access to this attribute, ornullif it has no Java property.intThe attribute's position within the container's state arraydefault ObjectConvenient access to getting the value for this attribute from the declarerdefault booleandefault booleandefault voidConvenient access to setting the value for this attribute on the declarerMethods inherited from interface Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface DatabaseSnapshotContributor
createSnapshotDomainResultMethods inherited from interface Fetchable
generateFetch, getFetchableKey, getFetchableName, getMappedFetchOptions, incrementFetchDepth, isSelectable, resolveCircularFetchMethods inherited from interface JavaTypedExpressible
addToCacheKeyMethods inherited from interface JdbcMappingContainer
forEachJdbcType, getJdbcMappingMethods inherited from interface ModelPart
applySqlSelections, applySqlSelections, areEqual, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, getJavaType, getNavigableRole, getPartMappingType, hasPartitionedSelectionMapping, isEntityIdentifierMapping, isVirtualMethods inherited from interface SelectableMappings
getSelectableMethods inherited from interface ValuedModelPart
forEachColumn, forEachInsertable, forEachNonFormula, forEachSelectable, forEachSelectable, forEachUpdatable, getContainingTableExpression, getJdbcTypeCount, getSingleJdbcMappingMethods inherited from interface ValueMapping
getExpressibleJavaType, getMappedType, treatAs
-
Method Details
-
getAttributeName
-
getPartName
Description copied from interface:ModelPartThe local part name, which is generally the unqualified role name- Specified by:
getPartNamein interfaceModelPart
-
getStateArrayPosition
int getStateArrayPosition()The attribute's position within the container's state array -
getAttributeMetadata
Access to AttributeMetadata, ornullfor a synthetic attribute without metadata. -
getDeclaringType
The managed type that declares this attribute, ornullfor a synthetic attribute.- Specified by:
getDeclaringTypein interfaceOwnedValuedModelPart
-
getPropertyAccess
The getter/setter access to this attribute, ornullif it has no Java property.- Specified by:
getPropertyAccessin interfacePropertyBasedMapping
-
getValue
-
setValue
-
getGenerator
-
findContainingEntityMapping
- Specified by:
findContainingEntityMappingin interfaceModelPart
-
getExposedMutabilityPlan
- Specified by:
getExposedMutabilityPlanin interfaceMutabilityPlanExposer
-
compare
-
asAttributeMapping
- Specified by:
asAttributeMappingin interfaceModelPart
-
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
-
isEmbeddedAttributeMapping
default boolean isEmbeddedAttributeMapping()
-