Class SqlDialectFactoryImpl

  • All Implemented Interfaces:

    public class SqlDialectFactoryImpl
    extends java.lang.Object
    implements SqlDialectFactory
    The default implementation of a SqlDialectFactory.
    • Constructor Detail

      • SqlDialectFactoryImpl

        public SqlDialectFactoryImpl()
    • Method Detail

      • create

        public SqlDialect create​(java.sql.DatabaseMetaData databaseMetaData)
        Description copied from interface: SqlDialectFactory
        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.

        Specified by:
        create in interface SqlDialectFactory
        databaseMetaData - used to determine which dialect of SQL to generate
      • getCasing

        private org.apache.calcite.avatica.util.Casing getCasing​(java.sql.DatabaseMetaData databaseMetaData,
                                                                 boolean quoted)
      • isCaseSensitive

        private boolean isCaseSensitive​(java.sql.DatabaseMetaData databaseMetaData)
      • getNullCollation

        private NullCollation getNullCollation​(java.sql.DatabaseMetaData databaseMetaData)
      • isBigQuery

        private static boolean isBigQuery​(java.sql.DatabaseMetaData databaseMetaData)
                                   throws java.sql.SQLException
      • getIdentifierQuoteString

        private java.lang.String getIdentifierQuoteString​(java.sql.DatabaseMetaData databaseMetaData)