public class DialectResolver extends Object
Dialect. Resolution typically uses JdbcOperations to obtain and inspect a
Connection. Dialect resolution uses Spring's spring.factories to determine
available extensions.Dialect,
SpringFactoriesLoader| Modifier and Type | Class and Description |
|---|---|
static class |
DialectResolver.DefaultDialectProvider |
static interface |
DialectResolver.JdbcDialectProvider
SPI to extend Spring's default JDBC Dialect discovery mechanism.
|
static class |
DialectResolver.NoDialectException
Exception thrown when
DialectResolver cannot resolve a Dialect. |
| Modifier and Type | Method and Description |
|---|---|
static Dialect |
getDialect(JdbcOperations operations)
Retrieve a
Dialect by inspecting a Connection. |
public static Dialect getDialect(JdbcOperations operations)
Dialect by inspecting a Connection.operations - must not be null.Dialect DialectResolver.NoDialectException if the database type cannot be determined from
DataSource.DialectResolver.NoDialectException - if no Dialect can be found.Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.