Package org.hibernate.query.sqm.spi
Class SqmCreationHelper
java.lang.Object
org.hibernate.query.sqm.spi.SqmCreationHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis is a special alias that we use for implicit joins within the FROM clause. -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic NavigablePathbuildRootNavigablePath(String base, String alias) static NavigablePathbuildSubNavigablePath(SqmPath<?> lhs, String subNavigable, String alias) static NavigablePathbuildSubNavigablePath(NavigablePath lhs, String base, String alias) static SqmPredicatecombinePredicates(SqmPredicate baseRestriction, Predicate... incomingRestrictions) static SqmPredicatecombinePredicates(SqmPredicate baseRestriction, List<SqmPredicate> incomingRestrictions) static SqmPredicatecombinePredicates(SqmPredicate baseRestriction, JpaPredicate... incomingRestrictions) static SqmPredicatecombinePredicates(SqmPredicate baseRestriction, SqmPredicate incomingRestriction) static StringdetermineAlias(String alias)
-
Field Details
-
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 anullalias. 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:
-
-
Method Details
-
acquireUniqueAlias
-
determineAlias
-
combinePredicates
public static SqmPredicate combinePredicates(SqmPredicate baseRestriction, List<SqmPredicate> incomingRestrictions) -
combinePredicates
public static SqmPredicate combinePredicates(SqmPredicate baseRestriction, JpaPredicate... incomingRestrictions) -
combinePredicates
public static SqmPredicate combinePredicates(SqmPredicate baseRestriction, Predicate... incomingRestrictions) -
combinePredicates
public static SqmPredicate combinePredicates(SqmPredicate baseRestriction, SqmPredicate incomingRestriction)