Interface DatabaseDialectProvider

All Known Implementing Classes:
Db2DatabaseDialect.Db2DatabaseProvider, MySqlDatabaseDialect.MySqlDatabaseDialectProvider, OracleDatabaseDialect.OracleDatabaseDialectProvider, PostgresDatabaseDialect.PostgresDatabaseDialectProvider, SqlServerDatabaseDialect.SqlServerDatabaseDialectProvider

public interface DatabaseDialectProvider
A provider for a DatabaseDialect.
Author:
Chris Cranford
  • Method Summary

    Modifier and Type
    Method
    Description
    instantiate(JdbcSinkConnectorConfig config, org.hibernate.SessionFactory sessionFactory)
    Instantiates the underlying database dialect implementation.
    Returns the class that will be instantiated.
    boolean
    supports(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 be null
      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 be nul
      sessionFactory - hibernate session factory, should not be null
      Returns:
      the created database dialect instance, never null