Interface DeleteStatements

All Known Implementing Classes:
NodeDeleteStatements, RelationshipDeleteStatements

public interface DeleteStatements
Author:
Vince Bickers, Luanne Misquitta
  • Method Details

    • delete

      CypherQuery delete(Long id)
      construct a query to delete a single object with the specified id
      Parameters:
      id - the id of the object to find
      Returns:
      a CypherQuery
    • delete

      CypherQuery delete(Long id, Object object, ClassInfo classInfo)
      Construct a query to delete a single object with given id, check for object's version
      Parameters:
      id - the id of the object
      object - object
      classInfo -
      Returns:
      a CypherQuery
    • deleteAll

      CypherQuery deleteAll()
      construct a query to delete all objects
      Returns:
      a CypherQuery
    • delete

      CypherQuery delete(Collection<Long> ids)
      construct a query to delete all objects with the specified ids
      Parameters:
      ids - the ids of the objects to find
      Returns:
      a CypherQuery
    • delete

      CypherQuery delete(String type)
      construct queries to delete all objects with the specified label or relationship type
      Parameters:
      type - the label attached to the object, or the relationship type
      Returns:
      a CypherQuery
    • delete

      CypherQuery delete(String type, Iterable<Filter> filters)
      construct queries to delete all objects with the specified label that match the specified filters
      Parameters:
      type - the label value or relationship type to filter on
      filters - parameters to filter on
      Returns:
      a CypherQuery
    • deleteAndList

      CypherQuery deleteAndList(String type, Iterable<Filter> filters)
      construct queries to delete all objects with the specified label that match the specified filters and return a list of deleted object ids
      Parameters:
      type - the label value or relationship type to filter on
      filters - parameters to filter on
      Returns:
      a CypherQuery