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 aSqmPathSourceby name relative to this source.SqmPathSource<?>findSubPathSource(String name, JpaMetamodelImplementor metamodel)Find aSqmPathSourceby name relative to this source.PluralAttribute.CollectionTypegetCollectionType()SqmPathSource<K>getIndexPathSource()SqmPathSource<?>getIntermediatePathSource(SqmPathSource<?> pathSource)Returns the intermediateSqmPathSourcefor 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:
getCollectionTypein interfacePluralAttribute<X,K,V>- Overrides:
getCollectionTypein classAbstractPluralAttribute<X,Map<K,V>,V>
-
getKeyJavaType
public Class<K> getKeyJavaType()
- Specified by:
getKeyJavaTypein interfaceMapAttribute<X,K,V>
-
getKeyPathSource
public SqmPathSource<K> getKeyPathSource()
- Specified by:
getKeyPathSourcein interfaceMapPersistentAttribute<X,K,V>
-
getIndexPathSource
public SqmPathSource<K> getIndexPathSource()
- Specified by:
getIndexPathSourcein interfacePluralPersistentAttribute<X,K,V>
-
findSubPathSource
public SqmPathSource<?> findSubPathSource(String name)
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
public SqmPathSource<?> findSubPathSource(String name, JpaMetamodelImplementor metamodel)
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
public SqmPathSource<?> getIntermediatePathSource(SqmPathSource<?> pathSource)
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
public SimpleDomainType<K> getKeyType()
- Specified by:
getKeyTypein interfaceMapAttribute<X,K,V>- Specified by:
getKeyTypein interfaceMapPersistentAttribute<X,K,V>
-
getKeyGraphType
public SimpleDomainType<K> 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>
-
-