Package com.evolveum.midpoint.repo.sql
Enum SqlRepositoryConfiguration.Database
- java.lang.Object
-
- java.lang.Enum<SqlRepositoryConfiguration.Database>
-
- com.evolveum.midpoint.repo.sql.SqlRepositoryConfiguration.Database
-
- All Implemented Interfaces:
Serializable
,Comparable<SqlRepositoryConfiguration.Database>
- Enclosing class:
- SqlRepositoryConfiguration
public static enum SqlRepositoryConfiguration.Database extends Enum<SqlRepositoryConfiguration.Database>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsDialect(String hibernateDialect)
boolean
containsDriver(String driverClassName)
static @Nullable SqlRepositoryConfiguration.Database
findByDriverClassName(String driverClassName)
static SqlRepositoryConfiguration.Database
findByHibernateDialect(String hibernateDialect)
static SqlRepositoryConfiguration.Database
findDatabase(String databaseName)
String
getDefaultDriverClassName()
String
getDefaultHibernateDialect()
static SqlRepositoryConfiguration.Database
valueOf(String name)
Returns the enum constant of this type with the specified name.static SqlRepositoryConfiguration.Database[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
H2
public static final SqlRepositoryConfiguration.Database H2
-
MYSQL
public static final SqlRepositoryConfiguration.Database MYSQL
-
POSTGRESQL
public static final SqlRepositoryConfiguration.Database POSTGRESQL
-
SQLSERVER
public static final SqlRepositoryConfiguration.Database SQLSERVER
-
ORACLE
public static final SqlRepositoryConfiguration.Database ORACLE
-
MARIADB
public static final SqlRepositoryConfiguration.Database MARIADB
-
-
Method Detail
-
values
public static SqlRepositoryConfiguration.Database[] 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 (SqlRepositoryConfiguration.Database c : SqlRepositoryConfiguration.Database.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlRepositoryConfiguration.Database 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
-
findDatabase
public static SqlRepositoryConfiguration.Database findDatabase(String databaseName)
-
getDefaultHibernateDialect
public String getDefaultHibernateDialect()
-
getDefaultDriverClassName
public String getDefaultDriverClassName()
-
containsDriver
public boolean containsDriver(String driverClassName)
-
containsDialect
public boolean containsDialect(String hibernateDialect)
-
findByDriverClassName
@Nullable public static @Nullable SqlRepositoryConfiguration.Database findByDriverClassName(String driverClassName)
-
findByHibernateDialect
public static SqlRepositoryConfiguration.Database findByHibernateDialect(String hibernateDialect)
-
-