Module spring.data.jdbc
Interface DialectResolver.JdbcDialectProvider
- All Known Implementing Classes:
DialectResolver.DefaultDialectProvider
- Enclosing class:
- DialectResolver
public static interface DialectResolver.JdbcDialectProvider
SPI to extend Spring's default JDBC Dialect discovery mechanism. Implementations of this interface are discovered
through Spring's
SpringFactoriesLoader mechanism.- Author:
- Jens Schauder
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionOptional<org.springframework.data.relational.core.dialect.Dialect>getDialect(JdbcOperations operations) Returns aDialectfor aDataSource.
-
Method Details
-
getDialect
Optional<org.springframework.data.relational.core.dialect.Dialect> getDialect(JdbcOperations operations) Returns aDialectfor aDataSource.- Parameters:
operations- theJdbcOperationsto be used with theDialect.- Returns:
Optionalcontaining theDialectif theDialectResolver.JdbcDialectProvidercan provide a dialect object, otherwiseOptional.empty().
-