public enum IdType extends Enum<IdType>
生成ID类型枚举类
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDesc() |
static IdType |
getIdType(int idType)
主键策略 (默认 ID_WORKER)
|
int |
getKey() |
static IdType |
valueOf(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 IdType[] values()
for (IdType c : IdType.values()) System.out.println(c);
public static IdType 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 IdType getIdType(int idType)
主键策略 (默认 ID_WORKER)
idType - ID 策略类型public int getKey()
public String getDesc()
Copyright © 2017. All rights reserved.