| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getDesc() |
static IdType |
getIdType(int idType)
主键策略 (默认 ID_WORKER)
|
int |
getKey() |
static IdType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IdType AUTO
public static final IdType INPUT
public static final IdType ID_WORKER
public static final IdType UUID
public static final IdType NONE
public static final IdType ID_WORKER_STR
public static IdType[] values()
for (IdType c : IdType.values()) System.out.println(c);
public static IdType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static IdType getIdType(int idType)
主键策略 (默认 ID_WORKER)
idType - ID 策略类型public int getKey()
public java.lang.String getDesc()