Interface DatabaseDialectProvider
- All Known Implementing Classes:
Db2DatabaseDialect.Db2DatabaseProvider,MariaDbDatabaseDialect.MariaDbDatabaseDialectProvider,MySqlDatabaseDialect.MySqlDatabaseDialectProvider,OracleDatabaseDialect.OracleDatabaseDialectProvider,PostgresDatabaseDialect.PostgresDatabaseDialectProvider,SqlServerDatabaseDialect.SqlServerDatabaseDialectProvider
public interface DatabaseDialectProvider
A provider for a
DatabaseDialect.- Author:
- Chris Cranford
-
Method Summary
Modifier and TypeMethodDescriptioninstantiate(JdbcSinkConnectorConfig config, org.hibernate.SessionFactory sessionFactory) Instantiates the underlying database dialect implementation.Class<?>name()Returns the class that will be instantiated.booleansupports(org.hibernate.dialect.Dialect dialect) Returns whether this provider supports the provided Hibernate dialect.
-
Method Details
-
supports
boolean supports(org.hibernate.dialect.Dialect dialect) Returns whether this provider supports the provided Hibernate dialect.- Parameters:
dialect- hibernate dialect, should not benull- Returns:
- true if the provider supports the dialect, otherwise false
-
name
Class<?> name()Returns the class that will be instantiated. -
instantiate
DatabaseDialect instantiate(JdbcSinkConnectorConfig config, org.hibernate.SessionFactory sessionFactory) Instantiates the underlying database dialect implementation.- Parameters:
config- the sink connector configuration, should not benulsessionFactory- hibernate session factory, should not benull- Returns:
- the created database dialect instance, never
null
-