Class AbstractPluralAttribute<D,C,E>
java.lang.Object
org.hibernate.metamodel.model.domain.internal.AbstractAttribute<D,C,E>
org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute<D,C,E>
- Type Parameters:
D- The (D)eclaring typeC- TheCollectiontypeE- The type of the Collection's elements
- All Implemented Interfaces:
Attribute<D,,C> Bindable<E>,PluralAttribute<D,,C, E> Serializable,PathSource<E>,PersistentAttribute<D,,C> PluralPersistentAttribute<D,,C, E> SqmExpressible<E>,SqmJoinable<D,,E> SqmPathSource<E>,SqmPersistentAttribute<D,,C> SqmPluralPersistentAttribute<D,,C, E> SqmExpressibleAccessor<E>
- Direct Known Subclasses:
BagAttributeImpl,ListAttributeImpl,MapAttributeImpl,SetAttributeImpl
public abstract class AbstractPluralAttribute<D,C,E>
extends AbstractAttribute<D,C,E>
implements SqmPluralPersistentAttribute<D,C,E>, Serializable
- 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
ConstructorsModifierConstructorDescriptionprotectedAbstractPluralAttribute(PluralAttributeBuilder<D, C, E, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptioncreateNavigablePath(SqmPath<?> parent, String alias) createSqmPath(SqmPath<?> lhs, SqmPathSource<?> intermediatePathSource) Create an SQM path for this source relative to the given left hand sidefindSubPathSource(String name) Find aPathSourceby name relative to this source.findSubPathSource(String name, boolean includeSubtypes) Find aPathSourceby name relative to this source.The Java type descriptor for this expressiblegetIntermediatePathSource(SqmPathSource<?> pathSource) Returns the intermediateSqmPathSourcefor a path source previously acquired viaSqmPathSource.findSubPathSource(String).The name of this thing.booleanbooleanbooleanIndicates if this path source is generically typedMethods inherited from class org.hibernate.metamodel.model.domain.internal.AbstractAttribute
getAttributeClassification, getAttributeJavaType, getDeclaringType, getJavaMember, getName, getPathType, getPersistentAttributeType, 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, getName, getPersistentAttributeTypeMethods inherited from interface org.hibernate.metamodel.model.domain.PersistentAttribute
getAttributeClassification, getAttributeJavaTypeMethods inherited from interface org.hibernate.metamodel.model.domain.PluralPersistentAttribute
getDeclaringType, getIndexPathSourceMethods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, getTypeNameMethods inherited from interface org.hibernate.query.sqm.tree.SqmExpressibleAccessor
getNodeJavaTypeMethods inherited from interface org.hibernate.query.sqm.SqmJoinable
createSqmJoin, getNameMethods inherited from interface org.hibernate.query.sqm.SqmPathSource
getExpressible, getPathType, getSqmType, getSubPathSource, getSubPathSource
-
Constructor Details
-
AbstractPluralAttribute
-
-
Method Details
-
getPathName
Description copied from interface:PathSourceThe name of this thing.- Specified by:
getPathNamein interfacePathSource<D>
-
getCollectionClassification
- Specified by:
getCollectionClassificationin interfacePluralPersistentAttribute<D,C, E>
-
getElementPathSource
- Specified by:
getElementPathSourcein interfacePluralPersistentAttribute<D,C, E> - Specified by:
getElementPathSourcein interfaceSqmPluralPersistentAttribute<D,C, E>
-
findSubPathSource
Description copied from interface:PathSourceFind aPathSourceby name relative to this source.- Specified by:
findSubPathSourcein interfacePathSource<D>- Specified by:
findSubPathSourcein interfaceSqmPathSource<D>- Parameters:
name- the name of the path source to find- Returns:
- null if the subPathSource is not found
-
findSubPathSource
Description copied from interface:PathSourceFind aPathSourceby name relative to this source. IfincludeSubtypesis set totrueand this path source is polymorphic, also try finding subtype attributes.- Specified by:
findSubPathSourcein interfacePathSource<D>- Specified by:
findSubPathSourcein interfaceSqmPathSource<D>- Parameters:
name- the name of the path source to findincludeSubtypes- flag indicating whether to consider subtype attributes- 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<D>
-
getCollectionType
- Specified by:
getCollectionTypein interfacePluralAttribute<D,C, E>
-
getExpressibleJavaType
Description copied from interface:SqmExpressibleThe Java type descriptor for this expressible- Specified by:
getExpressibleJavaTypein interfaceSqmExpressible<D>
-
getElementType
- Specified by:
getElementTypein interfacePluralAttribute<D,C, E> - Specified by:
getElementTypein interfacePluralPersistentAttribute<D,C, E>
-
getJavaType
- Specified by:
getJavaTypein interfaceAttribute<D,C> - Overrides:
getJavaTypein classAbstractAttribute<D,C, E>
-
getValueGraphType
- Specified by:
getValueGraphTypein interfacePersistentAttribute<D,C> - Specified by:
getValueGraphTypein interfacePluralPersistentAttribute<D,C, E> - Overrides:
getValueGraphTypein classAbstractAttribute<D,C, E>
-
getKeyGraphType
- Specified by:
getKeyGraphTypein interfacePersistentAttribute<D,C> - Specified by:
getKeyGraphTypein interfacePluralPersistentAttribute<D,C, E>
-
isAssociation
public boolean isAssociation()- Specified by:
isAssociationin interfaceAttribute<D,C>
-
isCollection
public boolean isCollection()- Specified by:
isCollectionin interfaceAttribute<D,C>
-
getBindableType
- Specified by:
getBindableTypein interfaceBindable<D>
-
getBindableJavaType
- Specified by:
getBindableJavaTypein interfaceBindable<D>
-
createSqmPath
Description copied from interface:SqmPathSourceCreate an SQM path for this source relative to the given left hand side- Specified by:
createSqmPathin interfaceSqmPathSource<D>
-
isGeneric
public boolean isGeneric()Description copied from interface:SqmPathSourceIndicates if this path source is generically typed- Specified by:
isGenericin interfaceSqmPathSource<D>
-