Class SubquerySupport

java.lang.Object
org.hibernate.dialect.sql.ast.spi.SubquerySupport

@SPI({USE,SUPPLY}) public final class SubquerySupport extends Object

Immutable description of the subquery placements supported by a Dialect.

Providers supply a stable profile through Dialect.getSubquerySupport(). Each feature answers one independent placement question. In particular, SubquerySupport.Feature.SELECT_LIST reports scalar-subquery placement and does not imply SubquerySupport.Feature.EXISTS_IN_SELECT, which reports the specialized placement of an exists predicate in the select list.

SubquerySupport.Feature.LATERAL reports native or proprietary correlated-derived-table support. The SQL AST translator remains responsible for spelling and any fallback rendering.

Since:
8.0
See Also:
  • Field Details

    • NONE

      public static final SubquerySupport NONE
      No supported subquery placement.
    • STANDARD

      public static final SubquerySupport STANDARD
      The base-Dialect profile. Offset in subqueries and lateral derived tables are disabled; all other placements are enabled.
  • Method Details