public enum PkStrategy extends Enum<PkStrategy>
| Enum Constant and Description |
|---|
INCREMENT
自增
|
NONE
无策略,手动指定主键值
|
UUID
uuid
|
| Modifier and Type | Method and Description |
|---|---|
static PkStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PkStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PkStrategy INCREMENT
public static final PkStrategy UUID
public static final PkStrategy NONE
public static PkStrategy[] values()
for (PkStrategy c : PkStrategy.values()) System.out.println(c);
public static PkStrategy 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 nullCopyright © 2023. All Rights Reserved.