Enum Class Node.DuplicateNodeAction

java.lang.Object
java.lang.Enum<Node.DuplicateNodeAction>
com.northconcepts.datapipeline.core.Node.DuplicateNodeAction
All Implemented Interfaces:
Serializable, Comparable<Node.DuplicateNodeAction>, Constable
Enclosing class:
Node

public static enum Node.DuplicateNodeAction extends Enum<Node.DuplicateNodeAction>
DuplicateNodeAction lists all actions that can be taken automatically when a target field already exists during a record copy or lookup.
See Also:
  • Enum Constant Details

    • APPEND

      public static final Node.DuplicateNodeAction APPEND
      Combines the fields into an array if either (or both) are either arrays or single valued fields, otherwise combines the fields into a single record.
    • OVERWRITE

      public static final Node.DuplicateNodeAction OVERWRITE
      Replaces the target field with the source field.
    • CREATE_UNIQUE

      public static final Node.DuplicateNodeAction CREATE_UNIQUE
      Creates a new, unique target field by appending a number to the name.
    • SKIP

      public static final Node.DuplicateNodeAction SKIP
      Silently ignore the conflict and continue with the remaining fields.
    • FAIL

      public static final Node.DuplicateNodeAction FAIL
      Throw an exception and stop the copy/merge.
  • Method Details

    • values

      public static Node.DuplicateNodeAction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Node.DuplicateNodeAction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null