Class RowValueSupport
java.lang.Object
org.hibernate.dialect.sql.ast.spi.RowValueSupport
Immutable description of a Dialect's native row-value syntax.
Providers supply a stable profile through
Dialect.getRowValueSupport(). Each RowValueSupport.Feature reports
one exact syntax form or predicate context. Do not infer one context from
another: a database may, for example, support row values in an IN
subquery while rejecting an IN list. Explicit row(a, b) construction is
likewise independent from parenthesized row-value predicates.
Ordering and distinctness comparisons refine equality comparison and are
validated against that prerequisite. Native row distinctness additionally
requires scalar
PredicateSupport.Capability.DISTINCT_FROM at the rendering site.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuild an immutable row-value-support profile.static enumAn independently configurable row-value syntax feature. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RowValueSupportNo native row-value syntax.static final RowValueSupportThe base-Dialect profile: every predicate feature, without explicitrow(a, b)constructor syntax. -
Method Summary
Modifier and TypeMethodDescriptionstatic RowValueSupport.Builderbuilder()Create a builder initialized fromSTANDARD.static RowValueSupport.Builderbuilder(RowValueSupport base) Create a builder initialized with every feature from the given profile.The immutable set of supported row-value features.booleansupports(RowValueSupport.Feature feature) Whether the given row-value feature is supported natively.
-
Field Details
-
NONE
No native row-value syntax. -
STANDARD
The base-Dialect profile: every predicate feature, without explicitrow(a, b)constructor syntax.
-
-
Method Details
-
builder
Create a builder initialized fromSTANDARD. -
builder
Create a builder initialized with every feature from the given profile.- Parameters:
base- the non-null profile to copy
-
getFeatures
The immutable set of supported row-value features. -
supports
Whether the given row-value feature is supported natively.
-