public enum SourceType extends Enum<SourceType>
Enumeration of the various types of sources understood by various SchemaManagementTooling delegates.
Enum Constant and Description |
---|
METADATA
"metadata" - The O/RM metadata is used as the exclusive source for generation
|
METADATA_THEN_SCRIPT
"metadata-then-scripts" - Both the O/RM metadata and external DDL scripts are used as sources for generation,
with the O/RM metadata being applied first.
|
SCRIPT
"script" - External DDL script(s) are used as the exclusive source for generation.
|
SCRIPT_THEN_METADATA
"scripts-then-metadata" - Both the O/RM metadata and external DDL scripts are used as sources for generation,
with the commands from the external DDL script(s) being applied first
|
Modifier and Type | Method and Description |
---|---|
static SourceType |
interpret(Object value,
SourceType defaultValue)
Used when processing JPA configuration to interpret the user config value
|
static SourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SourceType METADATA
"metadata" - The O/RM metadata is used as the exclusive source for generation
public static final SourceType SCRIPT
"script" - External DDL script(s) are used as the exclusive source for generation. The scripts for schema creation and dropping come from different sources. The creation DDL script is identified by the setting; the drop DDL script is identified by the setting.
public static final SourceType METADATA_THEN_SCRIPT
"metadata-then-scripts" - Both the O/RM metadata and external DDL scripts are used as sources for generation, with the O/RM metadata being applied first.
public static final SourceType SCRIPT_THEN_METADATA
"scripts-then-metadata" - Both the O/RM metadata and external DDL scripts are used as sources for generation, with the commands from the external DDL script(s) being applied first
public static SourceType[] values()
for (SourceType c : SourceType.values()) System.out.println(c);
public static SourceType 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 nullpublic static SourceType interpret(Object value, SourceType defaultValue)
Used when processing JPA configuration to interpret the user config value
value
- The encountered user config valuenull
.IllegalArgumentException
- If the incoming value is unrecognizedCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.