Class NullOrderingSupport

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

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

Immutable description of a Dialect's default null ordering and native explicit null-precedence syntax.

Providers supply a stable profile through Dialect.getNullOrderingSupport(). The default ordering describes where the database places null values when an order by item does not specify nulls first or nulls last. It is independent of NullOrderingSupport.Capability.NULLS_FIRST_LAST, which reports whether that explicit syntax may be rendered natively.

Consumers should use both parts of this profile when deciding whether an explicit precedence may be elided, rendered natively, or emulated. Providers refining a Dialect family profile should copy the profile returned by the superclass and change only the values which differ.

Since:
8.0
See Also:
  • Field Details

    • STANDARD

      public static final NullOrderingSupport STANDARD
      The base-Dialect profile: null values sort as the greatest values and explicit nulls first and nulls last syntax is supported.
  • Method Details