Enum Merge.PropertyMergePolicy.Strategy

java.lang.Object
java.lang.Enum<Merge.PropertyMergePolicy.Strategy>
ac.simons.neo4j.migrations.core.refactorings.Merge.PropertyMergePolicy.Strategy
All Implemented Interfaces:
Serializable, Comparable<Merge.PropertyMergePolicy.Strategy>
Enclosing class:
Merge.PropertyMergePolicy

public static enum Merge.PropertyMergePolicy.Strategy extends Enum<Merge.PropertyMergePolicy.Strategy>
The strategy how to deal with multiple properties of the same name.
  • Enum Constant Details

    • KEEP_ALL

      public static final Merge.PropertyMergePolicy.Strategy KEEP_ALL
      Keep all of them and collect them into an array on the target node. An array will also be created if only a single property exists on all matched nodes.
    • KEEP_FIRST

      public static final Merge.PropertyMergePolicy.Strategy KEEP_FIRST
      Keep only the first one. When using this strategy, you should make sure you order the nodes you want to merge precisely.
    • KEEP_LAST

      public static final Merge.PropertyMergePolicy.Strategy KEEP_LAST
      Keep only the last one. When using this strategy, you should make sure you order the nodes you want to merge precisely.
  • Method Details

    • values

      public static Merge.PropertyMergePolicy.Strategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Merge.PropertyMergePolicy.Strategy 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 name
      NullPointerException - if the argument is null