public enum RelationType extends Enum<RelationType>
Enum Constant and Description |
---|
MANY_TO_MANY_BI |
MANY_TO_ONE_BI |
MANY_TO_ONE_UNI |
NONE |
ONE_TO_MANY_BI |
ONE_TO_MANY_UNI |
ONE_TO_ONE_BI |
ONE_TO_ONE_UNI |
Modifier and Type | Method and Description |
---|---|
static boolean |
isBidirectional(RelationType type) |
static boolean |
isRelationMultiValued(RelationType type) |
static boolean |
isRelationSingleValued(RelationType type) |
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 NONE
public static final RelationType ONE_TO_ONE_UNI
public static final RelationType ONE_TO_ONE_BI
public static final RelationType ONE_TO_MANY_UNI
public static final RelationType ONE_TO_MANY_BI
public static final RelationType MANY_TO_MANY_BI
public static final RelationType MANY_TO_ONE_BI
public static final RelationType MANY_TO_ONE_UNI
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 nullpublic static boolean isRelationSingleValued(RelationType type)
public static boolean isRelationMultiValued(RelationType type)
public static boolean isBidirectional(RelationType type)
Copyright © 2015. All rights reserved.