Class JdbcDialectLoader
- java.lang.Object
-
- org.apache.flink.connector.jdbc.dialect.JdbcDialectLoader
-
@Internal public final class JdbcDialectLoader extends Object
Utility for working withJdbcDialect.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JdbcDialectload(String url, ClassLoader classLoader)Loads the unique JDBC Dialect that can handle the given database url.
-
-
-
Method Detail
-
load
public static JdbcDialect load(String url, ClassLoader classLoader)
Loads the unique JDBC Dialect that can handle the given database url.- Parameters:
url- A database URL.classLoader- the classloader used to load the factory- Returns:
- The loaded dialect.
- Throws:
IllegalStateException- if the loader cannot find exactly one dialect that can unambiguously process the given database URL.
-
-