Class EntitySqmPathSource<J>
java.lang.Object
org.hibernate.metamodel.model.domain.internal.AbstractSqmPathSource<J>
org.hibernate.metamodel.model.domain.internal.EntitySqmPathSource<J>
- All Implemented Interfaces:
Bindable<J>,PathSource<J>,SqmExpressible<J>,SqmJoinable<Object,,J> SqmPathSource<J>,SqmExpressibleAccessor<J>
public class EntitySqmPathSource<J>
extends AbstractSqmPathSource<J>
implements SqmJoinable<Object,J>
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Bindable
Bindable.BindableType -
Field Summary
Fields inherited from class org.hibernate.metamodel.model.domain.internal.AbstractSqmPathSource
pathModel -
Constructor Summary
ConstructorsConstructorDescriptionEntitySqmPathSource(String localPathName, SqmPathSource<J> pathModel, SqmEntityDomainType<J> domainType, Bindable.BindableType jpaBindableType, boolean isGeneric) -
Method Summary
Modifier and TypeMethodDescriptioncreateSqmJoin(SqmFrom<?, Object> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState) createSqmPath(SqmPath<?> lhs, SqmPathSource<?> intermediatePathSource) Create an SQM path for this source relative to the given left hand sidefindSubPathSource(String name) Find aSqmPathSourceby name relative to this source.findSubPathSource(String name, boolean includeSubtypes) Find aSqmPathSourceby name relative to this source.getName()The type of path this source creates.booleanIndicates if this path source is generically typedMethods inherited from class org.hibernate.metamodel.model.domain.internal.AbstractSqmPathSource
getBindableJavaType, getBindableType, getExpressibleJavaType, getPathNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
createNavigablePathMethods inherited from interface org.hibernate.query.sqm.SqmPathSource
getExpressible, getIntermediatePathSource, getSqmType, getSubPathSource, getSubPathSource
-
Constructor Details
-
EntitySqmPathSource
public EntitySqmPathSource(String localPathName, SqmPathSource<J> pathModel, SqmEntityDomainType<J> domainType, Bindable.BindableType jpaBindableType, boolean isGeneric)
-
-
Method Details
-
getPathType
Description copied from interface:SqmPathSourceThe type of path this source creates.- Specified by:
getPathTypein interfacePathSource<J>- Specified by:
getPathTypein interfaceSqmPathSource<J>- Overrides:
getPathTypein classAbstractSqmPathSource<J>
-
findSubPathSource
Description copied from interface:SqmPathSourceFind aSqmPathSourceby name relative to this source.- Specified by:
findSubPathSourcein interfacePathSource<J>- Specified by:
findSubPathSourcein interfaceSqmPathSource<J>- Parameters:
name- the name of the path source to find- Returns:
- null if the subPathSource is not found
-
findSubPathSource
Description copied from interface:SqmPathSourceFind aSqmPathSourceby name relative to this source. IfincludeSubtypesis set totrueand this path source is polymorphic, also try finding subtype attributes.- Specified by:
findSubPathSourcein interfacePathSource<J>- Specified by:
findSubPathSourcein interfaceSqmPathSource<J>- 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
-
isGeneric
public boolean isGeneric()Description copied from interface:SqmPathSourceIndicates if this path source is generically typed- Specified by:
isGenericin interfaceSqmPathSource<J>
-
createSqmPath
Description copied from interface:SqmPathSourceCreate an SQM path for this source relative to the given left hand side- Specified by:
createSqmPathin interfaceSqmPathSource<J>
-
createSqmJoin
public SqmPluralPartJoin<Object,J> createSqmJoin(SqmFrom<?, Object> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState) - Specified by:
createSqmJoinin interfaceSqmJoinable<Object,J>
-
getName
- Specified by:
getNamein interfaceSqmJoinable<Object,J>
-