Top Description Fields Constructors Methods
org.hibernate.metamodel.model.domain.internal

public Class DiscriminatorSqmPathSource<D>

extends AbstractSqmPathSource<D>
implements ReturnableType<D>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.ReturnableType, org.hibernate.metamodel.model.domain.SimpleDomainType, jakarta.persistence.metamodel.Type, org.hibernate.metamodel.model.domain.DomainType, org.hibernate.query.sqm.SqmExpressible, org.hibernate.query.BindableType
Imports
org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.metamodel.model.domain.DomainType, .EntityDomainType, org.hibernate.query.ReturnableType, org.hibernate.query.sqm.SqmPathSource, org.hibernate.query.sqm.tree.domain.SqmPath

SqmPathSource implementation for entity discriminator
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final EntityDomainType<?>
private final EntityMappingType
Inherited from org.hibernate.metamodel.model.domain.internal.AbstractSqmPathSource:
pathModel

Constructor Summary

AccessConstructor and Description
public
DiscriminatorSqmPathSource(DomainType<D> discriminatorValueType, EntityDomainType<?> entityDomainType, EntityMappingType entityMapping)

Method Summary

Modifier and TypeMethod and Description
public SqmPath<D>
createSqmPath(SqmPath<?> lhs, SqmPathSource<?> intermediatePathSource)

Implements org.hibernate.query.sqm.SqmPathSource.createSqmPath.

Create an SQM path for this source relative to the given left hand side
public SqmPathSource<?>
findSubPathSource(String name)

Implements org.hibernate.query.sqm.SqmPathSource.findSubPathSource.

Find a SqmPathSource by name relative to this source.
public EntityDomainType<?>
public EntityMappingType
public Class<D>
getJavaType()

Implements jakarta.persistence.metamodel.Type.getJavaType.

Return the represented Java type.
public Type.PersistenceType
public DomainType<D>
Inherited from org.hibernate.metamodel.model.domain.internal.AbstractSqmPathSource:
getBindableJavaTypegetBindableTypegetExpressibleJavaTypegetPathNamegetSqmPathType

Field Detail

entityDomainTypeback to summary
private final EntityDomainType<?> entityDomainType
entityMappingback to summary
private final EntityMappingType entityMapping

Constructor Detail

DiscriminatorSqmPathSourceback to summary
public DiscriminatorSqmPathSource(DomainType<D> discriminatorValueType, EntityDomainType<?> entityDomainType, EntityMappingType entityMapping)

Method Detail

createSqmPathback to summary
public SqmPath<D> createSqmPath(SqmPath<?> lhs, SqmPathSource<?> intermediatePathSource)

Implements org.hibernate.query.sqm.SqmPathSource.createSqmPath.

Doc from org.hibernate.query.sqm.SqmPathSource.createSqmPath.

Create an SQM path for this source relative to the given left hand side

Annotations
@Override
findSubPathSourceback to summary
public SqmPathSource<?> findSubPathSource(String name)

Implements org.hibernate.query.sqm.SqmPathSource.findSubPathSource.

Doc from org.hibernate.query.sqm.SqmPathSource.findSubPathSource.

Find a SqmPathSource by name relative to this source.

Returns:SqmPathSource<?>

null if the subPathSource is not found

Annotations
@Override
getEntityDomainTypeback to summary
public EntityDomainType<?> getEntityDomainType()
getEntityMappingback to summary
public EntityMappingType getEntityMapping()
getJavaTypeback to summary
public Class<D> getJavaType()

Implements jakarta.persistence.metamodel.Type.getJavaType.

Doc from jakarta.persistence.metamodel.Type.getJavaType.

Return the represented Java type.

Returns:Class<D>

Java type

Annotations
@Override
getPersistenceTypeback to summary
public Type.PersistenceType getPersistenceType()

Implements jakarta.persistence.metamodel.Type.getPersistenceType.

Doc from jakarta.persistence.metamodel.Type.getPersistenceType.

Return the persistence type.

Returns:Type.PersistenceType

persistence type

Annotations
@Override
getSqmTypeback to summary
public DomainType<D> getSqmType()

Overrides default org.hibernate.metamodel.model.domain.DomainType.getSqmType, org.hibernate.query.sqm.SqmPathSource.getSqmType.

Annotations
@Override