Package com.evolveum.midpoint.repo.sql
Enum SqlRepositoryConfiguration.MissingSchemaAction
- java.lang.Object
-
- java.lang.Enum<SqlRepositoryConfiguration.MissingSchemaAction>
-
- com.evolveum.midpoint.repo.sql.SqlRepositoryConfiguration.MissingSchemaAction
-
- All Implemented Interfaces:
Serializable
,Comparable<SqlRepositoryConfiguration.MissingSchemaAction>
- Enclosing class:
- SqlRepositoryConfiguration
public static enum SqlRepositoryConfiguration.MissingSchemaAction extends Enum<SqlRepositoryConfiguration.MissingSchemaAction>
What to do if the DB schema is missing.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlRepositoryConfiguration.MissingSchemaAction
fromValue(String text)
String
getValue()
static SqlRepositoryConfiguration.MissingSchemaAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static SqlRepositoryConfiguration.MissingSchemaAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOP
public static final SqlRepositoryConfiguration.MissingSchemaAction STOP
The problem is reported and midPoint startup is cancelled. This is the default.
-
WARN
public static final SqlRepositoryConfiguration.MissingSchemaAction WARN
The problem is reported but startup continues. Not recommended.
-
CREATE
public static final SqlRepositoryConfiguration.MissingSchemaAction CREATE
MidPoint will attempt to create the schema using standard DB scripts. Then it will validate the schema again.
-
-
Method Detail
-
values
public static SqlRepositoryConfiguration.MissingSchemaAction[] 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.MissingSchemaAction c : SqlRepositoryConfiguration.MissingSchemaAction.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.MissingSchemaAction 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
-
getValue
public String getValue()
-
fromValue
public static SqlRepositoryConfiguration.MissingSchemaAction fromValue(String text)
-
-