Search in sources :

Example 1 with DeleteStatements

use of org.neo4j.ogm.session.request.strategy.DeleteStatements in project neo4j-ogm by neo4j.

the class DeleteDelegate method getDeleteStatement.

private Statement getDeleteStatement(Object object, Long identity, ClassInfo classInfo) {
    DeleteStatements deleteStatements = getDeleteStatementsBasedOnType(object.getClass());
    Statement request;
    if (classInfo.hasVersionField()) {
        request = deleteStatements.delete(identity, object, classInfo);
    } else {
        request = deleteStatements.delete(identity);
    }
    return request;
}
Also used : RelationshipDeleteStatements(org.neo4j.ogm.session.request.strategy.impl.RelationshipDeleteStatements) DeleteStatements(org.neo4j.ogm.session.request.strategy.DeleteStatements) NodeDeleteStatements(org.neo4j.ogm.session.request.strategy.impl.NodeDeleteStatements) Statement(org.neo4j.ogm.request.Statement)

Aggregations

Statement (org.neo4j.ogm.request.Statement)1 DeleteStatements (org.neo4j.ogm.session.request.strategy.DeleteStatements)1 NodeDeleteStatements (org.neo4j.ogm.session.request.strategy.impl.NodeDeleteStatements)1 RelationshipDeleteStatements (org.neo4j.ogm.session.request.strategy.impl.RelationshipDeleteStatements)1