public static enum Key.ModelType extends Enum<Key.ModelType>
The key type.
| Enum Constant and Description |
|---|
ForeignKey |
PrimaryKey |
UniqueKey |
| Modifier and Type | Method and Description |
|---|---|
static Key.ModelType |
create(String key) |
String |
getValue() |
static Key.ModelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Key.ModelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Key.ModelType ForeignKey
public static final Key.ModelType PrimaryKey
public static final Key.ModelType UniqueKey
public static Key.ModelType[] values()
for (Key.ModelType c : Key.ModelType.values()) System.out.println(c);
public static Key.ModelType 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 String getValue()
public static Key.ModelType create(String key)
Copyright © 2016–2021. All rights reserved.