Class ArraySupport
java.lang.Object
org.hibernate.dialect.array.spi.ArraySupport
Immutable description of a Dialect's array syntax and multi-valued parameter-binding behavior.
Providers supply a stable profile through Dialect#getArraySupport().
Standard element-type array syntax, SQL array-constructor syntax, and the
multi-valued parameter-binding strategy are independent dimensions. Do not
infer support for one dimension from another: a database might bind a named
or nonstandard array type without either standard syntax capability, or it
might deliberately expand parameters despite supporting both capabilities.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuild an immutable array-support profile.static enumAn independently configurable array-syntax capability.static enumHow multi-valued parameters are passed to the database. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArraySupportNo standard array syntax, no array-constructor syntax, and expanded multi-valued parameters.static final ArraySupportBoth standard array syntax capabilities and array-bound multi-valued parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArraySupport.Builderbuilder()Create a builder initialized fromNONE.static ArraySupport.Builderbuilder(ArraySupport base) Create a builder initialized with every value from the given profile.The immutable set of supported array-syntax capabilities.The strategy for passing a multi-valued parameter to the database.booleansupports(ArraySupport.Capability capability) Whether the given array-syntax capability is supported.
-
Field Details
-
NONE
No standard array syntax, no array-constructor syntax, and expanded multi-valued parameters. -
STANDARD
Both standard array syntax capabilities and array-bound multi-valued parameters.
-
-
Method Details
-
builder
Create a builder initialized fromNONE. -
builder
Create a builder initialized with every value from the given profile.- Parameters:
base- the non-null profile to copy
-
getCapabilities
The immutable set of supported array-syntax capabilities. -
supports
Whether the given array-syntax capability is supported. -
getMultiValuedParameterStrategy
The strategy for passing a multi-valued parameter to the database.
-