Package com.saperion.common.sql
Enum Class SqlDialect
- All Implemented Interfaces:
Serializable,Comparable<SqlDialect>,Constable
SqlDialect enumerates known SQL dialects of DataSources.- Author:
- agz
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSQL dialect of Microsoft SQL-Server.SQL dialect of Oracle. -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlDialectfromDatabaseProductName(String databaseProductName) Returns theSqlDialectcorresponding to the specified database product name.static SqlDialectReturns the enum constant of this class with the specified name.static SqlDialect[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MS_SQL_SERVER
SQL dialect of Microsoft SQL-Server. -
ORACLE
SQL dialect of Oracle.
-
-
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
-
fromDatabaseProductName
Returns theSqlDialectcorresponding to the specified database product name. Throws anIllegalArgumentExceptionif the specified database product name is unknown/not recognized. The specified database product name must not benull.- Parameters:
databaseProductName- database product name to get theSqlDialectfor- Returns:
SqlDialectfor the specified database product name
-