Class ExpressionCoercionSupport
java.lang.Object
org.hibernate.dialect.function.spi.ExpressionCoercionSupport
Immutable description of the expression-coercion adaptations required by a Dialect's SQL rendering.
Providers supply a stable profile through
Dialect.getExpressionCoercionSupport(). Each
requirement directs a focused rendering adaptation. It does not report
general database cast support and must not be used as a database-wide
implicit-coercion policy.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuild an immutable expression-coercion-support profile.static enumAn independently configurable expression-coercion adaptation. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExpressionCoercionSupportNo required expression-coercion adaptations.static final ExpressionCoercionSupportThe base-Dialect profile, which requires no expression-coercion adaptations. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder initialized fromSTANDARD.Create a builder initialized with the complete requirement set from the given profile.The immutable set of required expression-coercion adaptations.booleanrequires(ExpressionCoercionSupport.Requirement requirement) Whether the given rendering adaptation is required.
-
Field Details
-
NONE
No required expression-coercion adaptations. -
STANDARD
The base-Dialect profile, which requires no expression-coercion adaptations.
-
-
Method Details
-
builder
Create a builder initialized fromSTANDARD. -
builder
Create a builder initialized with the complete requirement set from the given profile.- Parameters:
base- the non-null profile to copy
-
getRequirements
The immutable set of required expression-coercion adaptations. -
requires
Whether the given rendering adaptation is required.
-