org.xerial.db.model
Enum Relationship
java.lang.Object
java.lang.Enum<Relationship>
org.xerial.db.model.Relationship
- All Implemented Interfaces:
- Serializable, Comparable<Relationship>
public enum Relationship
- extends Enum<Relationship>
|
Method Summary |
static Relationship |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Relationship[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
OneToOne
public static final Relationship OneToOne
OneToMany
public static final Relationship OneToMany
ManyToMany
public static final Relationship ManyToMany
Other
public static final Relationship Other
values
public static Relationship[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Relationship c : Relationship.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Relationship valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.