Class Db2Dialect

All Implemented Interfaces:
Dialect
Direct Known Subclasses:
Db2OldAs400Dialect

public class Db2Dialect extends JdbcDialectImpl
Implementation of Dialect for the IBM DB2 database.
Since:
Nov 23, 2008
Author:
jhyde
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • toUpper

      public String toUpper(String expr)
      Description copied from interface: Dialect
      Converts an expression to upper case.

      For example, for MySQL, toUpper("foo.bar") returns "UPPER(foo.bar)".

      Specified by:
      toUpper in interface Dialect
      Overrides:
      toUpper in class JdbcDialectImpl
      Parameters:
      expr - SQL expression
      Returns:
      SQL syntax that converts expr into upper case.
    • supportsGroupingSets

      public boolean supportsGroupingSets()
      Description copied from interface: Dialect
      Returns whether this Dialect allows the GROUPING SETS construct in the GROUP BY clause. Currently Greenplum, IBM DB2, Oracle, and Teradata.
      Specified by:
      supportsGroupingSets in interface Dialect
      Overrides:
      supportsGroupingSets in class JdbcDialectImpl
      Returns:
      Whether this Dialect allows GROUPING SETS clause