Class MergeAction

  • All Implemented Interfaces:
    Visitable

    @API(status=EXPERIMENTAL,
         since="2020.1.2")
    public final class MergeAction
    extends java.lang.Object
    implements Visitable
    An action or event that happens after a MERGE clause. It can either be one of two types: MergeAction.Type.ON_CREATE or MergeAction.Type.ON_MATCH.

    Both events supports the setting of properties, but not removing or adding labels. Multiple properties should be set in one action, but Cypher and openCypher allow for multiple merge actions, with the same or different types.

    Since:
    2020.1.2
    Author:
    Michael J. Simons
    • Method Detail

      • getType

        @API(status=INTERNAL)
        public MergeAction.Type getType()
        Returns:
        Event type of this action.
      • accept

        public void accept​(Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor visiting this Visitable and its nested Visitables if applicable.
        Specified by:
        accept in interface Visitable
        Parameters:
        visitor - the visitor to notify, must not be null.