Package org.hibernate.query.sqm.spi
Class SqmCreationHelper
- java.lang.Object
-
- org.hibernate.query.sqm.spi.SqmCreationHelper
-
public class SqmCreationHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
IMPLICIT_ALIAS
This is a special alias that we use for implicit joins within the FROM clause.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
acquireUniqueAlias()
static NavigablePath
buildRootNavigablePath(String base, String alias)
static NavigablePath
buildSubNavigablePath(SqmPath<?> lhs, String subNavigable, String alias)
static NavigablePath
buildSubNavigablePath(NavigablePath lhs, String base, String alias)
static String
determineAlias(String alias)
-
-
-
Field Detail
-
IMPLICIT_ALIAS
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 anull
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.- See Also:
- Constant Field Values
-
-
Method Detail
-
buildRootNavigablePath
public static NavigablePath buildRootNavigablePath(String base, String alias)
-
buildSubNavigablePath
public static NavigablePath buildSubNavigablePath(NavigablePath lhs, String base, String alias)
-
acquireUniqueAlias
public static String acquireUniqueAlias()
-
buildSubNavigablePath
public static NavigablePath buildSubNavigablePath(SqmPath<?> lhs, String subNavigable, String alias)
-
-