Top Fields Constructors Methods
org.hibernate.query.sqm.spi

public Class SqmCreationHelper

extends Object
Class Inheritance
Imports
org.hibernate.metamodel.mapping.CollectionPart, org.hibernate.metamodel.model.domain.PluralPersistentAttribute, org.hibernate.spi.NavigablePath, org.hibernate.query.sqm.tree.domain.SqmPath

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final String
IMPLICIT_ALIAS

This is a special alias that we use for implicit joins within the FROM clause.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NavigablePath
public static NavigablePath
public static NavigablePath
buildSubNavigablePath(SqmPath<?> lhs, String subNavigable, String alias)

public static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

IMPLICIT_ALIASback to summary
public static final String IMPLICIT_ALIAS

This is a special alias that we use for implicit joins within the FROM clause. Passing this alias will cause that we don't generate a unique alias for a path, but instead use a null alias. The effect of this is, that we use the same table group for a query like `... exists ( from alias.intermediate.attribute where alias.intermediate.otherAttribute is not null )` for the path in the FROM clause and the one in the WHERE clause.

Constructor Detail

SqmCreationHelperback to summary
private SqmCreationHelper()

Method Detail

buildRootNavigablePathback to summary
public static NavigablePath buildRootNavigablePath(String base, String alias)
buildSubNavigablePathback to summary
public static NavigablePath buildSubNavigablePath(NavigablePath lhs, String base, String alias)
buildSubNavigablePathback to summary
public static NavigablePath buildSubNavigablePath(SqmPath<?> lhs, String subNavigable, String alias)
determineAliasback to summary
public static String determineAlias(String alias)