Class ListAttributeImpl<X,E>
- java.lang.Object
-
- org.hibernate.metamodel.model.domain.internal.AbstractAttribute<D,C,E>
-
- org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute<X,List<E>,E>
-
- org.hibernate.metamodel.model.domain.internal.ListAttributeImpl<X,E>
-
- All Implemented Interfaces:
Attribute<X,List<E>>
,Bindable<E>
,ListAttribute<X,E>
,PluralAttribute<X,List<E>,E>
,Serializable
,ListPersistentAttribute<X,E>
,PersistentAttribute<X,List<E>>
,PluralPersistentAttribute<X,List<E>,E>
,BindableType<E>
,SqmExpressible<E>
,SqmJoinable<X,E>
,SqmPathSource<E>
,SqmExpressibleAccessor<E>
public class ListAttributeImpl<X,E> extends AbstractPluralAttribute<X,List<E>,E> implements ListPersistentAttribute<X,E>
- 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 ListAttributeImpl(PluralAttributeBuilder<X,List<E>,E,?> builder, MetadataContext metadataContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqmAttributeJoin<X,E>
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<Integer>
getIndexPathSource()
SqmPathSource<?>
getIntermediatePathSource(SqmPathSource<?> pathSource)
Returns the intermediateSqmPathSource
for a path source previously acquired viaSqmPathSource.findSubPathSource(String)
.-
Methods inherited from class org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute
createNavigablePath, createSqmPath, getBindableJavaType, getBindableType, getCollectionClassification, getElementPathSource, getElementType, getExpressibleJavaType, getJavaType, getKeyGraphType, 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, getKeyGraphType, 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
-
ListAttributeImpl
public ListAttributeImpl(PluralAttributeBuilder<X,List<E>,E,?> builder, MetadataContext metadataContext)
-
-
Method Detail
-
getCollectionType
public PluralAttribute.CollectionType getCollectionType()
- Specified by:
getCollectionType
in interfacePluralAttribute<X,List<E>,E>
- Overrides:
getCollectionType
in classAbstractPluralAttribute<X,List<E>,E>
-
getIndexPathSource
public SqmPathSource<Integer> getIndexPathSource()
- Specified by:
getIndexPathSource
in interfaceListPersistentAttribute<X,E>
- Specified by:
getIndexPathSource
in interfacePluralPersistentAttribute<X,List<E>,E>
-
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,List<E>,E>
- 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,List<E>,E>
- 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,List<E>,E>
-
createSqmJoin
public SqmAttributeJoin<X,E> createSqmJoin(SqmFrom<?,X> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState)
- Specified by:
createSqmJoin
in interfaceSqmJoinable<X,E>
-
-