Package mondrian.spi

Enum Dialect.DatabaseProduct

  • All Implemented Interfaces:
    Serializable, Comparable<Dialect.DatabaseProduct>
    Enclosing interface:
    Dialect

    public static enum Dialect.DatabaseProduct
    extends Enum<Dialect.DatabaseProduct>
    Enumeration of common database types.

    Branching on this enumeration allows you to write code which behaves differently for different databases. However, since the capabilities of a database can change between versions, it is recommended that conditional code is in terms of capabilities methods in Dialect.

    Because there are so many differences between various versions and ports of DB2, we represent them as 3 separate products. If you want to treat them all as one product, note that the getFamily() method for DB2_AS400 and DB2_OLD_AS400 returns DB2.