Package ru.yoomoney.tech.dbqueue.config
Enum DatabaseDialect
- java.lang.Object
-
- java.lang.Enum<DatabaseDialect>
-
- ru.yoomoney.tech.dbqueue.config.DatabaseDialect
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DatabaseDialect>
public enum DatabaseDialect extends java.lang.Enum<DatabaseDialect>
Supported database type (dialect)- Since:
- 06.10.2019
-
-
Enum Constant Summary
Enum Constants Enum Constant Description H2H2 in-memory databaseMSSQLMicrosoft SQL ServerORACLE_11GOracle 11gPOSTGRESQLPostgreSQL (version equals or higher than 9.5).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatabaseDialectvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DatabaseDialect[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POSTGRESQL
public static final DatabaseDialect POSTGRESQL
PostgreSQL (version equals or higher than 9.5).
-
MSSQL
public static final DatabaseDialect MSSQL
Microsoft SQL Server
-
ORACLE_11G
public static final DatabaseDialect ORACLE_11G
Oracle 11gThis version doesn't have automatically incremented primary keys, so you must specify sequence name in
QueueLocation.Builder.withIdSequence(String)
-
H2
public static final DatabaseDialect H2
H2 in-memory database
-
-
Method Detail
-
values
public static DatabaseDialect[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DatabaseDialect c : DatabaseDialect.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseDialect valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-