Top Fields Constructors Methods
org.hibernate.metamodel.model.domain.internal

public Class MapAttributeImpl<X, K, V>

extends AbstractPluralAttribute<X, Map<K, V>, V>
implements MapPersistentAttribute<X, K, V>
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.model.domain.MapPersistentAttribute, org.hibernate.metamodel.model.domain.PluralPersistentAttribute, jakarta.persistence.metamodel.PluralAttribute, jakarta.persistence.metamodel.Bindable, jakarta.persistence.metamodel.Attribute, org.hibernate.query.sqm.SqmJoinable, org.hibernate.query.sqm.SqmPathSource, org.hibernate.query.sqm.tree.SqmExpressibleAccessor, org.hibernate.query.sqm.SqmExpressible, org.hibernate.query.BindableType, org.hibernate.metamodel.model.domain.PersistentAttribute, jakarta.persistence.metamodel.MapAttribute
Imports
java.util.Map, org.hibernate.metamodel.internal.MetadataContext, org.hibernate.metamodel.mapping.CollectionPart, org.hibernate.metamodel.model.domain.MapPersistentAttribute, .SimpleDomainType, org.hibernate.metamodel.model.domain.spi.JpaMetamodelImplementor, org.hibernate.query.sqm.SqmPathSource, org.hibernate.query.hql.spi.SqmCreationState, org.hibernate.query.sqm.internal.SqmMappingModelHelper, org.hibernate.query.sqm.tree.SqmJoinType, org.hibernate.query.sqm.tree.domain.SqmMapJoin, org.hibernate.query.sqm.tree.from.SqmAttributeJoin, .SqmFrom

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final SqmPathSource<K>

Constructor Summary

AccessConstructor and Description
public
MapAttributeImpl(PluralAttributeBuilder<X, Map<K, V>, V, K> xceBuilder, MetadataContext metadataContext)

Method Summary

Modifier and TypeMethod and Description
public SqmAttributeJoin<X, V>
createSqmJoin(SqmFrom<?, X> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState)

Implements org.hibernate.query.sqm.SqmJoinable.createSqmJoin.

public SqmPathSource<?>
public SqmPathSource<?>
public PluralAttribute.CollectionType
public SqmPathSource<K>
public SqmPathSource<?>
public SimpleDomainType<K>
public Class<K>
getKeyJavaType()

Implements jakarta.persistence.metamodel.MapAttribute.getKeyJavaType.

Return the Java type of the map key.
public SqmPathSource<K>
public SimpleDomainType<K>
getKeyType()

Implements org.hibernate.metamodel.model.domain.MapPersistentAttribute.getKeyType.

Return the type representing the key type of the map.
Inherited from org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute:
createNavigablePathcreateSqmPathgetBindableJavaTypegetBindableTypegetCollectionClassificationgetElementPathSourcegetElementTypegetExpressibleJavaTypegetJavaTypegetPathNamegetValueGraphTypeisAssociationisCollectionisGeneric

Field Detail

keyPathSourceback to summary
private final SqmPathSource<K> keyPathSource

Constructor Detail

MapAttributeImplback to summary
public MapAttributeImpl(PluralAttributeBuilder<X, Map<K, V>, V, K> xceBuilder, MetadataContext metadataContext)

Method Detail

createSqmJoinback to summary
public SqmAttributeJoin<X, V> createSqmJoin(SqmFrom<?, X> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState)

Implements org.hibernate.query.sqm.SqmJoinable.createSqmJoin.

Annotations
@Override
findSubPathSourceback to summary
public SqmPathSource<?> findSubPathSource(String name)

Overrides org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute.findSubPathSource.

Implements org.hibernate.query.sqm.SqmPathSource.findSubPathSource.

Doc from org.hibernate.query.sqm.SqmPathSource.findSubPathSource.

Find a SqmPathSource by name relative to this source.

Returns:SqmPathSource<?>

null if the subPathSource is not found

Annotations
@Override
findSubPathSourceback to summary
public SqmPathSource<?> findSubPathSource(String name, JpaMetamodelImplementor metamodel)

Overrides org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute.findSubPathSource.

Overrides default org.hibernate.query.sqm.SqmPathSource.findSubPathSource.

Doc from org.hibernate.query.sqm.SqmPathSource.findSubPathSource.

Find a SqmPathSource by name relative to this source.

Returns:SqmPathSource<?>

null if the subPathSource is not found

Annotations
@Override
getCollectionTypeback to summary
public PluralAttribute.CollectionType getCollectionType()

Overrides org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute.getCollectionType.

Implements jakarta.persistence.metamodel.PluralAttribute.getCollectionType.

Doc from jakarta.persistence.metamodel.PluralAttribute.getCollectionType.

Return the collection type.

Returns:PluralAttribute.CollectionType

collection type

Annotations
@Override
getIndexPathSourceback to summary
public SqmPathSource<K> getIndexPathSource()

Overrides default org.hibernate.metamodel.model.domain.PluralPersistentAttribute.getIndexPathSource.

Annotations
@Override
getIntermediatePathSourceback to summary
public SqmPathSource<?> getIntermediatePathSource(SqmPathSource<?> pathSource)

Overrides org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute.getIntermediatePathSource.

Overrides default org.hibernate.query.sqm.SqmPathSource.getIntermediatePathSource.

Doc from org.hibernate.query.sqm.SqmPathSource.getIntermediatePathSource.

Returns the intermediate SqmPathSource for a path source previously acquired via findSubPathSource(String).

Annotations
@Override
getKeyGraphTypeback to summary
public SimpleDomainType<K> getKeyGraphType()

Overrides org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute.getKeyGraphType.

Overrides default org.hibernate.metamodel.model.domain.PluralPersistentAttribute.getKeyGraphType.

Implements org.hibernate.metamodel.model.domain.PersistentAttribute.getKeyGraphType.

Annotations
@Override
getKeyJavaTypeback to summary
public Class<K> getKeyJavaType()

Implements jakarta.persistence.metamodel.MapAttribute.getKeyJavaType.

Doc from jakarta.persistence.metamodel.MapAttribute.getKeyJavaType.

Return the Java type of the map key.

Returns:Class<K>

Java key type

Annotations
@Override
getKeyPathSourceback to summary
public SqmPathSource<K> getKeyPathSource()

Implements org.hibernate.metamodel.model.domain.MapPersistentAttribute.getKeyPathSource.

Annotations
@Override
getKeyTypeback to summary
public SimpleDomainType<K> getKeyType()

Implements org.hibernate.metamodel.model.domain.MapPersistentAttribute.getKeyType.

Doc from jakarta.persistence.metamodel.MapAttribute.getKeyType.

Return the type representing the key type of the map.

Returns:SimpleDomainType<K>

type representing key type

Annotations
@Override