Enum Constant and Description |
---|
INSERT
insert only, if exists then exception
|
INSERT_OR_UPDATE
it will insert or update depending if exsits or not
|
UPDATE
update only, if not exist, then exception
|
Modifier and Type | Method and Description |
---|---|
static SaveMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SaveMode |
valueOfIgnoreCase(java.lang.String string)
do a case-insensitive matching
|
static SaveMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SaveMode INSERT
public static final SaveMode UPDATE
public static final SaveMode INSERT_OR_UPDATE
public static SaveMode[] values()
for (SaveMode c : SaveMode.values()) System.out.println(c);
public static SaveMode 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 SaveMode valueOfIgnoreCase(java.lang.String string)
string
-