public enum SourceType extends Enum<SourceType>
AvailableSettings.HBM2DDL_CREATE_SOURCE
,
AvailableSettings.HBM2DDL_DROP_SOURCE
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
public static final SourceType SCRIPT
public static final SourceType METADATA_THEN_SCRIPT
public static final SourceType SCRIPT_THEN_METADATA
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)
value
- The encountered user config valuenull
.IllegalArgumentException
- If the incoming value is unrecognizedCopyright © 2017 JBoss by Red Hat. All rights reserved.