Interface SqlDialectFactory

  • All Known Implementing Classes:
    SqlDialectFactoryImpl

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

      • create

        SqlDialect create​(java.sql.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:
        java.lang.RuntimeException - if there was an error creating the dialect