Interface SqlDialectFactory

All Known Implementing Classes:
SqlDialectFactoryImpl

public interface SqlDialectFactory
Creates a SqlDialect appropriate for a given database metadata object.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(DatabaseMetaData databaseMetaData)
    Creates a SqlDialect from a DatabaseMetaData.
  • Method Details

    • create

      SqlDialect create(DatabaseMetaData databaseMetaData)
      Creates a SqlDialect from a DatabaseMetaData.

      Does not maintain a reference to the DatabaseMetaData -- or, more importantly, to its Connection -- after this call has returned.

      Parameters:
      databaseMetaData - used to determine which dialect of SQL to generate
      Throws:
      RuntimeException - if there was an error creating the dialect