Package mondrian.spi
Enum Class Dialect.DatabaseProduct
- All Implemented Interfaces:
Serializable
,Comparable<Dialect.DatabaseProduct>
,Constable
- Enclosing interface:
- Dialect
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
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Dialect.DatabaseProduct
getDatabaseProduct
(String name) Return the root of the family of products this database product belongs to.static Dialect.DatabaseProduct
Returns the enum constant of this class with the specified name.static Dialect.DatabaseProduct[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCESS
-
UNKNOWN
-
DERBY
-
DB2_OLD_AS400
-
DB2_AS400
-
DB2
-
FIREBIRD
-
GREENPLUM
-
HIVE
-
HSQLDB
-
IMPALA
-
INFORMIX
-
INFOBRIGHT
-
INGRES
-
INTERBASE
-
LUCIDDB
-
MSSQL
-
MONETDB
-
NETEZZA
-
NEOVIEW
-
NUODB
-
ORACLE
-
POSTGRESQL
-
REDSHIFT
-
MYSQL
-
SQLSTREAM
-
SYBASE
-
TERADATA
-
VERTICA
-
VECTORWISE
-
MARIADB
-
PDI
-
GOOGLEBIGQUERY
-
SNOWFLAKE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFamily
Return the root of the family of products this database product belongs to.For
DB2_AS400
andDB2_OLD_AS400
returnsDB2
; for all other database products, returns the same product.- Returns:
- root of family of database products
-
getDatabaseProduct
-