All Downloads are FREE. Search and download functionalities are using the official Maven repository.

apoc.refactor.NodeRefactorResult Maven / Gradle / Ivy

There is a newer version: 3.5.0.2
Show newest version
package apoc.refactor;

import org.neo4j.graphdb.Node;

/**
 * @author mh
 * @since 25.03.16
 */
public class NodeRefactorResult {
    public long input;
    public Node output;
    public String error;

    public NodeRefactorResult(Long id) {
        this.input = id;
    }

    public NodeRefactorResult withError(Exception e) {
        this.error = e.getMessage();
        return this;
    }

    public NodeRefactorResult withOther(Node rel) {
        this.output = rel;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy