Enum EBXWriteMode
- java.lang.Object
-
- java.lang.Enum<EBXWriteMode>
-
- com.orchestranetworks.addon.dint.dataconnector.spec.EBXWriteMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EBXWriteMode>
public enum EBXWriteMode extends java.lang.Enum<EBXWriteMode>
Strategy to write into EBX.- Since:
- 4.1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE_ONLY
If a record already exists in the target table and is not presented in the import file, it will be deleted from the target table.INSERT_ONLY
If a record does not exist in the target table yet, it will be inserted.REPLACE_ALL_CONTENT
All existing data in the table will be deleted before importing the data.UPDATE_ONLY
If a record already exists in the target table, it will be updated.UPDATE_OR_INSERT
If a record already exists in the target table, it will be updated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EBXWriteMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EBXWriteMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPDATE_OR_INSERT
public static final EBXWriteMode UPDATE_OR_INSERT
If a record already exists in the target table, it will be updated.Otherwise, a new record will be inserted.
-
UPDATE_ONLY
public static final EBXWriteMode UPDATE_ONLY
If a record already exists in the target table, it will be updated.Otherwise, it will be ignored.
-
INSERT_ONLY
public static final EBXWriteMode INSERT_ONLY
If a record does not exist in the target table yet, it will be inserted.Otherwise, it will be ignored.
-
DELETE_ONLY
public static final EBXWriteMode DELETE_ONLY
If a record already exists in the target table and is not presented in the import file, it will be deleted from the target table.Otherwise, it will be ignored.
-
REPLACE_ALL_CONTENT
public static final EBXWriteMode REPLACE_ALL_CONTENT
All existing data in the table will be deleted before importing the data.
-
-
Method Detail
-
values
public static EBXWriteMode[] 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 (EBXWriteMode c : EBXWriteMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EBXWriteMode 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
-
-