use of org.neo4j.ogm.cypher.compiler.builders.statement.DeletedRelationshipStatementBuilder in project neo4j-ogm by neo4j.
the class MultiStatementCypherCompiler method deleteRelationshipStatements.
@Override
public List<Statement> deleteRelationshipStatements() {
assertStatementFactoryExists();
// Group relationships by type
Map<String, Set<Edge>> deletedRelsByType = groupRelationshipsByType(deletedRelationshipBuilders);
List<Statement> statements = new ArrayList<>();
for (Set<Edge> edges : deletedRelsByType.values()) {
DeletedRelationshipStatementBuilder deletedRelationshipBuilder = new DeletedRelationshipStatementBuilder(edges, statementFactory);
statements.add(deletedRelationshipBuilder.build());
}
return statements;
}
Aggregations