Class GeneratedValuesSupport
java.lang.Object
org.hibernate.dialect.generated.spi.GeneratedValuesSupport
Immutable description of the mechanisms a Dialect supports for retrieving arbitrary database-generated values during mutation execution.
Providers supply a stable profile through
Dialect.getGeneratedValuesSupport(). Native mutation returning and JDBC
generated keys are independent mechanisms. Identity-only generated-key
behavior belongs to
IdentityColumnSupport, while an
ordinary select after a mutation is a Hibernate fallback determined from
mapping and execution state rather than a Dialect capability.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuild an immutable generated-values profile.static enumIndependently variable generated-value retrieval capabilities. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeneratedValuesSupportThe base-Dialect profile, which advertises no immediate generated-value retrieval mechanism. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder initialized fromSTANDARD.Create a builder initialized with every value from the given profile.The immutable set of supported immediate retrieval capabilities.booleansupports(GeneratedValuesSupport.Capability capability) Whether the given immediate retrieval capability is supported.booleanWhether generated column names must be unquoted before passing them to JDBC statement preparation.
-
Field Details
-
STANDARD
The base-Dialect profile, which advertises no immediate generated-value retrieval mechanism.
-
-
Method Details
-
builder
Create a builder initialized fromSTANDARD. -
builder
Create a builder initialized with every value from the given profile. -
supports
Whether the given immediate retrieval capability is supported. -
getCapabilities
The immutable set of supported immediate retrieval capabilities. -
unquoteGeneratedKeyColumnNames
public boolean unquoteGeneratedKeyColumnNames()Whether generated column names must be unquoted before passing them to JDBC statement preparation.
-