public static enum Dialect.DatabaseProduct extends Enum<Dialect.DatabaseProduct>
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
.
Enum Constant and Description |
---|
ACCESS |
DB2 |
DB2_AS400 |
DB2_OLD_AS400 |
DERBY |
FIREBIRD |
GOOGLEBIGQUERY |
GREENPLUM |
HIVE |
HSQLDB |
IMPALA |
INFOBRIGHT |
INFORMIX |
INGRES |
INTERBASE |
LUCIDDB |
MARIADB |
MONETDB |
MSSQL |
MYSQL |
NEOVIEW |
NETEZZA |
NUODB |
ORACLE |
PDI |
POSTGRESQL |
REDSHIFT |
SNOWFLAKE |
SQLSTREAM |
SYBASE |
TERADATA |
UNKNOWN |
VECTORWISE |
VERTICA |
Modifier and Type | Method and Description |
---|---|
static Dialect.DatabaseProduct |
getDatabaseProduct(String name) |
Dialect.DatabaseProduct |
getFamily()
Return the root of the family of products this database product
belongs to.
|
static Dialect.DatabaseProduct |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dialect.DatabaseProduct[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dialect.DatabaseProduct ACCESS
public static final Dialect.DatabaseProduct UNKNOWN
public static final Dialect.DatabaseProduct DERBY
public static final Dialect.DatabaseProduct DB2_OLD_AS400
public static final Dialect.DatabaseProduct DB2_AS400
public static final Dialect.DatabaseProduct DB2
public static final Dialect.DatabaseProduct FIREBIRD
public static final Dialect.DatabaseProduct GREENPLUM
public static final Dialect.DatabaseProduct HIVE
public static final Dialect.DatabaseProduct HSQLDB
public static final Dialect.DatabaseProduct IMPALA
public static final Dialect.DatabaseProduct INFORMIX
public static final Dialect.DatabaseProduct INFOBRIGHT
public static final Dialect.DatabaseProduct INGRES
public static final Dialect.DatabaseProduct INTERBASE
public static final Dialect.DatabaseProduct LUCIDDB
public static final Dialect.DatabaseProduct MSSQL
public static final Dialect.DatabaseProduct MONETDB
public static final Dialect.DatabaseProduct NETEZZA
public static final Dialect.DatabaseProduct NEOVIEW
public static final Dialect.DatabaseProduct NUODB
public static final Dialect.DatabaseProduct ORACLE
public static final Dialect.DatabaseProduct POSTGRESQL
public static final Dialect.DatabaseProduct REDSHIFT
public static final Dialect.DatabaseProduct MYSQL
public static final Dialect.DatabaseProduct SQLSTREAM
public static final Dialect.DatabaseProduct SYBASE
public static final Dialect.DatabaseProduct TERADATA
public static final Dialect.DatabaseProduct VERTICA
public static final Dialect.DatabaseProduct VECTORWISE
public static final Dialect.DatabaseProduct MARIADB
public static final Dialect.DatabaseProduct PDI
public static final Dialect.DatabaseProduct GOOGLEBIGQUERY
public static final Dialect.DatabaseProduct SNOWFLAKE
public static Dialect.DatabaseProduct[] values()
for (Dialect.DatabaseProduct c : Dialect.DatabaseProduct.values()) System.out.println(c);
public static Dialect.DatabaseProduct valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Dialect.DatabaseProduct getFamily()
For DB2_AS400
and DB2_OLD_AS400
returns
DB2
; for all other database products, returns the same
product.
public static Dialect.DatabaseProduct getDatabaseProduct(String name)
Copyright © 2019 Hitachi Vantara. All rights reserved.