apoc.refactor.RelationshipRefactorResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apoc-core Show documentation
Show all versions of apoc-core Show documentation
Core package for Neo4j Procedures
package apoc.refactor;
import org.neo4j.graphdb.Relationship;
/**
* @author mh
* @since 25.03.16
*/
public class RelationshipRefactorResult {
public long input;
public Relationship output;
public String error;
public RelationshipRefactorResult(Long id) {
this.input = id;
}
public RelationshipRefactorResult withError(Exception e) {
this.error = e.getMessage();
return this;
}
public RelationshipRefactorResult withError(String message) {
this.error = message;
return this;
}
public RelationshipRefactorResult withOther(Relationship rel) {
this.output = rel;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy