Class SetOperationSupport
java.lang.Object
org.hibernate.dialect.sql.ast.spi.SetOperationSupport
Immutable description of a Dialect's set-operation grammar.
Providers supply a stable profile through
Dialect.getSetOperationSupport(). The operator set
reports which of the six SQL set operators may be emitted. The capability
set separately reports structural rules for subquery placement, duplicate
select items, and simple parenthesized query grouping.
Treat every operator as independent. In particular, support for a distinct
operator does not imply support for its ALL form, and support for UNION
does not imply SetOperationSupport.Capability.UNION_IN_SUBQUERY.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuild an immutable set-operation-support profile.static enumAn independently configurable structural set-operation capability. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SetOperationSupportNo native set operator or structural set-operation capability.static final SetOperationSupportThe base-Dialect profile: all six operators and all structural capabilities. -
Method Summary
Modifier and TypeMethodDescriptionstatic SetOperationSupport.Builderbuilder()Create a builder initialized fromSTANDARD.static SetOperationSupport.Builderbuilder(SetOperationSupport base) Create a builder initialized with both complete sets from the given profile.The immutable set of supported structural capabilities.The immutable set of supported SQL set operators.booleansupports(SetOperationSupport.Capability capability) Whether the given structural set-operation capability is supported.booleansupports(SetOperator operator) Whether the given SQL set operator is supported natively.
-
Field Details
-
NONE
No native set operator or structural set-operation capability. -
STANDARD
The base-Dialect profile: all six operators and all structural capabilities.
-
-
Method Details
-
builder
Create a builder initialized fromSTANDARD. -
builder
Create a builder initialized with both complete sets from the given profile.- Parameters:
base- the non-null profile to copy
-
getSupportedOperators
The immutable set of supported SQL set operators. -
getCapabilities
The immutable set of supported structural capabilities. -
supports
Whether the given SQL set operator is supported natively. -
supports
Whether the given structural set-operation capability is supported.
-