use of org.neo4j.ogm.cypher.compiler.builders.statement.ExistingNodeStatementBuilder in project neo4j-ogm by neo4j.
the class MultiStatementCypherCompiler method updateNodesStatements.
@Override
public List<Statement> updateNodesStatements() {
assertStatementFactoryExists();
Map<String, Set<Node>> existingNodesByLabels = groupNodesByLabel(existingNodeBuilders.values());
List<Statement> statements = new ArrayList<>(existingNodesByLabels.size());
for (Set<Node> nodeModels : existingNodesByLabels.values()) {
ExistingNodeStatementBuilder existingNodeBuilder = new ExistingNodeStatementBuilder(nodeModels, statementFactory);
statements.add(existingNodeBuilder.build());
}
return statements;
}
Aggregations