public enum DatabaseSchemaCreationStrategy extends Enum<DatabaseSchemaCreationStrategy>
Enumeration for the database schema creation strategy.
Enum Constant and Description |
---|
CREATE_DROP
Always creates the database schema during startup, and drops the database schema during shutdown.
|
CREATE_UPDATE
Creates the database schema, if it does not yet exist and updates the database schema if required.
|
VALIDATE
Only validates the database schema (version compatibility).
|
Modifier and Type | Method and Description |
---|---|
static DatabaseSchemaCreationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseSchemaCreationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseSchemaCreationStrategy VALIDATE
Only validates the database schema (version compatibility).
public static final DatabaseSchemaCreationStrategy CREATE_DROP
Always creates the database schema during startup, and drops the database schema during shutdown. Useful for testing purposes only.
public static final DatabaseSchemaCreationStrategy CREATE_UPDATE
Creates the database schema, if it does not yet exist and updates the database schema if required.
public static DatabaseSchemaCreationStrategy[] values()
for (DatabaseSchemaCreationStrategy c : DatabaseSchemaCreationStrategy.values()) System.out.println(c);
public static DatabaseSchemaCreationStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.