public enum SQLDialect extends java.lang.Enum<SQLDialect>
jOOQ supports a variety of dialects, which are grouped into dialect families.
For instance, the SQL Server dialect family POSTGRES
is specialised
by its dialects
Modifier and Type | Class and Description |
---|---|
class |
SQLDialect.ThirdParty
Third party representations of the enclosing
SQLDialect . |
Enum Constant and Description |
---|
ACCESS
The MS Access dialect family.
|
ACCESS2013
The MS Access 2013 dialect.
|
ASE
The Sybase Adaptive Server dialect family.
|
CUBRID
The CUBRID dialect family.
|
DB2
The IBM DB2 dialect family.
|
DB2_10
The IBM DB2 10.x dialect.
|
DB2_9
The IBM DB2 9.x dialect.
|
DEFAULT
The default SQL dialect.
|
DERBY
The Apache Derby dialect family.
|
FIREBIRD
The Firebird dialect family.
|
FIREBIRD_2_5
The Firebird 2.5 dialect.
|
FIREBIRD_3_0
The Firebird 3.0 dialect.
|
H2
The H2 dialect family.
|
HANA
The SAP HANA dialect.
|
HSQLDB
The Hypersonic dialect family.
|
INFORMIX
The Informix dialect.
|
INGRES
The Ingres dialect family.
|
MARIADB
The MariaDB dialect family.
|
MYSQL
The MySQL dialect family.
|
MYSQL_5_7
The MySQL 5.7 dialect.
|
MYSQL_8_0
The MySQL 8.0 dialect.
|
ORACLE
The Oracle dialect family.
|
ORACLE10G
The Oracle 10g dialect.
|
ORACLE11G
The Oracle 11g dialect.
|
ORACLE12C
The Oracle 12c dialect.
|
POSTGRES
The PostgreSQL dialect family.
|
POSTGRES_9_3
The PostgreSQL 9.3 dialect.
|
POSTGRES_9_4
The PostgreSQL 9.4 dialect.
|
POSTGRES_9_5
The PostgreSQL 9.5 dialect.
|
POSTGRESPLUS
Deprecated.
- This dialect is not yet supported by jOOQ.
|
REDSHIFT
The Amazon Redshift dialect.
|
SQL99
Deprecated.
- [#3844] - 3.6.0 -
DEFAULT will replace this
pseudo-dialect. |
SQLITE
The SQLite dialect family.
|
SQLSERVER
The SQL Server dialect family.
|
SQLSERVER2008
The SQL Server 2008 dialect.
|
SQLSERVER2012
The SQL Server 2012 dialect.
|
SQLSERVER2014
The SQL Server 2014 dialect.
|
SQLSERVER2016
The SQL Server 2016 dialect.
|
SYBASE
The Sybase SQL Anywhere dialect family.
|
VERTICA
The Vertica dialect family.
|
Modifier and Type | Method and Description |
---|---|
boolean |
commercial()
Whether this dialect is supported with the jOOQ commercial license only.
|
static SQLDialect[] |
families()
Get a list of all
family() values. |
SQLDialect |
family()
The dialect family.
|
java.lang.String |
getName()
The name of this dialect as it appears in related class names.
|
java.lang.String |
getNameLC()
The name of this dialect as it appears in related package names.
|
java.lang.String |
getNameUC()
The name of this dialect as it appears in related enum values.
|
boolean |
isFamily()
Whether this dialect is a
family() . |
boolean |
precedes(SQLDialect other)
Whether this dialect precedes an other dialect from the same family.
|
SQLDialect |
predecessor()
The predecessor dialect.
|
boolean |
supports(SQLDialect other)
Check whether this dialect supports another one.
|
SQLDialect.ThirdParty |
thirdParty()
Get access to third party representations of this
SQLDialect . |
static SQLDialect |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SQLDialect[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final SQLDialect SQL99
DEFAULT
will replace this
pseudo-dialect.public static final SQLDialect DEFAULT
This dialect is chosen in the absence of a more explicit dialect. It is not intended to be used with any actual database as it may combined dialect-specific things from various dialects.
public static final SQLDialect CUBRID
public static final SQLDialect DERBY
public static final SQLDialect FIREBIRD
public static final SQLDialect FIREBIRD_2_5
public static final SQLDialect FIREBIRD_3_0
public static final SQLDialect H2
public static final SQLDialect HSQLDB
public static final SQLDialect MARIADB
public static final SQLDialect MYSQL
public static final SQLDialect MYSQL_5_7
public static final SQLDialect MYSQL_8_0
public static final SQLDialect POSTGRES
While this family (and its dialects) have been observed to work to some
extent on Amazon RedShift as well, we strongly suggest you use the
official REDSHIFT
support, instead.
public static final SQLDialect POSTGRES_9_3
While this family (and its dialects) have been observed to work to some
extent on Amazon RedShift as well, we strongly suggest you use the
official REDSHIFT
support, instead.
public static final SQLDialect POSTGRES_9_4
While this family (and its dialects) have been observed to work to some
extent on Amazon RedShift as well, we strongly suggest you use the
official REDSHIFT
support, instead.
public static final SQLDialect POSTGRES_9_5
While this family (and its dialects) have been observed to work to some
extent on Amazon RedShift as well, we strongly suggest you use the
official REDSHIFT
support, instead.
public static final SQLDialect SQLITE
public static final SQLDialect ACCESS
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect ACCESS2013
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect ASE
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect DB2
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect DB2_9
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect DB2_10
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect HANA
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect INFORMIX
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect INGRES
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect ORACLE
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect ORACLE10G
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect ORACLE11G
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect ORACLE12C
This dialect is available in commercial jOOQ distributions, only.
@Deprecated public static final SQLDialect POSTGRESPLUS
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect REDSHIFT
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect SQLSERVER
Use this family (or its dialects) for SQL Server or SQL Azure.
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect SQLSERVER2008
Use this family (or its dialects) for SQL Server or SQL Azure.
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect SQLSERVER2012
Use this family (or its dialects) for SQL Server or SQL Azure.
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect SQLSERVER2014
Use this family (or its dialects) for SQL Server or SQL Azure.
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect SQLSERVER2016
Use this family (or its dialects) for SQL Server or SQL Azure.
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect SYBASE
This dialect is available in commercial jOOQ distributions, only.
public static final SQLDialect VERTICA
This dialect is available in commercial jOOQ distributions, only.
public static SQLDialect[] values()
for (SQLDialect c : SQLDialect.values()) System.out.println(c);
public static SQLDialect valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final boolean commercial()
public final SQLDialect family()
This returns the dialect itself, if it has no "parent family". E.g.
SQLSERVER == SQLSERVER2012.family();
SQLSERVER == SQLSERVER2008.family();
SQLSERVER == SQLSERVER.family();
public final boolean isFamily()
family()
.public final SQLDialect predecessor()
If this is a dialect version (e.g. POSTGRES_9_4
) within a family
(e.g. POSTGRES
), then the predecessor will point to the
historically previous dialect version (e.g. POSTGRES_9_3
) within
the same family, or to the dialect itself if there was no predecessor
explicitly supported by jOOQ.
public final boolean precedes(SQLDialect other)
This returns:
true
if this dialect is the same as the other dialecttrue
if this dialect precedes the other dialect via any
number of calls to predecessor()
false
if the two dialects do not belong to the same
family
This is useful to see if some feature is supported by "at least"
a given dialect version. Example:
// Do this block only if the chosen dialect supports PostgreSQL 9.4+ features
if (POSTGRES_9_4.precedes(dialect)) {
}
// Do this block only if the chosen dialect supports PostgreSQL 9.3+ features
else if (POSTGRES_9_3.precedes(dialect)) {
}
// Fall back to pre-PostgreSQL 9.3 behaviour
else {
}
public final boolean supports(SQLDialect other)
This is:
false
if dialects don't belong to the same familytrue
if either dialect isFamily()
true
if other
dialect precedes this
dialect
The other
argument dialect is typically referenced from a
Support
annotation, whereas this dialect is the user dialect.
public final java.lang.String getName()
public final java.lang.String getNameLC()
public final java.lang.String getNameUC()
public static final SQLDialect[] families()
family()
values.public final SQLDialect.ThirdParty thirdParty()
SQLDialect
.Copyright © 2018. All Rights Reserved.