Enum SqlDialect.DatabaseProduct
- All Implemented Interfaces:
Serializable
,Comparable<SqlDialect.DatabaseProduct>
,Constable
- Enclosing class:
SqlDialect
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionParaccel, now called Actian Matrix.Placeholder for the unknown database. -
Method Summary
Modifier and TypeMethodDescriptionReturns a dummy dialect for this database.static SqlDialect.DatabaseProduct
Returns the enum constant of this type with the specified name.static SqlDialect.DatabaseProduct[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACCESS
-
BIG_QUERY
-
CALCITE
-
CLICKHOUSE
-
MSSQL
-
MYSQL
-
ORACLE
-
DERBY
-
DB2
-
EXASOL
-
FIREBIRD
-
FIREBOLT
-
H2
-
HIVE
-
INFORMIX
-
INGRES
-
JETHRO
-
LUCIDDB
-
INTERBASE
-
PHOENIX
-
POSTGRESQL
-
PRESTO
-
NETEZZA
-
INFOBRIGHT
-
NEOVIEW
-
SYBASE
-
TERADATA
-
HSQLDB
-
VERTICA
-
SQLSTREAM
-
SPARK
-
STARROCKS
-
PARACCEL
Paraccel, now called Actian Matrix. Redshift is based on this, so presumably the dialect capabilities are similar. -
REDSHIFT
-
SNOWFLAKE
-
UNKNOWN
Placeholder for the unknown database.Its dialect is useful for generating generic SQL. If you need to do something database-specific like quoting identifiers, don't rely on this dialect to do what you want.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDialect
Returns a dummy dialect for this database.Since databases have many versions and flavors, this dummy dialect is at best an approximation. If you want exact information, better to use a dialect created from an actual connection's metadata (see
SqlDialectFactory.create(java.sql.DatabaseMetaData)
).- Returns:
- Dialect representing lowest-common-denominator behavior for all versions of this database
-