Enum Dialect
- java.lang.Object
-
- java.lang.Enum<Dialect>
-
- com.feedzai.commons.sql.abstraction.dml.dialect.Dialect
-
- All Implemented Interfaces:
Serializable,Comparable<Dialect>
public enum Dialect extends Enum<Dialect>
Represents the supported dialects distributed by the library.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COCKROACHDBCockroachDB dialect.DB2DB2 SQL dialect.H2H2 SQL dialect.MYSQLMySQL SQL dialect.ORACLEOracle SQL dialect.POSTGRESQLPostgreSQL SQL dialect.SQLSERVERSQLServer SQL dialect.UNKNOWNUnknown implementation (can be used when implementing new engines that are not distributed with the library.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DialectvalueOf(String name)Returns the enum constant of this type with the specified name.static Dialect[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORACLE
public static final Dialect ORACLE
Oracle SQL dialect.
-
POSTGRESQL
public static final Dialect POSTGRESQL
PostgreSQL SQL dialect.
-
COCKROACHDB
public static final Dialect COCKROACHDB
CockroachDB dialect.- Since:
- 2.5.0
-
MYSQL
public static final Dialect MYSQL
MySQL SQL dialect.
-
SQLSERVER
public static final Dialect SQLSERVER
SQLServer SQL dialect.
-
H2
public static final Dialect H2
H2 SQL dialect.
-
DB2
public static final Dialect DB2
DB2 SQL dialect.
-
UNKNOWN
public static final Dialect UNKNOWN
Unknown implementation (can be used when implementing new engines that are not distributed with the library.
-
-
Method Detail
-
values
public static Dialect[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Dialect c : Dialect.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Dialect valueOf(String name)
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
-
-