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;
}
Aggregations