Enum Class Dialect
- All Implemented Interfaces:
- Serializable,- Comparable<Dialect>,- Constable
The SQL dialect to use.
- Since:
- 1.0.0
- Author:
- graemerocher
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanSome drivers and dialects do not support JDBC batching.final DataTypegetDataType(@NonNull DataType type) Returns compatible dialect dataype.final booleanrequiresStringUUID(@NonNull DataType type) Determines whether the data type requires string based UUIDs.booleanWhether the dialect supports DELETE ...booleanWhether the dialect supports INSERT ...final booleansupportsJoinType(Join.Type joinType) Determines whether the join type is supported this dialect.booleanGets an indicator whether JSON entity is supported by the database.booleanWhether the dialect supports UPDATE ...static DialectReturns the enum constant of this class with the specified name.static Dialect[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
H2H2 database.
- 
MYSQLMySQL 5.5 or above.
- 
POSTGRESPostgres 9.5 or later.
- 
SQL_SERVERSQL server 2012 or above.
- 
ORACLEOracle 12c or above.
- 
ANSIAnsi compliant SQL.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
allowBatchpublic final boolean allowBatch()Some drivers and dialects do not support JDBC batching. This allows customization.- Returns:
- True if batch is supported.
 
- 
getDataTypeReturns compatible dialect dataype.- Parameters:
- type- the type
- Returns:
- The dialect compatible DataType
- Since:
- 2.0.1
 
- 
requiresStringUUIDDetermines whether the data type requires string based UUIDs.- Parameters:
- type- the type
- Returns:
- True if a string UUID is required
- Since:
- 1.1.3
 
- 
supportsJoinTypeDetermines whether the join type is supported this dialect.- Parameters:
- joinType- the join type
- Returns:
- True if the type is supported by this dialect.
 
- 
supportsJsonEntitypublic boolean supportsJsonEntity()Gets an indicator whether JSON entity is supported by the database.- Returns:
- true if JSON entity is supported
- Since:
- 4.0.0
 
- 
supportsUpdateReturningpublic boolean supportsUpdateReturning()Whether the dialect supports UPDATE ... RETURNING clause.- Returns:
- true if it does support
- Since:
- 4.2.0
 
- 
supportsInsertReturningpublic boolean supportsInsertReturning()Whether the dialect supports INSERT ... RETURNING clause.- Returns:
- true if it does support
- Since:
- 4.2.0
 
- 
supportsDeleteReturningpublic boolean supportsDeleteReturning()Whether the dialect supports DELETE ... RETURNING clause.- Returns:
- true if it does support
- Since:
- 4.2.0
 
 
-