public enum RelationshipType extends Enum<RelationshipType>
| Enum Constant and Description |
|---|
manyToMany |
manyToOne |
oneToMany |
oneToOne |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isManyTo(RelationshipType type) |
static boolean |
isOneTo(RelationshipType type) |
static boolean |
isToMany(RelationshipType type) |
static boolean |
isToOne(RelationshipType type) |
static RelationshipType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelationshipType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelationshipType oneToOne
public static final RelationshipType oneToMany
public static final RelationshipType manyToOne
public static final RelationshipType manyToMany
public static RelationshipType[] values()
for (RelationshipType c : RelationshipType.values()) System.out.println(c);
public static RelationshipType 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 boolean isOneTo(RelationshipType type)
public static boolean isManyTo(RelationshipType type)
public static boolean isToOne(RelationshipType type)
public static boolean isToMany(RelationshipType type)
Copyright © 2018. All rights reserved.