public enum RelationType extends Enum<RelationType>
| Enum Constant and Description |
|---|
MANY_TO_MANY |
MANY_TO_ONE |
ONE_TO_MANY |
ONE_TO_ONE |
| Modifier and Type | Method and Description |
|---|---|
static RelationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelationType ONE_TO_ONE
public static final RelationType ONE_TO_MANY
public static final RelationType MANY_TO_ONE
public static final RelationType MANY_TO_MANY
public static RelationType[] values()
for (RelationType c : RelationType.values()) System.out.println(c);
public static RelationType 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 © 2001–2020 JBoss by Red Hat. All rights reserved.