Class NullOrderingSupport
java.lang.Object
org.hibernate.dialect.sql.ast.spi.NullOrderingSupport
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuild an immutable null-ordering-support profile.static enumAn independently configurable null-ordering syntax capability. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NullOrderingSupportThe base-Dialect profile: null values sort as the greatest values and explicitnulls firstandnulls lastsyntax is supported. -
Method Summary
Modifier and TypeMethodDescriptionstatic NullOrderingSupport.Builderbuilder()Create a builder initialized fromSTANDARD.static NullOrderingSupport.Builderbuilder(NullOrderingSupport base) Create a builder initialized with the complete state of the given profile.The immutable set of supported null-ordering syntax capabilities.The database's default ordering of null values.booleansupports(NullOrderingSupport.Capability capability) Whether the given null-ordering syntax capability is supported natively.
-
Field Details
-
STANDARD
The base-Dialect profile: null values sort as the greatest values and explicitnulls firstandnulls lastsyntax is supported.
-
-
Method Details
-
builder
Create a builder initialized fromSTANDARD. -
builder
Create a builder initialized with the complete state of the given profile.- Parameters:
base- the non-null profile to copy
-
getDefaultOrdering
The database's default ordering of null values. -
getCapabilities
The immutable set of supported null-ordering syntax capabilities. -
supports
Whether the given null-ordering syntax capability is supported natively.
-