static enum RelationAttributeRule.RelationType extends Enum<RelationAttributeRule.RelationType>
| Enum Constant and Description |
|---|
ELEMENT_COLLECTION |
EMBEDDED |
EMBEDDED_ID |
MANY_TO_MANY |
MANY_TO_ONE |
ONE_TO_MANY |
ONE_TO_ONE |
| Modifier and Type | Field and Description |
|---|---|
private String |
clazz |
private static Map<String,RelationAttributeRule.RelationType> |
lookup |
| Modifier and Type | Method and Description |
|---|---|
static RelationAttributeRule.RelationType |
get(String clazz) |
String |
getClazz() |
static RelationAttributeRule.RelationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelationAttributeRule.RelationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelationAttributeRule.RelationType MANY_TO_MANY
public static final RelationAttributeRule.RelationType MANY_TO_ONE
public static final RelationAttributeRule.RelationType ONE_TO_MANY
public static final RelationAttributeRule.RelationType ONE_TO_ONE
public static final RelationAttributeRule.RelationType ELEMENT_COLLECTION
public static final RelationAttributeRule.RelationType EMBEDDED_ID
public static final RelationAttributeRule.RelationType EMBEDDED
private String clazz
private static final Map<String,RelationAttributeRule.RelationType> lookup
public static RelationAttributeRule.RelationType[] values()
for (RelationAttributeRule.RelationType c : RelationAttributeRule.RelationType.values()) System.out.println(c);
public static RelationAttributeRule.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 String getClazz()
public static RelationAttributeRule.RelationType get(String clazz)
clazz - Copyright © 2015. All Rights Reserved.