Top Fields Constructors Methods
org.hibernate.metamodel.mapping.internal

public abstract Class AbstractAttributeMapping

extends Object
implements AttributeMapping
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.mapping.AttributeMapping, org.hibernate.type.descriptor.java.MutabilityPlanExposer, org.hibernate.metamodel.mapping.PropertyBasedMapping, org.hibernate.sql.results.graph.DatabaseSnapshotContributor, org.hibernate.sql.results.graph.Fetchable, org.hibernate.metamodel.mapping.ModelPart, org.hibernate.metamodel.mapping.MappingModelExpressible, org.hibernate.metamodel.mapping.Bindable, org.hibernate.metamodel.mapping.JdbcMappingContainer, org.hibernate.metamodel.mapping.OwnedValuedModelPart, org.hibernate.metamodel.mapping.ValuedModelPart, org.hibernate.metamodel.mapping.SelectableMappings, org.hibernate.metamodel.mapping.ValueMapping, org.hibernate.type.descriptor.java.JavaTypedExpressible
Known Direct Subclasses
org.hibernate.metamodel.mapping.internal.AbstractStateArrayContributorMapping, org.hibernate.metamodel.mapping.internal.PluralAttributeMappingImpl
Imports
org.hibernate.metamodel.mapping.AttributeMapping, .ForeignKeyDescriptor, .ManagedMappingType, .MappingType, org.hibernate.type.descriptor.java.JavaType

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final ManagedMappingType
private final int
private final String

Constructor Summary

AccessConstructor and Description
public
AbstractAttributeMapping(String name, int fetchableIndex, ManagedMappingType declaringType)

protected
AbstractAttributeMapping(AbstractAttributeMapping original)

For Hibernate Reactive

Method Summary

Modifier and TypeMethod and Description
public String
public ManagedMappingType
getDeclaringType()

Implements org.hibernate.metamodel.mapping.AttributeMapping.getDeclaringType.

The managed type that declares this attribute
public int
public JavaType<?>
getJavaType()

Implements org.hibernate.metamodel.mapping.ModelPart.getJavaType.

The Java type for this part.
public MappingType
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

declaringTypeback to summary
private final ManagedMappingType declaringType
fetchableIndexback to summary
private final int fetchableIndex
nameback to summary
private final String name

Constructor Detail

AbstractAttributeMappingback to summary
public AbstractAttributeMapping(String name, int fetchableIndex, ManagedMappingType declaringType)
AbstractAttributeMappingback to summary
protected AbstractAttributeMapping(AbstractAttributeMapping original)

For Hibernate Reactive

Method Detail

getAttributeNameback to summary
public String getAttributeName()

Implements org.hibernate.metamodel.mapping.AttributeMapping.getAttributeName.

Doc from org.hibernate.metamodel.mapping.AttributeMapping.getAttributeName.

The name of the mapped attribute

Annotations
@Override
getDeclaringTypeback to summary
public ManagedMappingType getDeclaringType()

Implements org.hibernate.metamodel.mapping.AttributeMapping.getDeclaringType.

Doc from org.hibernate.metamodel.mapping.AttributeMapping.getDeclaringType.

The managed type that declares this attribute

Annotations
@Override
getFetchableKeyback to summary
public int getFetchableKey()

Implements org.hibernate.sql.results.graph.Fetchable.getFetchableKey.

Doc from org.hibernate.sql.results.graph.Fetchable.getFetchableKey.

The key that identifies this Fetchable within a FetchableContainer. If this Fetchable is part of FetchableContainer#visitFetchables(IndexedConsumer, EntityMappingType), the values is guaranteed to be between 0 (inclusive) and FetchableContainer#getNumberOfFetchableKeys() (exclusive). Other Fetchable objects may have a special negative value.

The main intent of this key is to index e.g. Fetch objects in an array.

Annotations
@Override
getJavaTypeback to summary
public JavaType<?> getJavaType()

Implements org.hibernate.metamodel.mapping.ModelPart.getJavaType.

Doc from org.hibernate.metamodel.mapping.ModelPart.getJavaType.

The Java type for this part. Generally equivalent to MappingType#getMappedJavaType() relative to getPartMappingType()

Annotations
@Override
getPartMappingTypeback to summary
public MappingType getPartMappingType()

Implements org.hibernate.metamodel.mapping.ModelPart.getPartMappingType.

Doc from org.hibernate.metamodel.mapping.ModelPart.getPartMappingType.

The type for this part.

Annotations
@Override
setForeignKeyDescriptorback to summary
pack-priv void setForeignKeyDescriptor(ForeignKeyDescriptor foreignKeyDescriptor)