Class PredicateSupport
java.lang.Object
org.hibernate.dialect.sql.ast.spi.PredicateSupport
Immutable description of a Dialect's native predicate syntax and predicate placement support.
Providers supply a stable profile through Dialect#getPredicateSupport().
A present case-insensitive-like operator selects native rendering; an
absent operator selects lowercase-expression emulation. The remaining
capabilities independently select scalar distinct from, truthness
predicates, and use of predicates in value-expression contexts.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuild an immutable predicate-support profile.static enumAn independently configurable predicate capability. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PredicateSupportNo native predicate syntax or predicate expression placement.static final PredicateSupportThe standard base-Dialect profile, supporting predicate expression placement but no native case-insensitive-like, scalardistinct from, or truthness syntax. -
Method Summary
Modifier and TypeMethodDescriptionstatic PredicateSupport.Builderbuilder()Create a builder initialized fromSTANDARD.static PredicateSupport.Builderbuilder(PredicateSupport base) Create a builder initialized with every value from the given profile.The immutable set of supported predicate capabilities.The native case-insensitive-likeoperator, or an empty value when lowercase-expression emulation is required.booleansupports(PredicateSupport.Capability capability) Whether the given predicate capability is supported.
-
Field Details
-
NONE
No native predicate syntax or predicate expression placement. -
STANDARD
The standard base-Dialect profile, supporting predicate expression placement but no native case-insensitive-like, scalardistinct from, or truthness syntax.
-
-
Method Details
-
builder
Create a builder initialized fromSTANDARD. -
builder
Create a builder initialized with every value from the given profile.- Parameters:
base- the non-null profile to copy
-
getCaseInsensitiveLikeOperator
-
getCapabilities
The immutable set of supported predicate capabilities. -
supports
Whether the given predicate capability is supported.
-