Enum SqlDialect.DatabaseProduct

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SqlDialect.DatabaseProduct>
    Enclosing class:

    public static enum SqlDialect.DatabaseProduct
    extends java.lang.Enum<SqlDialect.DatabaseProduct>
    Rough list of flavors of database.

    These values cannot help you distinguish between features that exist in different versions or ports of a database, but they are sufficient to drive a switch statement if behavior is broadly different between say, MySQL and Oracle.

    If possible, you should not refer to particular database at all; write extend the dialect to describe the particular capability, for example, whether the database allows expressions to appear in the GROUP BY clause.