Class DialectResolver
java.lang.Object
org.springframework.data.jdbc.dialect.DialectResolver
Deprecated, for removal: This API element is subject to removal in a future version.
Resolves a
Dialect. Resolution typically uses JdbcOperations to obtain and inspect a
Connection. Dialect resolution uses Spring's spring.factories to determine
available extensions.- Since:
- 2.0
- Author:
- Jens Schauder, Mikhail Polivakha
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.static interfaceDeprecated, for removal: This API element is subject to removal in a future version.since 3.5, replacementDialectResolverwas moved to theorg.springframework.data.jdbc.core.dialectpackage.static classDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcDialectgetDialect(JdbcOperations operations) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve aDialectby inspecting aConnection.
-
Method Details
-
getDialect
Deprecated, for removal: This API element is subject to removal in a future version.Retrieve aDialectby inspecting aConnection.- Parameters:
operations- must not be null.- Returns:
- the resolved
DialectDialectResolver.NoDialectExceptionif the database type cannot be determined fromDataSource. - Throws:
DialectResolver.NoDialectException- if noDialectcan be found.
-
DialectResolverwas moved to theorg.springframework.data.jdbc.core.dialectpackage.