Class DeleteDelegate

java.lang.Object
org.neo4j.ogm.session.delegates.DeleteDelegate

public class DeleteDelegate extends Object
Author:
Vince Bickers, Michael J. Simons
  • Constructor Details

    • DeleteDelegate

      public DeleteDelegate(Neo4jSession session)
  • Method Details

    • delete

      public <T> void delete(T object)
    • deleteAll

      public <T> void deleteAll(Class<T> type)
      Deletes all nodes of a given type. They will get discovered by using the matching label for that type. To avoid a delete of every node in the database the method will abort the delete operation if no label can be determined.
      Type Parameters:
      T - The type to work with
      Parameters:
      type - The type of the nodes/objects to be deleted.
    • delete

      public <T> Object delete(Class<T> clazz, Iterable<Filter> filters, boolean listResults)
    • purgeDatabase

      public void purgeDatabase()
    • clear

      public void clear()