- All Implemented Interfaces:
Serializable
,Comparable<SQLDialectCategory>
,Constable
A category for
SQLDialect
.
Some SQLDialect
families share a common category, as they are all
derived from a common ancestor. Such categories can help define behaviour
that is specific to all members of the category. For example,
all SQLDialect.POSTGRES
related dialects support casts of
the form IDENTIFIER::TYPE
.
- Author:
- Lukas Eder
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull Set<SQLDialect>
dialects()
Get allSQLDialect
values belonging to this category.final @NotNull Set<SQLDialect>
families()
Get allSQLDialect
families belonging to this category.static SQLDialectCategory
Returns the enum constant of this class with the specified name.static SQLDialectCategory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OTHER
The default SQL dialect category.This dialect is chosen in the absence of a more explicit category.
-
MYSQL
The MySQL dialect category. -
POSTGRES
The PostgreSQL dialect category. -
TSQL
The T-SQL dialect category.
-
-
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
-
dialects
Get allSQLDialect
values belonging to this category. -
families
Get allSQLDialect
families belonging to this category.
-