Package com.comsol.api.database
Enum TargetItemSaveMode
- java.lang.Object
-
- java.lang.Enum<TargetItemSaveMode>
-
- com.comsol.api.database.TargetItemSaveMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TargetItemSaveMode>
public enum TargetItemSaveMode extends java.lang.Enum<TargetItemSaveMode>
Enumeration of possible save modes for the target item when saving an item version.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOMATICAutomatically infer the save mode from the presence of the target item in the database.SAVE_AS_NEWForce the creation of a new item in the database regardless if an existing target item may be implicitly inferred from input save parameters.
-
Constructor Summary
Constructors Modifier Constructor Description privateTargetItemSaveMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TargetItemSaveModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TargetItemSaveMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTOMATIC
public static final TargetItemSaveMode AUTOMATIC
Automatically infer the save mode from the presence of the target item in the database. A new item will be created if the target item does not exist in the database, otherwise the existing target item will be updated.
-
SAVE_AS_NEW
public static final TargetItemSaveMode SAVE_AS_NEW
Force the creation of a new item in the database regardless if an existing target item may be implicitly inferred from input save parameters.
-
-
Method Detail
-
values
public static TargetItemSaveMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TargetItemSaveMode c : TargetItemSaveMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TargetItemSaveMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-