public enum IdStrategy extends Enum<IdStrategy>
| Enum Constant and Description |
|---|
AUTOMATIC |
CUSTOMIZE_NUMBER |
CUSTOMIZE_STRING |
CUSTOMIZE_UUID |
DEFAULT |
PRIMARY_KEY |
| Modifier and Type | Method and Description |
|---|---|
byte |
code() |
boolean |
isAutomatic() |
boolean |
isCustomize() |
boolean |
isCustomizeNumber() |
boolean |
isCustomizeString() |
boolean |
isCustomizeUuid() |
boolean |
isPrimaryKey() |
String |
string() |
static IdStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IdStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IdStrategy DEFAULT
public static final IdStrategy AUTOMATIC
public static final IdStrategy PRIMARY_KEY
public static final IdStrategy CUSTOMIZE_STRING
public static final IdStrategy CUSTOMIZE_NUMBER
public static final IdStrategy CUSTOMIZE_UUID
public static IdStrategy[] values()
for (IdStrategy c : IdStrategy.values()) System.out.println(c);
public static IdStrategy 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 byte code()
public String string()
public boolean isAutomatic()
public boolean isCustomize()
public boolean isCustomizeString()
public boolean isCustomizeNumber()
public boolean isCustomizeUuid()
public boolean isPrimaryKey()
Copyright © 2023 The Apache Software Foundation. All rights reserved.