Enum Constant and Description |
---|
ANSI
Ansi compliant SQL.
|
H2
H2 database.
|
MYSQL
MySQL 5.5 or above.
|
ORACLE
Oracle 12c or above.
|
POSTGRES
Postgres 9.5 or later.
|
SQL_SERVER
SQL server 2012 or above.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowBatch()
Some drivers and dialects do not support JDBC batching.
|
DataType |
getDataType(DataType type)
Returns compatible dialect dataype.
|
boolean |
requiresStringUUID(DataType type)
Determines whether the data type requires string based UUIDs.
|
boolean |
supportsArrays()
Some databases support arrays and the use of
Connection.createArrayOf(String, Object[]) . |
static Dialect |
valueOf(java.lang.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.
|
public static final Dialect H2
public static final Dialect MYSQL
public static final Dialect POSTGRES
public static final Dialect SQL_SERVER
public static final Dialect ORACLE
public static final Dialect ANSI
public static Dialect[] values()
for (Dialect c : Dialect.values()) System.out.println(c);
public static Dialect 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 allowBatch()
public final boolean supportsArrays()
Connection.createArrayOf(String, Object[])
.public final DataType getDataType(@NonNull DataType type)
type
- the typepublic final boolean requiresStringUUID(@NonNull DataType type)
type
- the type