public enum RelationType extends Enum<RelationType>
| 枚举常量和说明 |
|---|
OneWay_0_1
单向绑定, *:1
一对一 或 多对一
|
OneWay_0_N
单向绑定, *:N
一对多 或 多对多
|
TwoWay_1_1
双向绑定, 1:1
一对一
|
TwoWay_1_N
双向绑定, 1:N
一对多
|
TwoWay_N_1
双向绑定, N:1
多对一
|
TwoWay_N_N
双向绑定, N:N
多对多
|
public static final RelationType OneWay_0_1
public static final RelationType OneWay_0_N
public static final RelationType TwoWay_1_1
public static final RelationType TwoWay_1_N
public static final RelationType TwoWay_N_1
public static final RelationType TwoWay_N_N
public static RelationType[] values()
for (RelationType c : RelationType.values()) System.out.println(c);
public static RelationType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2021. All rights reserved.