Package cdc.impex.templates
Enum ImportAction
- java.lang.Object
-
- java.lang.Enum<ImportAction>
-
- cdc.impex.templates.ImportAction
-
- All Implemented Interfaces:
Serializable,Comparable<ImportAction>
public enum ImportAction extends Enum<ImportAction>
Enumeration of possible actions for each row.- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImportActionvalueOf(String name)Returns the enum constant of this type with the specified name.static ImportAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final ImportAction CREATE
The row describes the creation of something.It must contain all identification and read-only-attributes.
-
UPDATE
public static final ImportAction UPDATE
The row describes the update of something.It must contain all identification attributes and those that must be changed.
-
DELETE
public static final ImportAction DELETE
The row describes the removal of something.It must contain identification attributes.
-
IGNORE
public static final ImportAction IGNORE
The row must be ignored.Note: an empty action is also ignored.
-
-
Method Detail
-
values
public static ImportAction[] 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 (ImportAction c : ImportAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImportAction valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-