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:
-
SpringFactoriesLoader
-
Method Summary
Modifier and TypeMethodDescriptiongetDialect
(org.springframework.jdbc.core.JdbcOperations operations) Returns aDialect
for aDataSource
.
-
Method Details
-
getDialect
Returns aDialect
for aDataSource
.- Parameters:
operations
- theJdbcOperations
to be used with theDialect
.- Returns:
Optional
containing theDialect
if theDialectResolver.JdbcDialectProvider
can provide a dialect object, otherwiseOptional.empty()
.
-