Search in sources :

Example 1 with ExistingNodeStatementBuilder

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;
}
Also used : Statement(org.neo4j.ogm.request.Statement) Node(org.neo4j.ogm.model.Node) ExistingNodeStatementBuilder(org.neo4j.ogm.cypher.compiler.builders.statement.ExistingNodeStatementBuilder)

Aggregations

ExistingNodeStatementBuilder (org.neo4j.ogm.cypher.compiler.builders.statement.ExistingNodeStatementBuilder)1 Node (org.neo4j.ogm.model.Node)1 Statement (org.neo4j.ogm.request.Statement)1