Package org.kie.test.util.db.internal
Enum DatabaseProvider
- java.lang.Object
-
- java.lang.Enum<DatabaseProvider>
-
- org.kie.test.util.db.internal.DatabaseProvider
-
- All Implemented Interfaces:
Serializable,Comparable<DatabaseProvider>
public enum DatabaseProvider extends Enum<DatabaseProvider>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatabaseProviderfromDriverClassName(String driverClassName)static DatabaseProvidervalueOf(String name)Returns the enum constant of this type with the specified name.static DatabaseProvider[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DB2
public static final DatabaseProvider DB2
-
H2
public static final DatabaseProvider H2
-
MARIADB
public static final DatabaseProvider MARIADB
-
MSSQL
public static final DatabaseProvider MSSQL
-
MYSQL
public static final DatabaseProvider MYSQL
-
ORACLE
public static final DatabaseProvider ORACLE
-
POSTGRES
public static final DatabaseProvider POSTGRES
-
POSTGRES_PLUS
public static final DatabaseProvider POSTGRES_PLUS
-
SYBASE
public static final DatabaseProvider SYBASE
-
-
Method Detail
-
values
public static DatabaseProvider[] 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 (DatabaseProvider c : DatabaseProvider.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseProvider valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromDriverClassName
public static DatabaseProvider fromDriverClassName(String driverClassName)
-
-