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>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Attribute
Attribute.PersistentAttributeType
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Bindable
Bindable.BindableType
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.PluralAttribute
PluralAttribute.CollectionType
-
-
Constructor Summary
Constructors Constructor Description MapAttributeImpl(PluralAttributeBuilder<X,Map<K,V>,V,K> xceBuilder, MetadataContext metadataContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqmAttributeJoin<X,V>
createSqmJoin(SqmFrom<?,X> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState)
SqmPathSource<?>
findSubPathSource(String name)
Find aSqmPathSource
by name relative to this source.SqmPathSource<?>
findSubPathSource(String name, JpaMetamodelImplementor metamodel)
Find aSqmPathSource
by name relative to this source.PluralAttribute.CollectionType
getCollectionType()
SqmPathSource<K>
getIndexPathSource()
SqmPathSource<?>
getIntermediatePathSource(SqmPathSource<?> pathSource)
Returns the intermediateSqmPathSource
for a path source previously acquired viaSqmPathSource.findSubPathSource(String)
.SimpleDomainType<K>
getKeyGraphType()
Class<K>
getKeyJavaType()
SqmPathSource<K>
getKeyPathSource()
SimpleDomainType<K>
getKeyType()
-
Methods inherited from class org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute
createNavigablePath, createSqmPath, getBindableJavaType, getBindableType, getCollectionClassification, getElementPathSource, getElementType, getExpressibleJavaType, getJavaType, getPathName, getValueGraphType, isAssociation, isCollection, isGeneric
-
Methods inherited from class org.hibernate.metamodel.model.domain.internal.AbstractAttribute
getAttributeClassification, getAttributeJavaType, getDeclaringType, getJavaMember, getName, getPersistentAttributeType, getSqmPathType, toString, writeReplace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.persistence.metamodel.Attribute
getJavaMember, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollection
-
Methods inherited from interface jakarta.persistence.metamodel.Bindable
getBindableJavaType, getBindableType
-
Methods inherited from interface org.hibernate.query.BindableType
getBindableJavaType
-
Methods inherited from interface org.hibernate.metamodel.model.domain.PersistentAttribute
getAttributeClassification, getAttributeJavaType
-
Methods inherited from interface org.hibernate.metamodel.model.domain.PluralPersistentAttribute
getCollectionClassification, getDeclaringType, getElementPathSource, getElementType, getValueGraphType
-
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getExpressibleJavaType, getRelationalJavaType, getTypeName, isInstance, resolveExpressible
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmExpressibleAccessor
getNodeJavaType
-
Methods inherited from interface org.hibernate.query.sqm.SqmJoinable
createNavigablePath, getName
-
Methods inherited from interface org.hibernate.query.sqm.SqmPathSource
createSqmPath, getExpressible, getPathName, getSqmPathType, getSqmType, getSubPathSource, getSubPathSource, isGeneric
-
-
-
-
Constructor Detail
-
MapAttributeImpl
public MapAttributeImpl(PluralAttributeBuilder<X,Map<K,V>,V,K> xceBuilder, MetadataContext metadataContext)
-
-
Method Detail
-
getCollectionType
public PluralAttribute.CollectionType getCollectionType()
- Specified by:
getCollectionType
in interfacePluralAttribute<X,K,V>
- Overrides:
getCollectionType
in classAbstractPluralAttribute<X,Map<K,V>,V>
-
getKeyJavaType
public Class<K> getKeyJavaType()
- Specified by:
getKeyJavaType
in interfaceMapAttribute<X,K,V>
-
getKeyPathSource
public SqmPathSource<K> getKeyPathSource()
- Specified by:
getKeyPathSource
in interfaceMapPersistentAttribute<X,K,V>
-
getIndexPathSource
public SqmPathSource<K> getIndexPathSource()
- Specified by:
getIndexPathSource
in interfacePluralPersistentAttribute<X,K,V>
-
findSubPathSource
public SqmPathSource<?> findSubPathSource(String name)
Description copied from interface:SqmPathSource
Find aSqmPathSource
by name relative to this source.- Specified by:
findSubPathSource
in interfaceSqmPathSource<X>
- Overrides:
findSubPathSource
in classAbstractPluralAttribute<X,Map<K,V>,V>
- Returns:
- null if the subPathSource is not found
-
findSubPathSource
public SqmPathSource<?> findSubPathSource(String name, JpaMetamodelImplementor metamodel)
Description copied from interface:SqmPathSource
Find aSqmPathSource
by name relative to this source.- Specified by:
findSubPathSource
in interfaceSqmPathSource<X>
- Overrides:
findSubPathSource
in classAbstractPluralAttribute<X,Map<K,V>,V>
- Returns:
- null if the subPathSource is not found
-
getIntermediatePathSource
public SqmPathSource<?> getIntermediatePathSource(SqmPathSource<?> pathSource)
Description copied from interface:SqmPathSource
Returns the intermediateSqmPathSource
for a path source previously acquired viaSqmPathSource.findSubPathSource(String)
.- Specified by:
getIntermediatePathSource
in interfaceSqmPathSource<X>
- Overrides:
getIntermediatePathSource
in classAbstractPluralAttribute<X,Map<K,V>,V>
-
getKeyType
public SimpleDomainType<K> getKeyType()
- Specified by:
getKeyType
in interfaceMapAttribute<X,K,V>
- Specified by:
getKeyType
in interfaceMapPersistentAttribute<X,K,V>
-
getKeyGraphType
public SimpleDomainType<K> getKeyGraphType()
- Specified by:
getKeyGraphType
in interfacePersistentAttribute<X,K>
- Specified by:
getKeyGraphType
in interfacePluralPersistentAttribute<X,K,V>
- Overrides:
getKeyGraphType
in 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:
createSqmJoin
in interfaceSqmJoinable<X,K>
-
-