public class DialectResolver extends Object
R2dbcDialect
from a ConnectionFactory
using DialectResolver.R2dbcDialectProvider
. Dialect
resolution uses Spring's spring.factories
to determine available extensions.R2dbcDialect
,
SpringFactoriesLoader
Modifier and Type | Class and Description |
---|---|
static class |
DialectResolver.NoDialectException
Exception thrown when
DialectResolver cannot resolve a R2dbcDialect . |
static interface |
DialectResolver.R2dbcDialectProvider
SPI to extend Spring's default R2DBC Dialect discovery mechanism.
|
Modifier and Type | Method and Description |
---|---|
static R2dbcDialect |
getDialect(ConnectionFactory connectionFactory)
Retrieve a
R2dbcDialect by inspecting ConnectionFactory and its metadata. |
public static R2dbcDialect getDialect(ConnectionFactory connectionFactory)
R2dbcDialect
by inspecting ConnectionFactory
and its metadata.connectionFactory
- must not be null.R2dbcDialect
DialectResolver.NoDialectException
if the database type cannot be determined from
ConnectionFactory
.DialectResolver.NoDialectException
- if no R2dbcDialect
can be found.Copyright © 2018–2021 Pivotal Software, Inc.. All rights reserved.