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 Summary
Enum ConstantDescriptionKeep all of them and collect them into an array on the target node.Keep only the first one.Keep only the last one. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static Merge.PropertyMergePolicy.Strategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
Keep only the first one. When using this strategy, you should make sure you order the nodes you want to merge precisely. -
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
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
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
-