Class TupleCountSupport

java.lang.Object
org.hibernate.dialect.function.spi.TupleCountSupport

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

Immutable description of a Dialect's aggregate tuple-count syntax.

Providers supply a stable profile through Dialect.getTupleCountSupport(). Ordinary tuple counts and distinct tuple counts are independent syntax choices. Select TupleCountSupport.Syntax.UNSUPPORTED to request Hibernate's existing emulation, TupleCountSupport.Syntax.ARGUMENT_LIST for forms such as count(a, b), or TupleCountSupport.Syntax.PARENTHESIZED_TUPLE for forms such as count((a, b)).

Do not infer the distinct form from the ordinary form. A database may, for example, accept count((a, b)) while requiring count(distinct a, b) for the distinct form.

Since:
8.0
See Also:
  • Field Details

    • NONE

      public static final TupleCountSupport NONE
      Neither ordinary nor distinct tuple counts have native syntax.
    • STANDARD

      public static final TupleCountSupport STANDARD
      The base-Dialect profile: emulate ordinary tuple counts and render distinct tuples as an argument list.
  • Method Details