Class SqmCreationHelper

java.lang.Object
org.hibernate.query.sqm.spi.SqmCreationHelper

@Internal public class SqmCreationHelper extends Object
  • Field Details

    • 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 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.
      See Also:
  • Method Details

    • buildRootNavigablePath

      public static NavigablePath buildRootNavigablePath(String base, String alias)
    • buildSubNavigablePath

      public static NavigablePath buildSubNavigablePath(NavigablePath lhs, String base, String alias)
    • acquireUniqueAlias

      @Deprecated(since="7") public static String acquireUniqueAlias()
      Deprecated.
      This method returns a globally-unique alias which introduces a temporal dependence in the query interpretation process, leading to misses on the query interpretation cache. Aliases only need to be unique in the scope of a given query, and so alias generation should be contextual to the query.
      DO NOT USE ME
    • determineAlias

      @Deprecated(since="7") public static String determineAlias(String alias)
      Deprecated.
      When the argument is null, this method returns a globally-unique alias which introduces a temporal dependence in the query interpretation process, leading to misses on the query interpretation cache.
      DO NOT USE ME
    • buildSubNavigablePath

      public static NavigablePath buildSubNavigablePath(SqmPath<?> lhs, String subNavigable, String alias)
    • combinePredicates

      public static SqmPredicate combinePredicates(SqmPredicate baseRestriction, List<Predicate> 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)