public static enum Constant.UpdateStrategy extends java.lang.Enum<Constant.UpdateStrategy>
| Enum Constant and Description |
|---|
always
update no matter whether key exists
|
refresh
reload data form database if key exists,and update
|
remove
remove key
|
replace
update only if key exists
|
| Modifier and Type | Method and Description |
|---|---|
static Constant.UpdateStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constant.UpdateStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constant.UpdateStrategy always
public static final Constant.UpdateStrategy replace
public static final Constant.UpdateStrategy remove
public static final Constant.UpdateStrategy refresh
public static Constant.UpdateStrategy[] values()
for (Constant.UpdateStrategy c : Constant.UpdateStrategy.values()) System.out.println(c);
public static Constant.UpdateStrategy 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 nullCopyright © 2021. All Rights Reserved.