Class MapAttributeImpl<X,K,V>
java.lang.Object
org.hibernate.metamodel.model.domain.internal.AbstractAttribute<D,C,E>
org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute<X,Map<K,V>,V>
org.hibernate.metamodel.model.domain.internal.MapAttributeImpl<X,K,V>
- All Implemented Interfaces:
Attribute<X,,Map<K, V>> Bindable<V>,MapAttribute<X,,K, V> PluralAttribute<X,,Map<K, V>, V> Serializable,MapPersistentAttribute<X,,K, V> PersistentAttribute<X,,Map<K, V>> PluralPersistentAttribute<X,,Map<K, V>, V> BindableType<V>,SqmExpressible<V>,SqmJoinable<X,,V> SqmPathSource<V>,SqmExpressibleAccessor<V>
public class MapAttributeImpl<X,K,V>
extends AbstractPluralAttribute<X,Map<K,V>,V>
implements MapPersistentAttribute<X,K,V>
- Author:
- Steve Ebersole
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Attribute
Attribute.PersistentAttributeTypeNested classes/interfaces inherited from interface jakarta.persistence.metamodel.Bindable
Bindable.BindableTypeNested classes/interfaces inherited from interface jakarta.persistence.metamodel.PluralAttribute
PluralAttribute.CollectionType -
Constructor Summary
ConstructorsConstructorDescriptionMapAttributeImpl(PluralAttributeBuilder<X, Map<K, V>, V, K> xceBuilder, MetadataContext metadataContext) -
Method Summary
Modifier and TypeMethodDescriptioncreateSqmJoin(SqmFrom<?, X> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState) findSubPathSource(String name) Find aSqmPathSourceby name relative to this source.findSubPathSource(String name, JpaMetamodelImplementor metamodel) Find aSqmPathSourceby name relative to this source.Return the collection type.getIntermediatePathSource(SqmPathSource<?> pathSource) Returns the intermediateSqmPathSourcefor a path source previously acquired viaSqmPathSource.findSubPathSource(String).Return the Java type of the map key.Return the type representing the key type of the map.Methods inherited from class org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute
createNavigablePath, createSqmPath, getBindableJavaType, getBindableType, getCollectionClassification, getElementPathSource, getElementType, getExpressibleJavaType, getJavaType, getPathName, getValueGraphType, isAssociation, isCollection, isGenericMethods inherited from class org.hibernate.metamodel.model.domain.internal.AbstractAttribute
getAttributeClassification, getAttributeJavaType, getDeclaringType, getJavaMember, getName, getPersistentAttributeType, getSqmPathType, toString, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.persistence.metamodel.Attribute
getJavaMember, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollectionMethods inherited from interface jakarta.persistence.metamodel.Bindable
getBindableJavaType, getBindableTypeMethods inherited from interface org.hibernate.query.BindableType
getBindableJavaTypeMethods inherited from interface org.hibernate.metamodel.model.domain.PersistentAttribute
getAttributeClassification, getAttributeJavaTypeMethods inherited from interface org.hibernate.metamodel.model.domain.PluralPersistentAttribute
getCollectionClassification, getDeclaringType, getElementPathSource, getElementType, getValueGraphTypeMethods inherited from interface org.hibernate.query.sqm.SqmExpressible
getExpressibleJavaType, getRelationalJavaType, getTypeName, isInstance, resolveExpressibleMethods inherited from interface org.hibernate.query.sqm.tree.SqmExpressibleAccessor
getNodeJavaTypeMethods inherited from interface org.hibernate.query.sqm.SqmJoinable
createNavigablePath, getNameMethods inherited from interface org.hibernate.query.sqm.SqmPathSource
createSqmPath, getExpressible, getPathName, getSqmPathType, getSqmType, getSubPathSource, getSubPathSource, isGeneric
-
Constructor Details
-
MapAttributeImpl
public MapAttributeImpl(PluralAttributeBuilder<X, Map<K, V>, V, K> xceBuilder, MetadataContext metadataContext)
-
-
Method Details
-
getCollectionType
Description copied from interface:PluralAttributeReturn the collection type.- Specified by:
getCollectionTypein interfacePluralAttribute<X,K, V> - Overrides:
getCollectionTypein classAbstractPluralAttribute<X,Map<K, V>, V> - Returns:
- collection type
-
getKeyJavaType
Description copied from interface:MapAttributeReturn the Java type of the map key.- Specified by:
getKeyJavaTypein interfaceMapAttribute<X,K, V> - Returns:
- Java key type
-
getKeyPathSource
- Specified by:
getKeyPathSourcein interfaceMapPersistentAttribute<X,K, V>
-
getIndexPathSource
- Specified by:
getIndexPathSourcein interfacePluralPersistentAttribute<X,K, V>
-
findSubPathSource
Description copied from interface:SqmPathSourceFind aSqmPathSourceby name relative to this source.- Specified by:
findSubPathSourcein interfaceSqmPathSource<X>- Overrides:
findSubPathSourcein classAbstractPluralAttribute<X,Map<K, V>, V> - Returns:
- null if the subPathSource is not found
-
findSubPathSource
Description copied from interface:SqmPathSourceFind aSqmPathSourceby name relative to this source.- Specified by:
findSubPathSourcein interfaceSqmPathSource<X>- Overrides:
findSubPathSourcein classAbstractPluralAttribute<X,Map<K, V>, V> - Returns:
- null if the subPathSource is not found
-
getIntermediatePathSource
Description copied from interface:SqmPathSourceReturns the intermediateSqmPathSourcefor a path source previously acquired viaSqmPathSource.findSubPathSource(String).- Specified by:
getIntermediatePathSourcein interfaceSqmPathSource<X>- Overrides:
getIntermediatePathSourcein classAbstractPluralAttribute<X,Map<K, V>, V>
-
getKeyType
Description copied from interface:MapAttributeReturn the type representing the key type of the map.- Specified by:
getKeyTypein interfaceMapAttribute<X,K, V> - Specified by:
getKeyTypein interfaceMapPersistentAttribute<X,K, V> - Returns:
- type representing key type
-
getKeyGraphType
- Specified by:
getKeyGraphTypein interfacePersistentAttribute<X,K> - Specified by:
getKeyGraphTypein interfacePluralPersistentAttribute<X,K, V> - Overrides:
getKeyGraphTypein classAbstractPluralAttribute<X,Map<K, V>, V>
-
createSqmJoin
public SqmAttributeJoin<X,V> createSqmJoin(SqmFrom<?, X> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState) - Specified by:
createSqmJoinin interfaceSqmJoinable<X,K>
-